projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1f0569
)
hw/arm_mptimer: Reset the qemu_timer at reset
author
Peter Maydell
<peter.maydell@linaro.org>
Fri, 20 Apr 2012 15:38:52 +0000
(15:38 +0000)
committer
Peter Maydell
<peter.maydell@linaro.org>
Fri, 20 Apr 2012 15:38:52 +0000
(15:38 +0000)
On reset of the mpcore timer/watchdog block we need to
delete the qemu_timer in case it was running.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm_mptimer.c
patch
|
blob
|
history
diff --git
a/hw/arm_mptimer.c
b/hw/arm_mptimer.c
index df7fb4c9bde1e537a87f53f8145fee1141d792a7..fe43cbb5f1e8e9894999d8b3c0d6ac64901d18d9 100644
(file)
--- a/
hw/arm_mptimer.c
+++ b/
hw/arm_mptimer.c
@@
-228,6
+228,9
@@
static void timerblock_reset(timerblock *tb)
tb->control = 0;
tb->status = 0;
tb->tick = 0;
+ if (tb->timer) {
+ qemu_del_timer(tb->timer);
+ }
}
static void arm_mptimer_reset(DeviceState *dev)