diff options
| author | Song Gao <gaosong@loongson.cn> | 2025-09-16 20:21:04 +0800 |
|---|---|---|
| committer | Song Gao <gaosong@loongson.cn> | 2025-09-28 17:31:04 +0800 |
| commit | 07f3e5203ade3fd2e3d8d0593bcdb0aa39e022d4 (patch) | |
| tree | 548d1340c53914160a91af1092b73007589c9a74 /include/hw | |
| parent | 3ff989d566ec880a5d06de7bb65d3dc35fc3b63b (diff) | |
| download | focaccia-qemu-07f3e5203ade3fd2e3d8d0593bcdb0aa39e022d4.tar.gz focaccia-qemu-07f3e5203ade3fd2e3d8d0593bcdb0aa39e022d4.zip | |
hw/loongarch: DINTC add a MemoryRegion
the DINTC use [2fe00000-2ff00000) Memory. Signed-off-by: Song Gao <gaosong@loongson.cn> Reviewed-by: Bibo Mao <maobibo@loongson.cn> Message-ID: <20250916122109.749813-7-gaosong@loongson.cn>
Diffstat (limited to 'include/hw')
| -rw-r--r-- | include/hw/intc/loongarch_dintc.h | 1 | ||||
| -rw-r--r-- | include/hw/loongarch/virt.h | 1 | ||||
| -rw-r--r-- | include/hw/pci-host/ls7a.h | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/intc/loongarch_dintc.h b/include/hw/intc/loongarch_dintc.h index aa94cd1003..0b0b5347b2 100644 --- a/include/hw/intc/loongarch_dintc.h +++ b/include/hw/intc/loongarch_dintc.h @@ -23,6 +23,7 @@ typedef struct DINTCCore { struct LoongArchDINTCState { SysBusDevice parent_obj; + MemoryRegion dintc_mmio; DINTCCore *cpu; uint32_t num_cpu; }; diff --git a/include/hw/loongarch/virt.h b/include/hw/loongarch/virt.h index 98e9bf0737..cd97bdfb8d 100644 --- a/include/hw/loongarch/virt.h +++ b/include/hw/loongarch/virt.h @@ -89,6 +89,7 @@ struct LoongArchVirtMachineState { unsigned int memmap_entries; uint64_t misc_feature; uint64_t misc_status; + DeviceState *dintc; }; #define TYPE_LOONGARCH_VIRT_MACHINE MACHINE_TYPE_NAME("virt") diff --git a/include/hw/pci-host/ls7a.h b/include/hw/pci-host/ls7a.h index 79d4ea8501..bfdbfe3614 100644 --- a/include/hw/pci-host/ls7a.h +++ b/include/hw/pci-host/ls7a.h @@ -24,6 +24,8 @@ #define VIRT_PCH_REG_BASE 0x10000000UL #define VIRT_IOAPIC_REG_BASE (VIRT_PCH_REG_BASE) #define VIRT_PCH_MSI_ADDR_LOW 0x2FF00000UL +#define VIRT_DINTC_SIZE 0x100000UL +#define VIRT_DINTC_BASE 0x2FE00000UL #define VIRT_PCH_REG_SIZE 0x400 #define VIRT_PCH_MSI_SIZE 0x8 |