]> Git Repo - qemu.git/blobdiff - hw/core/ptimer.c
ivshmem: fix number of bytes to push to fifo
[qemu.git] / hw / core / ptimer.c
index 466e543b3dfa3480f6cfc5d7c03f07e5d38e16c8..8437bd6e8bf9ed9ab2a23fca40c09985ed8aa8d0 100644 (file)
@@ -189,7 +189,7 @@ void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload)
      * on the current generation of host machines.
      */
 
-    if (limit * s->period < 10000 && s->period) {
+    if (!use_icount && limit * s->period < 10000 && s->period) {
         limit = 10000 / s->period;
     }
 
@@ -214,7 +214,7 @@ const VMStateDescription vmstate_ptimer = {
         VMSTATE_INT64(period, ptimer_state),
         VMSTATE_INT64(last_event, ptimer_state),
         VMSTATE_INT64(next_event, ptimer_state),
-        VMSTATE_TIMER(timer, ptimer_state),
+        VMSTATE_TIMER_PTR(timer, ptimer_state),
         VMSTATE_END_OF_LIST()
     }
 };
This page took 0.021321 seconds and 4 git commands to generate.