]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
removed warning
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 11 Nov 2007 19:50:22 +0000 (19:50 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 11 Nov 2007 19:50:22 +0000 (19:50 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3616 c046a42c-6fe2-441c-8c8c-71466251a162

hw/gt64xxx.c
target-i386/exec.h
target-sparc/op_helper.c

index fdb70b3eb28f2ac2e8d22366629419ec0c8df209..65e16b2f75aa753492aa3883e0c3d0eb7940196d 100644 (file)
@@ -1109,6 +1109,11 @@ PCIBus *pci_gt64120_init(qemu_irq *pic)
     GT64120State *s;
     PCIDevice *d;
 
+    (void)&pci_host_data_writeb; /* avoid warning */
+    (void)&pci_host_data_writew; /* avoid warning */
+    (void)&pci_host_data_readb; /* avoid warning */
+    (void)&pci_host_data_readw; /* avoid warning */
+
     s = qemu_mallocz(sizeof(GT64120State));
     s->pci = qemu_mallocz(sizeof(GT64120PCIState));
 
index 8e2a55321354002d62e3eb12fa149f5bfe7f790f..70fac64fc32aa0f2176abad99a7ab07e03794356 100644 (file)
@@ -419,12 +419,12 @@ static inline void helper_fstt(CPU86_LDouble f, target_ulong ptr)
 
 static inline CPU86_LDouble helper_fldt(target_ulong ptr)
 {
-    return *(CPU86_LDouble *)ptr;
+    return *(CPU86_LDouble *)(unsigned long)ptr;
 }
 
 static inline void helper_fstt(CPU86_LDouble f, target_ulong ptr)
 {
-    *(CPU86_LDouble *)ptr = f;
+    *(CPU86_LDouble *)(unsigned long)ptr = f;
 }
 
 #else
index 13c16618fdc987b60a0bce7124f2cb7f797fd4ca..09e9c8bf40798a06c9ca86d313332bfd34191824 100644 (file)
@@ -433,7 +433,7 @@ void helper_st_asi(int asi, int size)
             break;
         case 0x01c00a04: /* MXCC control register */
             if (size == 4)
-                env->mxccregs[3] = (env->mxccregs[0xa] & 0xffffffff00000000) | T1;
+                env->mxccregs[3] = (env->mxccregs[0xa] & 0xffffffff00000000ULL) | T1;
             else
                 DPRINTF_MXCC("%08x: unimplemented access size: %d\n", T0, size);
             break;