aboutsummaryrefslogtreecommitdiff
path: root/hw/acpi/core.c
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2023-09-08 10:42:33 +0200
committerMichael S. Tsirkin <mst@redhat.com>2023-10-04 18:15:05 -0400
commit7f558ea58bb60257b111abac0424dc601ff54875 (patch)
tree7e5f34ea801373c95c1e26ddbec7cf446fd9491f /hw/acpi/core.c
parent5cdb639d25f9951a90b6b7ba31d376d8ab132a61 (diff)
downloadqemu-7f558ea58bb60257b111abac0424dc601ff54875.zip
qemu-7f558ea58bb60257b111abac0424dc601ff54875.tar.gz
qemu-7f558ea58bb60257b111abac0424dc601ff54875.tar.bz2
hw/acpi: Trace GPE access in all device models, not just PIIX4
Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230908084234.17642-8-shentey@gmail.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/acpi/core.c')
-rw-r--r--hw/acpi/core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/acpi/core.c b/hw/acpi/core.c
index 00b1e79..c561845 100644
--- a/hw/acpi/core.c
+++ b/hw/acpi/core.c
@@ -32,6 +32,7 @@
#include "qemu/module.h"
#include "qemu/option.h"
#include "sysemu/runstate.h"
+#include "trace.h"
struct acpi_table_header {
uint16_t _length; /* our length, not actual part of the hdr */
@@ -686,6 +687,8 @@ void acpi_gpe_ioport_writeb(ACPIREGS *ar, uint32_t addr, uint32_t val)
{
uint8_t *cur;
+ trace_acpi_gpe_ioport_writeb(addr, val);
+
cur = acpi_gpe_ioport_get_ptr(ar, addr);
if (addr < ar->gpe.len / 2) {
/* GPE_STS */
@@ -709,6 +712,8 @@ uint32_t acpi_gpe_ioport_readb(ACPIREGS *ar, uint32_t addr)
val = *cur;
}
+ trace_acpi_gpe_ioport_readb(addr, val);
+
return val;
}