acpi: Convert build_tpm2() to build_append* API
commit04b778610af51987309055440b1ff16b50db5646
authorEric Auger <eric.auger@redhat.com>
Mon, 1 Jun 2020 09:57:34 +0000 (1 11:57 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jun 2020 16:46:45 +0000 (9 12:46 -0400)
tree4e90d1681c7441863af8d6791e2aedcd434e70a2
parent7e7c1b84ca11c36a4269baa6538a47dbdf2ee758
acpi: Convert build_tpm2() to build_append* API

In preparation of its move to the generic acpi code,
let's convert build_tpm2() to use build_append API. This
latter now is prefered in place of direct ACPI struct field
settings with manual endianness conversion.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20200601095737.32671-2-eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c