Use QEMU_PACKED to eliminate the effects of compiler option -mms-bitfields.
Cc: Isaku Yamahata <[email protected]> Signed-off-by: Stefan Weil <[email protected]> --- hw/acpi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/acpi.c b/hw/acpi.c index d04b965..1cf35e1 100644 --- a/hw/acpi.c +++ b/hw/acpi.c @@ -32,7 +32,7 @@ struct acpi_table_header { uint32_t oem_revision; /* OEM revision number */ char asl_compiler_id[4]; /* ASL compiler vendor ID */ uint32_t asl_compiler_revision; /* ASL compiler revision number */ -} __attribute__((packed)); +} QEMU_PACKED; #define ACPI_TABLE_HDR_SIZE sizeof(struct acpi_table_header) #define ACPI_TABLE_PFX_SIZE sizeof(uint16_t) /* size of the extra prefix */ -- 1.7.0.4
