Commit cd5158ea694b6a389e7d8b35cdd5f5b5562335e0

Authored by aurel32
1 parent 3faf778e

MIPS: remove a few warnings

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5944 c046a42c-6fe2-441c-8c8c-71466251a162
hw/g364fb.c
@@ -20,6 +20,7 @@ @@ -20,6 +20,7 @@
20 */ 20 */
21 21
22 #include "hw.h" 22 #include "hw.h"
  23 +#include "mips.h"
23 #include "console.h" 24 #include "console.h"
24 #include "pixel_ops.h" 25 #include "pixel_ops.h"
25 26
hw/mips_jazz.c
@@ -102,12 +102,12 @@ static void audio_init(qemu_irq *pic) @@ -102,12 +102,12 @@ static void audio_init(qemu_irq *pic)
102 } 102 }
103 #endif 103 #endif
104 104
105 -void espdma_memory_read(void *opaque, uint8_t *buf, int len) 105 +static void espdma_memory_read(void *opaque, uint8_t *buf, int len)
106 { 106 {
107 printf("espdma_memory_read(buf %p, len %d) not implemented\n", buf, len); 107 printf("espdma_memory_read(buf %p, len %d) not implemented\n", buf, len);
108 } 108 }
109 109
110 -void espdma_memory_write(void *opaque, uint8_t *buf, int len) 110 +static void espdma_memory_write(void *opaque, uint8_t *buf, int len)
111 { 111 {
112 printf("espdma_memory_write(buf %p, len %d) not implemented\n", buf, len); 112 printf("espdma_memory_write(buf %p, len %d) not implemented\n", buf, len);
113 } 113 }
hw/rc4030.c
@@ -23,6 +23,7 @@ @@ -23,6 +23,7 @@
23 */ 23 */
24 24
25 #include "hw.h" 25 #include "hw.h"
  26 +#include "mips.h"
26 #include "qemu-timer.h" 27 #include "qemu-timer.h"
27 28
28 //#define DEBUG_RC4030 29 //#define DEBUG_RC4030
target-mips/op_helper.c
@@ -1701,7 +1701,7 @@ target_ulong do_ei (void) @@ -1701,7 +1701,7 @@ target_ulong do_ei (void)
1701 return t0; 1701 return t0;
1702 } 1702 }
1703 1703
1704 -void debug_pre_eret (void) 1704 +static void debug_pre_eret (void)
1705 { 1705 {
1706 fprintf(logfile, "ERET: PC " TARGET_FMT_lx " EPC " TARGET_FMT_lx, 1706 fprintf(logfile, "ERET: PC " TARGET_FMT_lx " EPC " TARGET_FMT_lx,
1707 env->active_tc.PC, env->CP0_EPC); 1707 env->active_tc.PC, env->CP0_EPC);
@@ -1712,7 +1712,7 @@ void debug_pre_eret (void) @@ -1712,7 +1712,7 @@ void debug_pre_eret (void)
1712 fputs("\n", logfile); 1712 fputs("\n", logfile);
1713 } 1713 }
1714 1714
1715 -void debug_post_eret (void) 1715 +static void debug_post_eret (void)
1716 { 1716 {
1717 fprintf(logfile, " => PC " TARGET_FMT_lx " EPC " TARGET_FMT_lx, 1717 fprintf(logfile, " => PC " TARGET_FMT_lx " EPC " TARGET_FMT_lx,
1718 env->active_tc.PC, env->CP0_EPC); 1718 env->active_tc.PC, env->CP0_EPC);
@@ -2776,7 +2776,7 @@ void do_cmpabs_d_ ## op (uint64_t fdt0, uint64_t fdt1, int cc) \ @@ -2776,7 +2776,7 @@ void do_cmpabs_d_ ## op (uint64_t fdt0, uint64_t fdt1, int cc) \
2776 CLEAR_FP_COND(cc, env->active_fpu); \ 2776 CLEAR_FP_COND(cc, env->active_fpu); \
2777 } 2777 }
2778 2778
2779 -int float64_is_unordered(int sig, float64 a, float64 b STATUS_PARAM) 2779 +static int float64_is_unordered(int sig, float64 a, float64 b STATUS_PARAM)
2780 { 2780 {
2781 if (float64_is_signaling_nan(a) || 2781 if (float64_is_signaling_nan(a) ||
2782 float64_is_signaling_nan(b) || 2782 float64_is_signaling_nan(b) ||
@@ -2834,7 +2834,7 @@ void do_cmpabs_s_ ## op (uint32_t fst0, uint32_t fst1, int cc) \ @@ -2834,7 +2834,7 @@ void do_cmpabs_s_ ## op (uint32_t fst0, uint32_t fst1, int cc) \
2834 CLEAR_FP_COND(cc, env->active_fpu); \ 2834 CLEAR_FP_COND(cc, env->active_fpu); \
2835 } 2835 }
2836 2836
2837 -flag float32_is_unordered(int sig, float32 a, float32 b STATUS_PARAM) 2837 +static flag float32_is_unordered(int sig, float32 a, float32 b STATUS_PARAM)
2838 { 2838 {
2839 if (float32_is_signaling_nan(a) || 2839 if (float32_is_signaling_nan(a) ||
2840 float32_is_signaling_nan(b) || 2840 float32_is_signaling_nan(b) ||