mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
hw/intc/aspeed: Support setting different memory size
According to the AST2700 datasheet, the INTC(CPU DIE) controller has 16KB (0x4000) of register space, and the INTCIO (I/O DIE) controller has 1KB (0x400) of register space. Introduced a new class attribute "mem_size" to set different memory sizes for the INTC models in AST2700. Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/qemu-devel/20250307035945.3698802-2-jamin_lin@aspeedtech.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
8dd163f915
commit
c5728c3488
2 changed files with 11 additions and 1 deletions
|
@ -25,6 +25,8 @@ struct AspeedINTCState {
|
|||
|
||||
/*< public >*/
|
||||
MemoryRegion iomem;
|
||||
MemoryRegion iomem_container;
|
||||
|
||||
uint32_t regs[ASPEED_INTC_NR_REGS];
|
||||
OrIRQState orgates[ASPEED_INTC_NR_INTS];
|
||||
qemu_irq output_pins[ASPEED_INTC_NR_INTS];
|
||||
|
@ -39,6 +41,7 @@ struct AspeedINTCClass {
|
|||
|
||||
uint32_t num_lines;
|
||||
uint32_t num_ints;
|
||||
uint64_t mem_size;
|
||||
};
|
||||
|
||||
#endif /* ASPEED_INTC_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue