From: Philippe Mathieu-Daudé Date: Thu, 6 Feb 2025 15:24:25 +0000 (+0100) Subject: hw/riscv/opentitan: Include missing 'exec/address-spaces.h' header X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bb741c4f405cf5ade6d2cf3cbbf776a6f26016dc;p=qemu.git 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é Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Message-Id: <20250206181827.41557-4-philmd@linaro.org> --- diff --git a/hw/riscv/opentitan.c b/hw/riscv/opentitan.c index b9e56235d8..98a67fe52a 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