]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/int/loongarch: Include missing 'system/memory.h' header
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 24 Oct 2025 14:24:09 +0000 (16:24 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 28 Oct 2025 07:19:18 +0000 (08:19 +0100)
"system/memory.h" header is indirectly pulled by "hw/sysbus.h".
Include it explicitly to avoid when refactoring the latter:

  In file included from ../../hw/intc/loongson_ipi.c:9:
  In file included from /Users/philmd/source/qemu/include/hw/intc/loongson_ipi.h:12:
  include/hw/intc/loongson_ipi_common.h:37:18: error: field has incomplete type 'MemoryRegion' (aka 'struct MemoryRegion')
     37 |     MemoryRegion ipi_iocsr_mem;
        |                  ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20251024190416.8803-21-philmd@linaro.org>

include/hw/intc/loongarch_dintc.h
include/hw/intc/loongarch_extioi_common.h
include/hw/intc/loongarch_pch_msi.h
include/hw/intc/loongarch_pic_common.h
include/hw/intc/loongson_ipi_common.h

index 0b0b5347b2c8f72b2e5e199c09becb1b2d506a61..01bb1e465cb709e37261532dd9d59deff0e8a7db 100644 (file)
@@ -8,7 +8,7 @@
 #include "qom/object.h"
 #include "hw/sysbus.h"
 #include "hw/loongarch/virt.h"
-
+#include "system/memory.h"
 
 #define NR_VECTORS     256
 
index c021ccee0fac19e132abbb63d1f57083a90212be..1bd2bfa07fcaec92297f6c4767a58a6f55f4ec31 100644 (file)
@@ -10,6 +10,7 @@
 #include "qom/object.h"
 #include "hw/sysbus.h"
 #include "hw/loongarch/virt.h"
+#include "system/memory.h"
 
 #define LS3A_INTC_IP                 8
 #define EXTIOI_IRQS                  (256)
index b8586fb3b6f6b170915d4b126ad4d562dec1890a..ef4ec4fdeb89e4dc625ac6e4e0793c11c7d16fc2 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "hw/sysbus.h"
+#include "system/memory.h"
 
 #define TYPE_LOONGARCH_PCH_MSI "loongarch_pch_msi"
 OBJECT_DECLARE_SIMPLE_TYPE(LoongArchPCHMSI, LOONGARCH_PCH_MSI)
index 675ba96e64ecac2cf0995289fa713f0c04c83e1c..179361eb567270fe2bd11bd3ab11912739b7fd8c 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "hw/loongarch/virt.h"
 #include "hw/sysbus.h"
+#include "system/memory.h"
 
 #define PCH_PIC_INT_ID                  0x00
 #define  PCH_PIC_INT_ID_VAL             0x7
index e58ce2aa1c4b297a13dd87777732e9095b5745cb..4fa03bc351f096c03a50e6b4769cb4c4af8a461e 100644 (file)
@@ -11,6 +11,7 @@
 #include "qom/object.h"
 #include "hw/sysbus.h"
 #include "exec/memattrs.h"
+#include "system/memory.h"
 
 #define IPI_MBX_NUM           4