aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2022-12-16 15:52:50 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-02-27 22:29:01 +0100
commit8f15d6179aa0beff4ee67a48c39ec9a0ec1e719b (patch)
treeaf88ab3f9556957ff34a66b2e66cfda5f7729d57 /target
parent4e92e31294572663f214ceeeaf8bc76e463a7050 (diff)
downloadqemu-8f15d6179aa0beff4ee67a48c39ec9a0ec1e719b.zip
qemu-8f15d6179aa0beff4ee67a48c39ec9a0ec1e719b.tar.gz
qemu-8f15d6179aa0beff4ee67a48c39ec9a0ec1e719b.tar.bz2
target/loongarch/cpu: Restrict "memory.h" header to sysemu
Missed in 0093b9a5ee ("target/loongarch: Adjust functions and structure to support user-mode") while cleaning commit f84a2aacf5 ("target/loongarch: Add LoongArch IOCSR instruction"). Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20221217172907.8364-4-philmd@linaro.org>
Diffstat (limited to 'target')
-rw-r--r--target/loongarch/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/loongarch/cpu.h b/target/loongarch/cpu.h
index 3882e97..d60693f 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