diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-20 08:04:11 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-20 08:04:11 +0000 |
commit | 67d8cec34b1560973f5c25e14fac53b4ef5b0f6e (patch) | |
tree | e498b399e74162fc7b45d025170247f05990bcea /hw/tsc210x.c | |
parent | b40d0353b0d43517ba1ab1c07eb86a1cb27f87f9 (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/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 97c21ef026..61e101d628 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_be64(f, (uint64_t) (s->volume_change - now)); - qemu_put_be64(f, (uint64_t) (s->powerdown - now)); + qemu_put_sbe64(f, (s->volume_change - now)); + qemu_put_sbe64(f, (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 = (int64_t) qemu_get_be64(f) + now; - s->powerdown = (int64_t) qemu_get_be64(f) + now; + s->volume_change = qemu_get_sbe64(f) + now; + s->powerdown = qemu_get_sbe64(f) + now; s->softstep = qemu_get_byte(f); qemu_get_be16s(f, &s->dac_power); |