acpi: Move build_tpm2() in the generic part
commit4338416064303aad7929a247770f2ed4d9652966
authorEric Auger <eric.auger@redhat.com>
Mon, 1 Jun 2020 09:57:35 +0000 (1 11:57 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jun 2020 16:46:45 +0000 (9 12:46 -0400)
tree672a1bb9b4c3fbfe9b3c230356e578f388d620a5
parent04b778610af51987309055440b1ff16b50db5646
acpi: Move build_tpm2() in the generic part

We plan to build the TPM2 table on ARM too. In order to reuse the
generation code, let's move build_tpm2() to aml-build.c.

No change in the implementation.

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