summary refs log tree commit diff stats
path: root/hw/pxa2xx_timer.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-04-22 02:56:20 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-04-22 02:56:20 +0000
commita050e24df2d534d960ed4ead4865f741e40d472b (patch)
treea7911f1ad00768d48cadd5c3f36ea724a7c5bd6c /hw/pxa2xx_timer.c
parentb21e98630e5d7deef9be5499ff1c8cf1cc5743bb (diff)
downloadfocaccia-qemu-a050e24df2d534d960ed4ead4865f741e40d472b.tar.gz
focaccia-qemu-a050e24df2d534d960ed4ead4865f741e40d472b.zip
Hush pointer target signedness warnings from gcc 4.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4231 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pxa2xx_timer.c')
-rw-r--r--hw/pxa2xx_timer.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/hw/pxa2xx_timer.c b/hw/pxa2xx_timer.c
index 90777f8220..7e1504acc1 100644
--- a/hw/pxa2xx_timer.c
+++ b/hw/pxa2xx_timer.c
@@ -372,8 +372,8 @@ static void pxa2xx_timer_save(QEMUFile *f, void *opaque)
     pxa2xx_timer_info *s = (pxa2xx_timer_info *) opaque;
     int i;
 
-    qemu_put_be32s(f, &s->clock);
-    qemu_put_be32s(f, &s->oldclock);
+    qemu_put_be32s(f, (uint32_t *) &s->clock);
+    qemu_put_be32s(f, (uint32_t *) &s->oldclock);
     qemu_put_be64s(f, &s->lastload);
 
     for (i = 0; i < 4; i ++) {
@@ -384,8 +384,8 @@ static void pxa2xx_timer_save(QEMUFile *f, void *opaque)
         for (i = 0; i < 8; i ++) {
             qemu_put_be32s(f, &s->tm4[i].tm.value);
             qemu_put_be32(f, s->tm4[i].tm.level);
-            qemu_put_be32s(f, &s->tm4[i].oldclock);
-            qemu_put_be32s(f, &s->tm4[i].clock);
+            qemu_put_be32s(f, (uint32_t *) &s->tm4[i].oldclock);
+            qemu_put_be32s(f, (uint32_t *) &s->tm4[i].clock);
             qemu_put_be64s(f, &s->tm4[i].lastload);
             qemu_put_be32s(f, &s->tm4[i].freq);
             qemu_put_be32s(f, &s->tm4[i].control);
@@ -403,8 +403,8 @@ static int pxa2xx_timer_load(QEMUFile *f, void *opaque, int version_id)
     int64_t now;
     int i;
 
-    qemu_get_be32s(f, &s->clock);
-    qemu_get_be32s(f, &s->oldclock);
+    qemu_get_be32s(f, (uint32_t *) &s->clock);
+    qemu_get_be32s(f, (uint32_t *) &s->oldclock);
     qemu_get_be64s(f, &s->lastload);
 
     now = qemu_get_clock(vm_clock);
@@ -418,8 +418,8 @@ static int pxa2xx_timer_load(QEMUFile *f, void *opaque, int version_id)
         for (i = 0; i < 8; i ++) {
             qemu_get_be32s(f, &s->tm4[i].tm.value);
             s->tm4[i].tm.level = qemu_get_be32(f);
-            qemu_get_be32s(f, &s->tm4[i].oldclock);
-            qemu_get_be32s(f, &s->tm4[i].clock);
+            qemu_get_be32s(f, (uint32_t *) &s->tm4[i].oldclock);
+            qemu_get_be32s(f, (uint32_t *) &s->tm4[i].clock);
             qemu_get_be64s(f, &s->tm4[i].lastload);
             qemu_get_be32s(f, &s->tm4[i].freq);
             qemu_get_be32s(f, &s->tm4[i].control);