summary refs log tree commit diff stats
path: root/hw/misc/imx7_snvs.c
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2023-10-28 14:24:12 +0200
committerPeter Maydell <peter.maydell@linaro.org>2023-11-02 13:36:45 +0000
commitbb2fc5b9958f183e63d839a6e6e10cdc4dad0981 (patch)
treea2d3bf5345735f4491f12efc4964af70d41fe6e8 /hw/misc/imx7_snvs.c
parent88a9973e85f4a51a0270c760c03bf6707d8cb1fa (diff)
downloadfocaccia-qemu-bb2fc5b9958f183e63d839a6e6e10cdc4dad0981.tar.gz
focaccia-qemu-bb2fc5b9958f183e63d839a6e6e10cdc4dad0981.zip
hw/misc/imx7_snvs: Trace MMIO access
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20231028122415.14869-4-shentey@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/misc/imx7_snvs.c')
-rw-r--r--hw/misc/imx7_snvs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/misc/imx7_snvs.c b/hw/misc/imx7_snvs.c
index ee7698bd9c..a245f96cd4 100644
--- a/hw/misc/imx7_snvs.c
+++ b/hw/misc/imx7_snvs.c
@@ -16,9 +16,12 @@
 #include "hw/misc/imx7_snvs.h"
 #include "qemu/module.h"
 #include "sysemu/runstate.h"
+#include "trace.h"
 
 static uint64_t imx7_snvs_read(void *opaque, hwaddr offset, unsigned size)
 {
+    trace_imx7_snvs_read(offset, 0);
+
     return 0;
 }
 
@@ -28,6 +31,8 @@ static void imx7_snvs_write(void *opaque, hwaddr offset,
     const uint32_t value = v;
     const uint32_t mask  = SNVS_LPCR_TOP | SNVS_LPCR_DP_EN;
 
+    trace_imx7_snvs_write(offset, value);
+
     if (offset == SNVS_LPCR && ((value & mask) == mask)) {
         qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN);
     }