summaryrefslogtreecommitdiff
path: root/hw/pxa2xx_timer.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-25 20:24:19 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-25 20:24:19 +0000
commite2a7dfa9317ef433fd9916dfe979e64ee87628e9 (patch)
tree0f688658292495a0834760340db7708e6f09493e /hw/pxa2xx_timer.c
parent32fb0a72120b18fd5770d5aadd3477412bc4a6ae (diff)
downloadqemu-e2a7dfa9317ef433fd9916dfe979e64ee87628e9.tar.gz
qemu-e2a7dfa9317ef433fd9916dfe979e64ee87628e9.tar.bz2
qemu-e2a7dfa9317ef433fd9916dfe979e64ee87628e9.zip
Revert r5274 which breaks savevm/loadvm
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5321 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pxa2xx_timer.c')
-rw-r--r--hw/pxa2xx_timer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/pxa2xx_timer.c b/hw/pxa2xx_timer.c
index 01cfc4fab9..7e1504acc1 100644
--- a/hw/pxa2xx_timer.c
+++ b/hw/pxa2xx_timer.c
@@ -384,8 +384,8 @@ static void pxa2xx_timer_save(QEMUFile *f, void *opaque)
for (i = 0; i < 8; i ++) {
qemu_put_be32s(f, &s->tm4[i].tm.value);
qemu_put_be32(f, s->tm4[i].tm.level);
- qemu_put_sbe32s(f, &s->tm4[i].oldclock);
- qemu_put_sbe32s(f, &s->tm4[i].clock);
+ qemu_put_be32s(f, (uint32_t *) &s->tm4[i].oldclock);
+ qemu_put_be32s(f, (uint32_t *) &s->tm4[i].clock);
qemu_put_be64s(f, &s->tm4[i].lastload);
qemu_put_be32s(f, &s->tm4[i].freq);
qemu_put_be32s(f, &s->tm4[i].control);
@@ -418,8 +418,8 @@ static int pxa2xx_timer_load(QEMUFile *f, void *opaque, int version_id)
for (i = 0; i < 8; i ++) {
qemu_get_be32s(f, &s->tm4[i].tm.value);
s->tm4[i].tm.level = qemu_get_be32(f);
- qemu_get_sbe32s(f, &s->tm4[i].oldclock);
- qemu_get_sbe32s(f, &s->tm4[i].clock);
+ qemu_get_be32s(f, (uint32_t *) &s->tm4[i].oldclock);
+ qemu_get_be32s(f, (uint32_t *) &s->tm4[i].clock);
qemu_get_be64s(f, &s->tm4[i].lastload);
qemu_get_be32s(f, &s->tm4[i].freq);
qemu_get_be32s(f, &s->tm4[i].control);