Commit f5b78d4fead85fdcea86c820c45557d98b4313ad
1 parent
a569557f
Fix type mismatch.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4652 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
target-mips/translate.c
| @@ -746,7 +746,7 @@ static inline void gen_save_pc(target_ulong pc) | @@ -746,7 +746,7 @@ static inline void gen_save_pc(target_ulong pc) | ||
| 746 | tcg_gen_movi_tl(r_tmp, pc); | 746 | tcg_gen_movi_tl(r_tmp, pc); |
| 747 | tcg_gen_ld_i32(r_tc_off, cpu_env, offsetof(CPUState, current_tc)); | 747 | tcg_gen_ld_i32(r_tc_off, cpu_env, offsetof(CPUState, current_tc)); |
| 748 | tcg_gen_muli_i32(r_tc_off, r_tc_off, sizeof(target_ulong)); | 748 | tcg_gen_muli_i32(r_tc_off, r_tc_off, sizeof(target_ulong)); |
| 749 | - tcg_gen_ext_i32_ptr(r_tc_off_tl, r_tc_off); | 749 | + tcg_gen_ext_i32_tl(r_tc_off_tl, r_tc_off); |
| 750 | tcg_gen_add_ptr(r_ptr, cpu_env, r_tc_off_tl); | 750 | tcg_gen_add_ptr(r_ptr, cpu_env, r_tc_off_tl); |
| 751 | tcg_gen_st_tl(r_tmp, r_ptr, offsetof(CPUState, PC)); | 751 | tcg_gen_st_tl(r_tmp, r_ptr, offsetof(CPUState, PC)); |
| 752 | dead_tmp(r_tc_off); | 752 | dead_tmp(r_tc_off); |
| @@ -762,7 +762,7 @@ static inline void gen_breg_pc(void) | @@ -762,7 +762,7 @@ static inline void gen_breg_pc(void) | ||
| 762 | tcg_gen_ld_tl(r_tmp, cpu_env, offsetof(CPUState, btarget)); | 762 | tcg_gen_ld_tl(r_tmp, cpu_env, offsetof(CPUState, btarget)); |
| 763 | tcg_gen_ld_i32(r_tc_off, cpu_env, offsetof(CPUState, current_tc)); | 763 | tcg_gen_ld_i32(r_tc_off, cpu_env, offsetof(CPUState, current_tc)); |
| 764 | tcg_gen_muli_i32(r_tc_off, r_tc_off, sizeof(target_ulong)); | 764 | tcg_gen_muli_i32(r_tc_off, r_tc_off, sizeof(target_ulong)); |
| 765 | - tcg_gen_ext_i32_ptr(r_tc_off_tl, r_tc_off); | 765 | + tcg_gen_ext_i32_tl(r_tc_off_tl, r_tc_off); |
| 766 | tcg_gen_add_ptr(r_ptr, cpu_env, r_tc_off_tl); | 766 | tcg_gen_add_ptr(r_ptr, cpu_env, r_tc_off_tl); |
| 767 | tcg_gen_st_tl(r_tmp, r_ptr, offsetof(CPUState, PC)); | 767 | tcg_gen_st_tl(r_tmp, r_ptr, offsetof(CPUState, PC)); |
| 768 | dead_tmp(r_tc_off); | 768 | dead_tmp(r_tc_off); |