tests: acpi: fetch X_DSDT if pointer to DSDT is 0
commit55089fa2d74306d7732e485484efd65aa6e259b3
authorIgor Mammedov <imammedo@redhat.com>
Thu, 2 May 2019 14:51:53 +0000 (2 16:51 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 20 May 2019 22:40:02 +0000 (20 18:40 -0400)
tree21c4c1f269685252c8a2c1fb0a2bee8e294b6669
parent9c0418852b6ed8fc677211767b11e4fdecc51a6e
tests: acpi: fetch X_DSDT if pointer to DSDT is 0

that way it would be possible to test a DSDT pointed by
64bit X_DSDT field in FADT.

PS:
it will allow to enable testing arm/virt board, which sets
only newer X_DSDT field.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1556808723-226478-6-git-send-email-imammedo@redhat.com>
Reviewed-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/bios-tables-test.c