aboutsummaryrefslogtreecommitdiff
path: root/hw/timer/nrf51_timer.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-05-04 09:28:22 +0200
committerPeter Maydell <peter.maydell@linaro.org>2020-05-11 11:05:52 +0100
commit602ab789363741aee29aeacc6b024af72161f3f7 (patch)
tree4784346e7c4067249ab6ef27fbf7c94d2d07a417 /hw/timer/nrf51_timer.c
parent27d6dea3d702b4f9cefacfc8438a9478c03092e4 (diff)
hw/timer/nrf51_timer: Add trace event of counter value update
Add trace event to display timer's counter value updates. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20200504072822.18799-5-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/timer/nrf51_timer.c')
-rw-r--r--hw/timer/nrf51_timer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/timer/nrf51_timer.c b/hw/timer/nrf51_timer.c
index 38cea0542e..42be79c736 100644
--- a/hw/timer/nrf51_timer.c
+++ b/hw/timer/nrf51_timer.c
@@ -240,6 +240,7 @@ static void nrf51_timer_write(void *opaque, hwaddr offset,
idx = (offset - NRF51_TIMER_TASK_CAPTURE_0) / 4;
s->cc[idx] = s->counter;
+ trace_nrf51_timer_set_count(s->id, idx, s->counter);
}
break;
case NRF51_TIMER_EVENT_COMPARE_0 ... NRF51_TIMER_EVENT_COMPARE_3: