aboutsummaryrefslogtreecommitdiff
path: root/hw/sd/aspeed_sdhci.c
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2021-10-22 09:52:17 +0200
committerCédric Le Goater <clg@kaod.org>2021-10-22 09:52:17 +0200
commitb12fa6118f4d838d19720ec6476a1666a1b43474 (patch)
tree5d93338f3242daf0ef5669727b2e2857ef98f629 /hw/sd/aspeed_sdhci.c
parentfc6642544eb86b520fed4e3b7792bd89e563de08 (diff)
speed/sdhci: Add trace events
Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com> Message-Id: <20211018132609.160008-6-clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw/sd/aspeed_sdhci.c')
-rw-r--r--hw/sd/aspeed_sdhci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/sd/aspeed_sdhci.c b/hw/sd/aspeed_sdhci.c
index 3299844de6..df1bdf1fa4 100644
--- a/hw/sd/aspeed_sdhci.c
+++ b/hw/sd/aspeed_sdhci.c
@@ -14,6 +14,7 @@
#include "hw/irq.h"
#include "migration/vmstate.h"
#include "hw/qdev-properties.h"
+#include "trace.h"
#define ASPEED_SDHCI_INFO 0x00
#define ASPEED_SDHCI_INFO_SLOT1 (1 << 17)
@@ -60,6 +61,8 @@ static uint64_t aspeed_sdhci_read(void *opaque, hwaddr addr, unsigned int size)
}
}
+ trace_aspeed_sdhci_read(addr, size, (uint64_t) val);
+
return (uint64_t)val;
}
@@ -68,6 +71,8 @@ static void aspeed_sdhci_write(void *opaque, hwaddr addr, uint64_t val,
{
AspeedSDHCIState *sdhci = opaque;
+ trace_aspeed_sdhci_write(addr, size, val);
+
switch (addr) {
case ASPEED_SDHCI_INFO:
/* The RESET bit automatically clears. */