summary refs log tree commit diff stats
path: root/hw/watchdog/wdt_imx2.c
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2023-10-28 14:24:11 +0200
committerPeter Maydell <peter.maydell@linaro.org>2023-11-02 13:36:45 +0000
commit88a9973e85f4a51a0270c760c03bf6707d8cb1fa (patch)
tree014f1f389e0a246f95922fd45be78fa6ce2d28c6 /hw/watchdog/wdt_imx2.c
parent18736a21417818bf6561fb3ededd64f1f90790c3 (diff)
downloadfocaccia-qemu-88a9973e85f4a51a0270c760c03bf6707d8cb1fa.tar.gz
focaccia-qemu-88a9973e85f4a51a0270c760c03bf6707d8cb1fa.zip
hw/watchdog/wdt_imx2: Trace timer activity
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-id: 20231028122415.14869-3-shentey@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to '')
-rw-r--r--hw/watchdog/wdt_imx2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/watchdog/wdt_imx2.c b/hw/watchdog/wdt_imx2.c
index 885ebd3978..891d7beb2a 100644
--- a/hw/watchdog/wdt_imx2.c
+++ b/hw/watchdog/wdt_imx2.c
@@ -23,6 +23,8 @@ static void imx2_wdt_interrupt(void *opaque)
 {
     IMX2WdtState *s = IMX2_WDT(opaque);
 
+    trace_imx2_wdt_interrupt();
+
     s->wicr |= IMX2_WDT_WICR_WTIS;
     qemu_set_irq(s->irq, 1);
 }
@@ -31,6 +33,8 @@ static void imx2_wdt_expired(void *opaque)
 {
     IMX2WdtState *s = IMX2_WDT(opaque);
 
+    trace_imx2_wdt_expired();
+
     s->wrsr = IMX2_WDT_WRSR_TOUT;
 
     /* Perform watchdog action if watchdog is enabled */