Patchwork [17/29] piix3: qidl_declare PIIX3State

login
register
mail settings
Submitter Michael Roth
Date Nov. 1, 2012, 1:04 p.m.
Message ID <1351775071-7644-18-git-send-email-mdroth@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/196220/
State New
Headers show

Comments

Michael Roth - Nov. 1, 2012, 1:04 p.m.
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
---
 hw/piix_pci.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Patch

diff --git a/hw/piix_pci.c b/hw/piix_pci.c
index 563ded6..0242399 100644
--- a/hw/piix_pci.c
+++ b/hw/piix_pci.c
@@ -48,7 +48,9 @@  typedef struct I440FXState {
 #define XEN_PIIX_NUM_PIRQS      128ULL
 #define PIIX_PIRQC              0x60
 
-typedef struct PIIX3State {
+typedef struct PIIX3State PIIX3State;
+
+QIDL_DECLARE(PIIX3State) {
     PCIDevice dev;
 
     /*
@@ -65,11 +67,11 @@  typedef struct PIIX3State {
 #endif
     uint64_t pic_levels;
 
-    qemu_irq *pic;
+    qemu_irq q_immutable *pic;
 
     /* This member isn't used. Just for save/load compatibility */
     int32_t pci_irq_levels_vmstate[PIIX_NUM_PIRQS];
-} PIIX3State;
+};
 
 typedef struct PAMMemoryRegion PAMMemoryRegion;