summaryrefslogtreecommitdiff
path: root/hw/apic.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-16 23:41:11 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-16 23:41:11 +0000
commitbee8d6842d1421ce3456779492561a92530e9c5a (patch)
treedf34a09af2cc2bfa13af3c749172a2932d7a3735 /hw/apic.c
parentb99dc0d1a4d395bad649ef25abe21c5f076787a5 (diff)
downloadqemu-bee8d6842d1421ce3456779492561a92530e9c5a.tar.gz
qemu-bee8d6842d1421ce3456779492561a92530e9c5a.tar.bz2
qemu-bee8d6842d1421ce3456779492561a92530e9c5a.zip
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/apic.c')
-rw-r--r--hw/apic.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/apic.c b/hw/apic.c
index 78f49d199b..db02f9a985 100644
--- a/hw/apic.c
+++ b/hw/apic.c
@@ -761,10 +761,10 @@ static void apic_save(QEMUFile *f, void *opaque)
qemu_put_be32s(f, &s->icr[0]);
qemu_put_be32s(f, &s->icr[1]);
qemu_put_be32s(f, &s->divide_conf);
- qemu_put_be32s(f, &s->count_shift);
+ qemu_put_be32(f, s->count_shift);
qemu_put_be32s(f, &s->initial_count);
- qemu_put_be64s(f, &s->initial_count_load_time);
- qemu_put_be64s(f, &s->next_time);
+ qemu_put_be64(f, s->initial_count_load_time);
+ qemu_put_be64(f, s->next_time);
qemu_put_timer(f, s->timer);
}
@@ -797,10 +797,10 @@ static int apic_load(QEMUFile *f, void *opaque, int version_id)
qemu_get_be32s(f, &s->icr[0]);
qemu_get_be32s(f, &s->icr[1]);
qemu_get_be32s(f, &s->divide_conf);
- qemu_get_be32s(f, &s->count_shift);
+ s->count_shift=qemu_get_be32(f);
qemu_get_be32s(f, &s->initial_count);
- qemu_get_be64s(f, &s->initial_count_load_time);
- qemu_get_be64s(f, &s->next_time);
+ s->initial_count_load_time=qemu_get_be64(f);
+ s->next_time=qemu_get_be64(f);
if (version_id >= 2)
qemu_get_timer(f, s->timer);