]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
cpu-target: Include missing 'exec/memory.h' header
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 9 Feb 2024 15:00:37 +0000 (16:00 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 13 Feb 2024 07:59:25 +0000 (10:59 +0300)
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

index 958d63e88232a40f3d8ffe9728a6a416d3bb4830..86444cc2c60cef364013c5477db025cfd575c6b4 100644 (file)
@@ -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"