From patchwork Thu Nov 1 13:04:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [17/29] piix3: qidl_declare PIIX3State Date: Thu, 01 Nov 2012 03:04:19 -0000 From: Michael Roth X-Patchwork-Id: 196220 Message-Id: <1351775071-7644-18-git-send-email-mdroth@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, peter.maydell@linaro.org, aliguori@us.ibm.com, quintela@redhat.com, blauwirbel@gmail.com, pbonzini@redhat.com Signed-off-by: Michael Roth --- 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;