diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-02-06 16:24:25 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-02-16 14:25:08 +0100 |
commit | bb741c4f405cf5ade6d2cf3cbbf776a6f26016dc (patch) | |
tree | 0920e7c1d39719752455baba20bb0238c89ed387 | |
parent | 2be22bc72d18d92ca9e0c16e56bf309839360f5d (diff) | |
download | qemu-bb741c4f405cf5ade6d2cf3cbbf776a6f26016dc.zip qemu-bb741c4f405cf5ade6d2cf3cbbf776a6f26016dc.tar.gz qemu-bb741c4f405cf5ade6d2cf3cbbf776a6f26016dc.tar.bz2 |
hw/riscv/opentitan: Include missing 'exec/address-spaces.h' header
opentitan_machine_init() calls get_system_memory(),
which is declared in "exec/address-spaces.h". Include
it in order to avoid when refactoring unrelated headers:
hw/riscv/opentitan.c:83:29: error: call to undeclared function 'get_system_memory'
83 | MemoryRegion *sys_mem = get_system_memory();
| ^
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20250206181827.41557-4-philmd@linaro.org>
-rw-r--r-- | hw/riscv/opentitan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/riscv/opentitan.c b/hw/riscv/opentitan.c index b9e5623..98a67fe 100644 --- a/hw/riscv/opentitan.c +++ b/hw/riscv/opentitan.c @@ -28,6 +28,7 @@ #include "hw/riscv/boot.h" #include "qemu/units.h" #include "system/system.h" +#include "exec/address-spaces.h" /* * This version of the OpenTitan machine currently supports |