mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
hw/intc/arm_gicv3: Add irq non-maskable property
A SPI, PPI or SGI interrupt can have non-maskable property. So maintain non-maskable property in PendingIrq and GICR/GICD. Since add new device state, it also needs to be migrated, so also save NMI info in vmstate_gicv3_cpu and vmstate_gicv3. Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Acked-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20240407081733.3231820-16-ruanjinjie@huawei.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
67d74e4c54
commit
0e9f4e8e7b
2 changed files with 42 additions and 0 deletions
|
@ -146,6 +146,7 @@ typedef struct {
|
|||
int irq;
|
||||
uint8_t prio;
|
||||
int grp;
|
||||
bool nmi;
|
||||
} PendingIrq;
|
||||
|
||||
struct GICv3CPUState {
|
||||
|
@ -172,6 +173,7 @@ struct GICv3CPUState {
|
|||
uint32_t gicr_ienabler0;
|
||||
uint32_t gicr_ipendr0;
|
||||
uint32_t gicr_iactiver0;
|
||||
uint32_t gicr_inmir0;
|
||||
uint32_t edge_trigger; /* ICFGR0 and ICFGR1 even bits */
|
||||
uint32_t gicr_igrpmodr0;
|
||||
uint32_t gicr_nsacr;
|
||||
|
@ -275,6 +277,7 @@ struct GICv3State {
|
|||
GIC_DECLARE_BITMAP(active); /* GICD_ISACTIVER */
|
||||
GIC_DECLARE_BITMAP(level); /* Current level */
|
||||
GIC_DECLARE_BITMAP(edge_trigger); /* GICD_ICFGR even bits */
|
||||
GIC_DECLARE_BITMAP(nmi); /* GICD_INMIR */
|
||||
uint8_t gicd_ipriority[GICV3_MAXIRQ];
|
||||
uint64_t gicd_irouter[GICV3_MAXIRQ];
|
||||
/* Cached information: pointer to the cpu i/f for the CPUs specified
|
||||
|
@ -314,6 +317,7 @@ GICV3_BITMAP_ACCESSORS(pending)
|
|||
GICV3_BITMAP_ACCESSORS(active)
|
||||
GICV3_BITMAP_ACCESSORS(level)
|
||||
GICV3_BITMAP_ACCESSORS(edge_trigger)
|
||||
GICV3_BITMAP_ACCESSORS(nmi)
|
||||
|
||||
#define TYPE_ARM_GICV3_COMMON "arm-gicv3-common"
|
||||
typedef struct ARMGICv3CommonClass ARMGICv3CommonClass;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue