qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 17/29] piix3: qidl_declare PIIX3State


From: Michael Roth
Subject: [Qemu-devel] [PATCH 17/29] piix3: qidl_declare PIIX3State
Date: Thu, 1 Nov 2012 08:04:19 -0500

Signed-off-by: Michael Roth <address@hidden>
---
 hw/piix_pci.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

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;
 
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]