diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-16 23:41:11 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-16 23:41:11 +0000 |
commit | bee8d6842d1421ce3456779492561a92530e9c5a (patch) | |
tree | df34a09af2cc2bfa13af3c749172a2932d7a3735 /hw/i8254.c | |
parent | b99dc0d1a4d395bad649ef25abe21c5f076787a5 (diff) |
qemu_put signedness fixes, by Andre Przywara.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3824 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/i8254.c')
-rw-r--r-- | hw/i8254.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/i8254.c b/hw/i8254.c index 0c59aa3f61..4813b0374c 100644 --- a/hw/i8254.c +++ b/hw/i8254.c @@ -397,7 +397,7 @@ static void pit_save(QEMUFile *f, void *opaque) for(i = 0; i < 3; i++) { s = &pit->channels[i]; - qemu_put_be32s(f, &s->count); + qemu_put_be32(f, s->count); qemu_put_be16s(f, &s->latched_count); qemu_put_8s(f, &s->count_latched); qemu_put_8s(f, &s->status_latched); @@ -409,9 +409,9 @@ static void pit_save(QEMUFile *f, void *opaque) qemu_put_8s(f, &s->mode); qemu_put_8s(f, &s->bcd); qemu_put_8s(f, &s->gate); - qemu_put_be64s(f, &s->count_load_time); + qemu_put_be64(f, s->count_load_time); if (s->irq_timer) { - qemu_put_be64s(f, &s->next_transition_time); + qemu_put_be64(f, s->next_transition_time); qemu_put_timer(f, s->irq_timer); } } @@ -428,7 +428,7 @@ static int pit_load(QEMUFile *f, void *opaque, int version_id) for(i = 0; i < 3; i++) { s = &pit->channels[i]; - qemu_get_be32s(f, &s->count); + s->count=qemu_get_be32(f); qemu_get_be16s(f, &s->latched_count); qemu_get_8s(f, &s->count_latched); qemu_get_8s(f, &s->status_latched); @@ -440,9 +440,9 @@ static int pit_load(QEMUFile *f, void *opaque, int version_id) qemu_get_8s(f, &s->mode); qemu_get_8s(f, &s->bcd); qemu_get_8s(f, &s->gate); - qemu_get_be64s(f, &s->count_load_time); + s->count_load_time=qemu_get_be64(f); if (s->irq_timer) { - qemu_get_be64s(f, &s->next_transition_time); + s->next_transition_time=qemu_get_be64(f); qemu_get_timer(f, s->irq_timer); } } |