qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 4/7] hpet: Fix packing for w32


From: Stefan Weil
Subject: [Qemu-devel] [PATCH 4/7] hpet: Fix packing for w32
Date: Sun, 28 Aug 2011 22:43:17 +0200

Use QEMU_PACKED to eliminate the effects of compiler option
-mms-bitfields.

Cc: Alexander Graf <address@hidden>
Signed-off-by: Stefan Weil <address@hidden>
---
 hw/hpet_emul.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/hpet_emul.h b/hw/hpet_emul.h
index 8bf312a..6128702 100644
--- a/hw/hpet_emul.h
+++ b/hw/hpet_emul.h
@@ -59,13 +59,13 @@ struct hpet_fw_entry
     uint64_t address;
     uint16_t min_tick;
     uint8_t page_prot;
-} __attribute__ ((packed));
+} QEMU_PACKED;
 
 struct hpet_fw_config
 {
     uint8_t count;
     struct hpet_fw_entry hpet[8];
-} __attribute__ ((packed));
+} QEMU_PACKED;
 
 extern struct hpet_fw_config hpet_cfg;
 #endif
-- 
1.7.0.4




reply via email to

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