aboutsummaryrefslogtreecommitdiff
path: root/hw/slavio_timer.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-29 20:09:57 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-29 20:09:57 +0000
commit6341fdcb7841f364a6102ce2b3c375e6c0d7560e (patch)
treefaf3f23516de916d879cdc9242b9ce70d4d65954 /hw/slavio_timer.c
parent371911094c728b8efe1e1270a0526758d1647a34 (diff)
downloadqemu-6341fdcb7841f364a6102ce2b3c375e6c0d7560e.zip
qemu-6341fdcb7841f364a6102ce2b3c375e6c0d7560e.tar.gz
qemu-6341fdcb7841f364a6102ce2b3c375e6c0d7560e.tar.bz2
Fix CPU timer interrupts
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3876 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/slavio_timer.c')
-rw-r--r--hw/slavio_timer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/slavio_timer.c b/hw/slavio_timer.c
index 7cbd1ea..3248579 100644
--- a/hw/slavio_timer.c
+++ b/hw/slavio_timer.c
@@ -253,6 +253,8 @@ static void slavio_timer_mem_writel(void *opaque, target_phys_addr_t addr,
if (val & (1 << i)) {
qemu_irq_lower(s->slave[i]->irq);
s->slave[i]->limit = -1ULL;
+ } else {
+ ptimer_stop(s->slave[i]->timer);
}
if ((val & (1 << i)) != (s->slave_mode & (1 << i))) {
ptimer_stop(s->slave[i]->timer);