mirror of https://github.com/xemu-project/xemu.git
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 address;
|
||||||
uint64_t length;
|
uint64_t length;
|
||||||
uint32_t type;
|
uint32_t type;
|
||||||
};
|
} __attribute((__packed__, __aligned__(4)));
|
||||||
|
|
||||||
struct e820_table {
|
struct e820_table {
|
||||||
uint32_t count;
|
uint32_t count;
|
||||||
struct e820_entry entry[E820_NR_ENTRIES];
|
struct e820_entry entry[E820_NR_ENTRIES];
|
||||||
};
|
} __attribute((__packed__, __aligned__(4)));
|
||||||
|
|
||||||
static struct e820_table e820_table;
|
static struct e820_table e820_table;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue