[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/10] target/loongarch/cpu: Restrict "memory.h" header to sysemu
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 04/10] target/loongarch/cpu: Restrict "memory.h" header to sysemu |
Date: |
Fri, 16 Dec 2022 23:05:33 +0100 |
Missed in 0093b9a5ee ("target/loongarch: Adjust functions
and structure to support user-mode") while cleaning commit
f84a2aacf5 ("target/loongarch: Add LoongArch IOCSR instruction").
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/loongarch/cpu.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target/loongarch/cpu.h b/target/loongarch/cpu.h
index c8612f5466..2f17ac6b47 100644
--- a/target/loongarch/cpu.h
+++ b/target/loongarch/cpu.h
@@ -12,7 +12,9 @@
#include "fpu/softfloat-types.h"
#include "hw/registerfields.h"
#include "qemu/timer.h"
+#ifndef CONFIG_USER_ONLY
#include "exec/memory.h"
+#endif
#include "cpu-csr.h"
#define IOCSRF_TEMP 0
--
2.38.1
- [PATCH 00/10] target/misc: Header cleanups around "cpu.h", Philippe Mathieu-Daudé, 2022/12/16
- [PATCH 01/10] target/hppa/helper: Include missing "cpu.h" header, Philippe Mathieu-Daudé, 2022/12/16
- [PATCH 02/10] target/hexagon: Declare hexagon_regnames[] in "cpu.h", Philippe Mathieu-Daudé, 2022/12/16
- [PATCH 03/10] target/loongarch/cpu: Remove unused "sysbus.h" header, Philippe Mathieu-Daudé, 2022/12/16
- [PATCH 04/10] target/loongarch/cpu: Restrict "memory.h" header to sysemu,
Philippe Mathieu-Daudé <=
- [PATCH 05/10] target/m68k/helper: Include missing "cpu.h" header, Philippe Mathieu-Daudé, 2022/12/16
- [PATCH 07/10] target/ppc/internal: Restrict MMU declarations to sysemu, Philippe Mathieu-Daudé, 2022/12/16
- [PATCH 06/10] target/ppc/helper: Include missing "cpu.h" header, Philippe Mathieu-Daudé, 2022/12/16
- [PATCH 08/10] target/riscv/cpu: Restrict sysemu-specific fields from CPUArchState, Philippe Mathieu-Daudé, 2022/12/16