diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-29 20:09:57 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-29 20:09:57 +0000 |
commit | 6341fdcb7841f364a6102ce2b3c375e6c0d7560e (patch) | |
tree | faf3f23516de916d879cdc9242b9ce70d4d65954 /hw/slavio_timer.c | |
parent | 371911094c728b8efe1e1270a0526758d1647a34 (diff) |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/slavio_timer.c b/hw/slavio_timer.c index 7cbd1ea62a..32485797f3 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); |