aboutsummaryrefslogtreecommitdiff
path: root/hw/ptimer.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-20 08:04:11 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-20 08:04:11 +0000
commit67d8cec34b1560973f5c25e14fac53b4ef5b0f6e (patch)
treee498b399e74162fc7b45d025170247f05990bcea /hw/ptimer.c
parentb40d0353b0d43517ba1ab1c07eb86a1cb27f87f9 (diff)
Add signed versions of save/load functions
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5274 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ptimer.c')
-rw-r--r--hw/ptimer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/ptimer.c b/hw/ptimer.c
index 356fad7b6f..b772ca2987 100644
--- a/hw/ptimer.c
+++ b/hw/ptimer.c
@@ -165,9 +165,9 @@ void qemu_put_ptimer(QEMUFile *f, ptimer_state *s)
qemu_put_be64s(f, &s->limit);
qemu_put_be64s(f, &s->delta);
qemu_put_be32s(f, &s->period_frac);
- qemu_put_be64s(f, &s->period);
- qemu_put_be64s(f, &s->last_event);
- qemu_put_be64s(f, &s->next_event);
+ qemu_put_sbe64s(f, &s->period);
+ qemu_put_sbe64s(f, &s->last_event);
+ qemu_put_sbe64s(f, &s->next_event);
qemu_put_timer(f, s->timer);
}
@@ -177,9 +177,9 @@ void qemu_get_ptimer(QEMUFile *f, ptimer_state *s)
qemu_get_be64s(f, &s->limit);
qemu_get_be64s(f, &s->delta);
qemu_get_be32s(f, &s->period_frac);
- qemu_get_be64s(f, &s->period);
- qemu_get_be64s(f, &s->last_event);
- qemu_get_be64s(f, &s->next_event);
+ qemu_get_sbe64s(f, &s->period);
+ qemu_get_sbe64s(f, &s->last_event);
+ qemu_get_sbe64s(f, &s->next_event);
qemu_get_timer(f, s->timer);
}