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>
This commit is contained in:
parent
3ff989d566
commit
07f3e5203a
5 changed files with 65 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ typedef struct DINTCCore {
|
|||
|
||||
struct LoongArchDINTCState {
|
||||
SysBusDevice parent_obj;
|
||||
MemoryRegion dintc_mmio;
|
||||
DINTCCore *cpu;
|
||||
uint32_t num_cpu;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue