diff options
-rw-r--r-- | hw/ptimer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ptimer.c b/hw/ptimer.c index feabefed96..2abf285afe 100644 --- a/hw/ptimer.c +++ b/hw/ptimer.c @@ -149,7 +149,7 @@ void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload) s->limit = limit; if (reload) s->delta = limit; - if (s->enabled) { + if (s->enabled && reload) { s->next_event = qemu_get_clock(vm_clock); ptimer_reload(s); } |