From b6c4f71f508977fedc11f5c822642a5bb1c899a3 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Thu, 2 Oct 2008 19:14:17 +0000 Subject: Resurrect the safe part of r5274 git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5401 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/ptimer.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'hw/ptimer.c') diff --git a/hw/ptimer.c b/hw/ptimer.c index 356fad7..b772ca2 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); } -- cgit v1.1