diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-25 20:24:19 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-25 20:24:19 +0000 |
commit | 2ca83a8dd63bde5f78300dc0c21159873d5aaf54 (patch) | |
tree | 0f688658292495a0834760340db7708e6f09493e /hw/tsc210x.c | |
parent | 59e0fbf8e916efa9b9e9fed00f5692e8a7d684d9 (diff) |
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/tsc210x.c')
-rw-r--r-- | hw/tsc210x.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/tsc210x.c b/hw/tsc210x.c index 61e101d62..97c21ef02 100644 --- a/hw/tsc210x.c +++ b/hw/tsc210x.c @@ -1046,8 +1046,8 @@ static void tsc210x_save(QEMUFile *f, void *opaque) qemu_put_be16s(f, &s->pll[0]); qemu_put_be16s(f, &s->pll[1]); qemu_put_be16s(f, &s->volume); - qemu_put_sbe64(f, (s->volume_change - now)); - qemu_put_sbe64(f, (s->powerdown - now)); + qemu_put_be64(f, (uint64_t) (s->volume_change - now)); + qemu_put_be64(f, (uint64_t) (s->powerdown - now)); qemu_put_byte(f, s->softstep); qemu_put_be16s(f, &s->dac_power); @@ -1092,8 +1092,8 @@ static int tsc210x_load(QEMUFile *f, void *opaque, int version_id) qemu_get_be16s(f, &s->pll[0]); qemu_get_be16s(f, &s->pll[1]); qemu_get_be16s(f, &s->volume); - s->volume_change = qemu_get_sbe64(f) + now; - s->powerdown = qemu_get_sbe64(f) + now; + s->volume_change = (int64_t) qemu_get_be64(f) + now; + s->powerdown = (int64_t) qemu_get_be64(f) + now; s->softstep = qemu_get_byte(f); qemu_get_be16s(f, &s->dac_power); |