diff options
author | bellard | 2007-11-11 20:50:22 +0100 |
---|---|---|
committer | bellard | 2007-11-11 20:50:22 +0100 |
commit | bd37ec214154c0bd863e1b36a2a945169808e620 (patch) | |
tree | 95243624b7c4306c5a61e84e334842828c52ccd3 | |
parent | fixed FPU rounding init (diff) | |
download | qemu-bd37ec214154c0bd863e1b36a2a945169808e620.tar.gz qemu-bd37ec214154c0bd863e1b36a2a945169808e620.tar.xz qemu-bd37ec214154c0bd863e1b36a2a945169808e620.zip |
removed warning
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3616 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | hw/gt64xxx.c | 5 | ||||
-rw-r--r-- | target-i386/exec.h | 4 | ||||
-rw-r--r-- | target-sparc/op_helper.c | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c index fdb70b3eb2..65e16b2f75 100644 --- a/hw/gt64xxx.c +++ b/hw/gt64xxx.c @@ -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)); diff --git a/target-i386/exec.h b/target-i386/exec.h index 8e2a553213..70fac64fc3 100644 --- a/target-i386/exec.h +++ b/target-i386/exec.h @@ -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 diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index 13c16618fd..09e9c8bf40 100644 --- a/target-sparc/op_helper.c +++ b/target-sparc/op_helper.c @@ -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; |