mirror of
https://github.com/qemu/qemu.git
synced 2024-11-27 05:43:47 +08:00
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>
This commit is contained in:
parent
b88417062d
commit
67d4b0c190
4
hw/pc.c
4
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user