Commit bd37ec214154c0bd863e1b36a2a945169808e620
1 parent
b0b3de89
removed warning
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3616 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
3 changed files
with
8 additions
and
3 deletions
hw/gt64xxx.c
@@ -1109,6 +1109,11 @@ PCIBus *pci_gt64120_init(qemu_irq *pic) | @@ -1109,6 +1109,11 @@ PCIBus *pci_gt64120_init(qemu_irq *pic) | ||
1109 | GT64120State *s; | 1109 | GT64120State *s; |
1110 | PCIDevice *d; | 1110 | PCIDevice *d; |
1111 | 1111 | ||
1112 | + (void)&pci_host_data_writeb; /* avoid warning */ | ||
1113 | + (void)&pci_host_data_writew; /* avoid warning */ | ||
1114 | + (void)&pci_host_data_readb; /* avoid warning */ | ||
1115 | + (void)&pci_host_data_readw; /* avoid warning */ | ||
1116 | + | ||
1112 | s = qemu_mallocz(sizeof(GT64120State)); | 1117 | s = qemu_mallocz(sizeof(GT64120State)); |
1113 | s->pci = qemu_mallocz(sizeof(GT64120PCIState)); | 1118 | s->pci = qemu_mallocz(sizeof(GT64120PCIState)); |
1114 | 1119 |
target-i386/exec.h
@@ -419,12 +419,12 @@ static inline void helper_fstt(CPU86_LDouble f, target_ulong ptr) | @@ -419,12 +419,12 @@ static inline void helper_fstt(CPU86_LDouble f, target_ulong ptr) | ||
419 | 419 | ||
420 | static inline CPU86_LDouble helper_fldt(target_ulong ptr) | 420 | static inline CPU86_LDouble helper_fldt(target_ulong ptr) |
421 | { | 421 | { |
422 | - return *(CPU86_LDouble *)ptr; | 422 | + return *(CPU86_LDouble *)(unsigned long)ptr; |
423 | } | 423 | } |
424 | 424 | ||
425 | static inline void helper_fstt(CPU86_LDouble f, target_ulong ptr) | 425 | static inline void helper_fstt(CPU86_LDouble f, target_ulong ptr) |
426 | { | 426 | { |
427 | - *(CPU86_LDouble *)ptr = f; | 427 | + *(CPU86_LDouble *)(unsigned long)ptr = f; |
428 | } | 428 | } |
429 | 429 | ||
430 | #else | 430 | #else |
target-sparc/op_helper.c
@@ -433,7 +433,7 @@ void helper_st_asi(int asi, int size) | @@ -433,7 +433,7 @@ void helper_st_asi(int asi, int size) | ||
433 | break; | 433 | break; |
434 | case 0x01c00a04: /* MXCC control register */ | 434 | case 0x01c00a04: /* MXCC control register */ |
435 | if (size == 4) | 435 | if (size == 4) |
436 | - env->mxccregs[3] = (env->mxccregs[0xa] & 0xffffffff00000000) | T1; | 436 | + env->mxccregs[3] = (env->mxccregs[0xa] & 0xffffffff00000000ULL) | T1; |
437 | else | 437 | else |
438 | DPRINTF_MXCC("%08x: unimplemented access size: %d\n", T0, size); | 438 | DPRINTF_MXCC("%08x: unimplemented access size: %d\n", T0, size); |
439 | break; | 439 | break; |