Commit cc53adbca0df43a69fec1ce271833b7130db9abb

Authored by edgar_igl
1 parent 07c485ce

CRIS: Fix remaining build warnings.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6638 c046a42c-6fe2-441c-8c8c-71466251a162
hw/etraxfs_eth.c
@@ -25,8 +25,7 @@ @@ -25,8 +25,7 @@
25 #include <stdio.h> 25 #include <stdio.h>
26 #include "hw.h" 26 #include "hw.h"
27 #include "net.h" 27 #include "net.h"
28 -  
29 -#include "etraxfs_dma.h" 28 +#include "etraxfs.h"
30 29
31 #define D(x) 30 #define D(x)
32 31
hw/etraxfs_ser.c
@@ -26,6 +26,7 @@ @@ -26,6 +26,7 @@
26 #include <ctype.h> 26 #include <ctype.h>
27 #include "hw.h" 27 #include "hw.h"
28 #include "qemu-char.h" 28 #include "qemu-char.h"
  29 +#include "etraxfs.h"
29 30
30 #define D(x) 31 #define D(x)
31 32
hw/etraxfs_timer.c
@@ -26,6 +26,7 @@ @@ -26,6 +26,7 @@
26 #include "hw.h" 26 #include "hw.h"
27 #include "sysemu.h" 27 #include "sysemu.h"
28 #include "qemu-timer.h" 28 #include "qemu-timer.h"
  29 +#include "etraxfs.h"
29 30
30 #define D(x) 31 #define D(x)
31 32
target-cris/cpu.h
@@ -216,6 +216,9 @@ static inline int cpu_mmu_index (CPUState *env) @@ -216,6 +216,9 @@ static inline int cpu_mmu_index (CPUState *env)
216 return !!(env->pregs[PR_CCS] & U_FLAG); 216 return !!(env->pregs[PR_CCS] & U_FLAG);
217 } 217 }
218 218
  219 +int cpu_cris_handle_mmu_fault(CPUState *env, target_ulong address, int rw,
  220 + int mmu_idx, int is_softmmu);
  221 +
219 #if defined(CONFIG_USER_ONLY) 222 #if defined(CONFIG_USER_ONLY)
220 static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) 223 static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
221 { 224 {
target-cris/exec.h
@@ -33,9 +33,6 @@ static inline void regs_to_env(void) @@ -33,9 +33,6 @@ static inline void regs_to_env(void)
33 { 33 {
34 } 34 }
35 35
36 -int cpu_cris_handle_mmu_fault (CPUState *env, target_ulong address, int rw,  
37 - int mmu_idx, int is_softmmu);  
38 -  
39 #if !defined(CONFIG_USER_ONLY) 36 #if !defined(CONFIG_USER_ONLY)
40 #include "softmmu_exec.h" 37 #include "softmmu_exec.h"
41 #endif 38 #endif
target-cris/translate.c
@@ -2633,7 +2633,8 @@ static unsigned int dec_movem_mr(DisasContext *dc) @@ -2633,7 +2633,8 @@ static unsigned int dec_movem_mr(DisasContext *dc)
2633 tmp32 = tcg_temp_new_i32(); 2633 tmp32 = tcg_temp_new_i32();
2634 tcg_gen_addi_tl(addr, cpu_R[dc->op1], i * 8); 2634 tcg_gen_addi_tl(addr, cpu_R[dc->op1], i * 8);
2635 gen_load(dc, tmp32, addr, 4, 0); 2635 gen_load(dc, tmp32, addr, 4, 0);
2636 - } 2636 + } else
  2637 + TCGV_UNUSED(tmp32);
2637 tcg_temp_free(addr); 2638 tcg_temp_free(addr);
2638 2639
2639 for (i = 0; i < (nr >> 1); i++) { 2640 for (i = 0; i < (nr >> 1); i++) {