summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2010-11-05 15:40:38 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2010-11-16 14:35:00 -0600
commit67d4b0c1907455f42ad8cea445ff10b81b49eebc (patch)
tree86a0301ab00060fae0f8876e42ae825dcf6975b7
parentb88417062d5f73e2e8137e94b360ca4412942f33 (diff)
downloadqemu-67d4b0c1907455f42ad8cea445ff10b81b49eebc.tar.gz
pc: e820 qemu_cfg tables need to be packed
We can't let the compiler define the alignment for qemu_cfg data. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--hw/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pc.c b/hw/pc.c
index 0e44df8103..e7f7ac6b0e 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -75,12 +75,12 @@ struct e820_entry {
uint64_t address;
uint64_t length;
uint32_t type;
-};
+} __attribute((__packed__, __aligned__(4)));
struct e820_table {
uint32_t count;
struct e820_entry entry[E820_NR_ENTRIES];
-};
+} __attribute((__packed__, __aligned__(4)));
static struct e820_table e820_table;