mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/arm/armsse: Add a define for number of IRQs used by the SSE itself
The SSE uses 32 interrupts for its own devices, and then passes through its expansion IRQ inputs to the CPU's interrupts 33 and upward. Add a define for the number of IRQs the SSE uses for itself, instead of hardcoding 32. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210219144617.4782-23-peter.maydell@linaro.org
This commit is contained in:
parent
91eb4f64eb
commit
3378873802
2 changed files with 6 additions and 3 deletions
|
@ -145,6 +145,9 @@ OBJECT_DECLARE_TYPE(ARMSSE, ARMSSEClass,
|
|||
#define RAM3_PPU 6
|
||||
#define NUM_PPUS 7
|
||||
|
||||
/* Number of CPU IRQs used by the SSE itself */
|
||||
#define NUM_SSE_IRQS 32
|
||||
|
||||
struct ARMSSE {
|
||||
/*< private >*/
|
||||
SysBusDevice parent_obj;
|
||||
|
@ -165,7 +168,7 @@ struct ARMSSE {
|
|||
qemu_or_irq mpc_irq_orgate;
|
||||
qemu_or_irq nmi_orgate;
|
||||
|
||||
SplitIRQ cpu_irq_splitter[32];
|
||||
SplitIRQ cpu_irq_splitter[NUM_SSE_IRQS];
|
||||
|
||||
CMSDKAPBDualTimer dualtimer;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue