diff options
author | Igor Mammedov <imammedo@redhat.com> | 2018-12-27 15:13:34 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-01-17 21:10:57 -0500 |
commit | b137522c35c1708adb10c73378e97e7dd0badbfc (patch) | |
tree | 337e5c69b33889c8796cb25369e1e2776675df33 /tests/acpi-utils.h | |
parent | b997a04a5048e496a67f0c03f1f420cfa5a48c72 (diff) | |
download | qemu-b137522c35c1708adb10c73378e97e7dd0badbfc.zip qemu-b137522c35c1708adb10c73378e97e7dd0badbfc.tar.gz qemu-b137522c35c1708adb10c73378e97e7dd0badbfc.tar.bz2 |
tests: acpi: use AcpiSdtTable::aml instead of AcpiSdtTable::header::signature
AcpiSdtTable::header::signature is the only remained field from
AcpiTableHeader structure used by tests. Instead of using packed
structure to access signature, just read it directly from table
blob and remove no longer used AcpiSdtTable::header / union and
keep only AcpiSdtTable::aml byte array.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tests/acpi-utils.h')
-rw-r--r-- | tests/acpi-utils.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/acpi-utils.h b/tests/acpi-utils.h index cb7183e..ef388bb 100644 --- a/tests/acpi-utils.h +++ b/tests/acpi-utils.h @@ -13,15 +13,11 @@ #ifndef TEST_ACPI_UTILS_H #define TEST_ACPI_UTILS_H -#include "hw/acpi/acpi-defs.h" #include "libqtest.h" /* DSDT and SSDTs format */ typedef struct { - union { - AcpiTableHeader *header; - uint8_t *aml; /* aml bytecode from guest */ - }; + uint8_t *aml; /* aml bytecode from guest */ uint32_t aml_len; gchar *aml_file; gchar *asl; /* asl code generated from aml */ |