diff options
author | Cédric Le Goater | 2022-02-18 09:18:15 +0100 |
---|---|---|
committer | Cédric Le Goater | 2022-02-26 18:40:51 +0100 |
commit | 3671342a38f21316a2bda62e7d607bbaedd60fd8 (patch) | |
tree | 6ca416ec5eefbd830e68f80951cdcd571b62933d /hw/misc/aspeed_sdmc.c | |
parent | aspeed/smc: Add an address mask on segment registers (diff) | |
download | qemu-3671342a38f21316a2bda62e7d607bbaedd60fd8.tar.gz qemu-3671342a38f21316a2bda62e7d607bbaedd60fd8.tar.xz qemu-3671342a38f21316a2bda62e7d607bbaedd60fd8.zip |
aspeed/sdmc: Add trace events
This is useful to analyze changes in the U-Boot RAM driver when SDRAM
training is performed.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw/misc/aspeed_sdmc.c')
-rw-r--r-- | hw/misc/aspeed_sdmc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/misc/aspeed_sdmc.c b/hw/misc/aspeed_sdmc.c index 08f856cbda..d2a3931033 100644 --- a/hw/misc/aspeed_sdmc.c +++ b/hw/misc/aspeed_sdmc.c @@ -130,6 +130,7 @@ static uint64_t aspeed_sdmc_read(void *opaque, hwaddr addr, unsigned size) return 0; } + trace_aspeed_sdmc_read(addr, s->regs[addr]); return s->regs[addr]; } @@ -148,6 +149,7 @@ static void aspeed_sdmc_write(void *opaque, hwaddr addr, uint64_t data, return; } + trace_aspeed_sdmc_write(addr, data); asc->write(s, addr, data); } |