mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/isa/piix4: Reuse struct PIIXState from PIIX3
PIIX4 has its own, private PIIX4State structure. PIIX3 has almost the same structure, provided in a public header. So reuse it and add a cpu_intr attribute to it which is only used by PIIX4. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Message-Id: <20231007123843.127151-19-shentey@gmail.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
80ec6f5b57
commit
74bdcfb4b2
2 changed files with 12 additions and 15 deletions
|
@ -49,6 +49,7 @@ struct PIIXState {
|
|||
#endif
|
||||
uint64_t pic_levels;
|
||||
|
||||
qemu_irq cpu_intr;
|
||||
qemu_irq isa_irqs_in[ISA_NUM_IRQS];
|
||||
|
||||
/* This member isn't used. Just for save/load compatibility */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue