diff options
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); |