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>
This commit is contained in:
Philippe Mathieu-Daudé 2022-12-16 15:52:50 +01:00
parent 4e92e31294
commit 8f15d6179a
1 changed files with 2 additions and 0 deletions

View File

@ -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