diff options
| author | Alex Williamson | 2010-11-05 22:40:38 +0100 |
|---|---|---|
| committer | Anthony Liguori | 2010-11-16 21:35:00 +0100 |
| commit | 67d4b0c1907455f42ad8cea445ff10b81b49eebc (patch) | |
| tree | 86a0301ab00060fae0f8876e42ae825dcf6975b7 | |
| parent | Fix compilation failure with simple trace when srcdir==objdir (diff) | |
| download | qemu-67d4b0c1907455f42ad8cea445ff10b81b49eebc.tar.gz qemu-67d4b0c1907455f42ad8cea445ff10b81b49eebc.tar.xz qemu-67d4b0c1907455f42ad8cea445ff10b81b49eebc.zip | |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
