diff mbox series

[PULL,14/15] cpu-target: Include missing 'exec/memory.h' header

Message ID 20240213080151.160839-15-mjt@tls.msk.ru
State New
Headers show
Series [PULL,01/15] hw/isa/vt82c686: Consolidate the use of device_class_set_parent_realize() | expand

Commit Message

Michael Tokarev Feb. 13, 2024, 8:01 a.m. UTC
From: Philippe Mathieu-Daudé <philmd@linaro.org>

Include "exec/memory.h" in order to avoid:

  cpu-target.c:201:50: error: use of undeclared identifier 'TYPE_MEMORY_REGION'
      DEFINE_PROP_LINK("memory", CPUState, memory, TYPE_MEMORY_REGION,
                                                   ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 cpu-target.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/cpu-target.c b/cpu-target.c
index 958d63e882..86444cc2c6 100644
--- a/cpu-target.c
+++ b/cpu-target.c
@@ -31,6 +31,7 @@ 
 #else
 #include "hw/core/sysemu-cpu-ops.h"
 #include "exec/address-spaces.h"
+#include "exec/memory.h"
 #endif
 #include "sysemu/cpus.h"
 #include "sysemu/tcg.h"