summaryrefslogtreecommitdiff
path: root/hw/tmp105.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
commit2ca83a8dd63bde5f78300dc0c21159873d5aaf54 (patch)
tree0f688658292495a0834760340db7708e6f09493e /hw/tmp105.c
parent59e0fbf8e916efa9b9e9fed00f5692e8a7d684d9 (diff)
downloadqemu-2ca83a8dd63bde5f78300dc0c21159873d5aaf54.tar.gz
qemu-2ca83a8dd63bde5f78300dc0c21159873d5aaf54.tar.bz2
qemu-2ca83a8dd63bde5f78300dc0c21159873d5aaf54.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/tmp105.c')
-rw-r--r--hw/tmp105.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/tmp105.c b/hw/tmp105.c
index aa2bff5609..a4a0103d7b 100644
--- a/hw/tmp105.c
+++ b/hw/tmp105.c
@@ -185,9 +185,9 @@ static void tmp105_save(QEMUFile *f, void *opaque)
qemu_put_8s(f, &s->pointer);
qemu_put_8s(f, &s->config);
- qemu_put_sbe16s(f, &s->temperature);
- qemu_put_sbe16s(f, &s->limit[0]);
- qemu_put_sbe16s(f, &s->limit[1]);
+ qemu_put_be16s(f, (uint16_t *) &s->temperature);
+ qemu_put_be16s(f, (uint16_t *) &s->limit[0]);
+ qemu_put_be16s(f, (uint16_t *) &s->limit[1]);
qemu_put_byte(f, s->alarm);
s->faults = tmp105_faultq[(s->config >> 3) & 3]; /* F */
@@ -204,9 +204,9 @@ static int tmp105_load(QEMUFile *f, void *opaque, int version_id)
qemu_get_8s(f, &s->pointer);
qemu_get_8s(f, &s->config);
- qemu_get_sbe16s(f, &s->temperature);
- qemu_get_sbe16s(f, &s->limit[0]);
- qemu_get_sbe16s(f, &s->limit[1]);
+ qemu_get_be16s(f, (uint16_t *) &s->temperature);
+ qemu_get_be16s(f, (uint16_t *) &s->limit[0]);
+ qemu_get_be16s(f, (uint16_t *) &s->limit[1]);
s->alarm = qemu_get_byte(f);
tmp105_interrupt_update(s);