[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/10] target/xtensa/cpu: Include missing "memory.h" header
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 10/10] target/xtensa/cpu: Include missing "memory.h" header |
Date: |
Fri, 16 Dec 2022 23:05:39 +0100 |
Under system emulation, xtensa_cpu_initfn() calls
memory_region_init_io(), itself declared in "exec/memory.h".
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/xtensa/cpu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/target/xtensa/cpu.c b/target/xtensa/cpu.c
index 09923301c4..879710f8d1 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)
--
2.38.1
- [PATCH 05/10] target/m68k/helper: Include missing "cpu.h" header, (continued)
- [PATCH 05/10] target/m68k/helper: Include missing "cpu.h" header, Philippe Mathieu-Daudé, 2022/12/16
- [PATCH 06/10] target/ppc/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 08/10] target/riscv/cpu: Restrict sysemu-specific fields from CPUArchState, Philippe Mathieu-Daudé, 2022/12/16
- [PATCH 09/10] target/sparc/sysemu: Remove pointless CONFIG_USER_ONLY guard, Philippe Mathieu-Daudé, 2022/12/16
- [PATCH 10/10] target/xtensa/cpu: Include missing "memory.h" header,
Philippe Mathieu-Daudé <=