Commit 62ea5b0bd38471ef114ca2e2dd7507a778701cd3
1 parent
caf8fe8c
Leave running timer alone if not reloading.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2923 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
hw/ptimer.c
... | ... | @@ -149,7 +149,7 @@ void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload) |
149 | 149 | s->limit = limit; |
150 | 150 | if (reload) |
151 | 151 | s->delta = limit; |
152 | - if (s->enabled) { | |
152 | + if (s->enabled && reload) { | |
153 | 153 | s->next_event = qemu_get_clock(vm_clock); |
154 | 154 | ptimer_reload(s); |
155 | 155 | } | ... | ... |