mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
hw/i386/ich9: Remove redundant GSI_NUM_PINS
Most code uses IOAPIC_NUM_PINS. The only place where GSI_NUM_PINS defines the size of an array is ICH9LPCState::gsi which needs to match IOAPIC_NUM_PINS. Remove GSI_NUM_PINS for consistency. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230213173033.98762-10-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
fb1856cb9b
commit
e3e3a8ad12
5 changed files with 7 additions and 7 deletions
|
|
@ -63,7 +63,7 @@ struct ICH9LPCState {
|
|||
MemoryRegion rcrb_mem; /* root complex register block */
|
||||
Notifier machine_ready;
|
||||
|
||||
qemu_irq gsi[GSI_NUM_PINS];
|
||||
qemu_irq gsi[IOAPIC_NUM_PINS];
|
||||
};
|
||||
|
||||
#define ICH9_MASK(bit, ms_bit, ls_bit) \
|
||||
|
|
|
|||
|
|
@ -131,7 +131,6 @@ bool x86_machine_is_acpi_enabled(const X86MachineState *x86ms);
|
|||
|
||||
/* Global System Interrupts */
|
||||
|
||||
#define GSI_NUM_PINS IOAPIC_NUM_PINS
|
||||
#define ACPI_BUILD_PCI_IRQS ((1<<5) | (1<<9) | (1<<10) | (1<<11))
|
||||
|
||||
typedef struct GSIState {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue