acpi: x86: madt: use build_append_int_noprefix() API to compose MADT table
commitdd092b9c6008149785d7789c729f468fb762aa0b
authorIgor Mammedov <imammedo@redhat.com>
Fri, 24 Sep 2021 12:27:51 +0000 (24 08:27 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 5 Oct 2021 21:30:57 +0000 (5 17:30 -0400)
tree8f7e200f9aae187a67d7c666c63a854ff894f35c
parentd0aa026a498cdd4e082f12618767f19a2532712a
acpi: x86: madt: use build_append_int_noprefix() API to compose MADT table

Drop usage of packed structures and explicit endian conversions
when building MADT table for arm/x86 and use endian agnostic
build_append_int_noprefix() API to build it.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20210924122802.1455362-25-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-common.c
include/hw/acpi/acpi-defs.h