From: Philippe Mathieu-Daudé Date: Fri, 16 Dec 2022 14:52:50 +0000 (+0100) Subject: target/loongarch/cpu: Restrict "memory.h" header to sysemu X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8f15d6179aa0beff4ee67a48c39ec9a0ec1e719b;p=qemu.git 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 Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20221217172907.8364-4-philmd@linaro.org> --- diff --git a/target/loongarch/cpu.h b/target/loongarch/cpu.h index 3882e970b4..d60693fafe 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