aboutsummaryrefslogtreecommitdiff
path: root/target/xtensa
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2022-12-16 13:47:05 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-02-27 22:29:01 +0100
commit9585201a8bfaac69365cfc3ab40fea3428443102 (patch)
tree5ae3de22e66c57fa6c4db29c9bd7f5dce88ac423 /target/xtensa
parentc3ae4b0a526813148d59e30c1de7c842c73fb2dd (diff)
downloadqemu-9585201a8bfaac69365cfc3ab40fea3428443102.zip
qemu-9585201a8bfaac69365cfc3ab40fea3428443102.tar.gz
qemu-9585201a8bfaac69365cfc3ab40fea3428443102.tar.bz2
target/xtensa/cpu: Include missing "memory.h" header
Under system emulation, xtensa_cpu_initfn() calls memory_region_init_io(), itself declared in "exec/memory.h". Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20221217172907.8364-10-philmd@linaro.org>
Diffstat (limited to 'target/xtensa')
-rw-r--r--target/xtensa/cpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/xtensa/cpu.c b/target/xtensa/cpu.c
index 2dc8f2d..acaf8c9 100644
--- a/target/xtensa/cpu.c
+++ b/target/xtensa/cpu.c
@@ -35,6 +35,9 @@
#include "qemu/module.h"
#include "migration/vmstate.h"
#include "hw/qdev-clock.h"
+#ifndef CONFIG_USER_ONLY
+#include "exec/memory.h"
+#endif
static void xtensa_cpu_set_pc(CPUState *cs, vaddr value)