]> git.proxmox.com Git - mirror_qemu.git/commit - tests/bios-tables-test.c
tests: acpi: use AcpiSdtTable::aml instead of AcpiSdtTable::header::signature
authorIgor Mammedov <imammedo@redhat.com>
Thu, 27 Dec 2018 14:13:34 +0000 (15:13 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 18 Jan 2019 02:10:57 +0000 (21:10 -0500)
commitb137522c35c1708adb10c73378e97e7dd0badbfc
tree337e5c69b33889c8796cb25369e1e2776675df33
parentb997a04a5048e496a67f0c03f1f420cfa5a48c72
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>
tests/acpi-utils.h
tests/bios-tables-test.c