summaryrefslogtreecommitdiff
path: root/target-mips
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-02 09:35:46 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-02 09:35:46 +0000
commitf5b78d4fead85fdcea86c820c45557d98b4313ad (patch)
treee4b5e75518e535116472661ec9a389bf870682bf /target-mips
parenta569557f52c60afbe7360d5a1cbd6be309dd93ae (diff)
downloadqemu-f5b78d4fead85fdcea86c820c45557d98b4313ad.tar.gz
Fix type mismatch.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4652 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c
index 79af6ca4de..4808d08a57 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -746,7 +746,7 @@ static inline void gen_save_pc(target_ulong pc)
tcg_gen_movi_tl(r_tmp, pc);
tcg_gen_ld_i32(r_tc_off, cpu_env, offsetof(CPUState, current_tc));
tcg_gen_muli_i32(r_tc_off, r_tc_off, sizeof(target_ulong));
- tcg_gen_ext_i32_ptr(r_tc_off_tl, r_tc_off);
+ tcg_gen_ext_i32_tl(r_tc_off_tl, r_tc_off);
tcg_gen_add_ptr(r_ptr, cpu_env, r_tc_off_tl);
tcg_gen_st_tl(r_tmp, r_ptr, offsetof(CPUState, PC));
dead_tmp(r_tc_off);
@@ -762,7 +762,7 @@ static inline void gen_breg_pc(void)
tcg_gen_ld_tl(r_tmp, cpu_env, offsetof(CPUState, btarget));
tcg_gen_ld_i32(r_tc_off, cpu_env, offsetof(CPUState, current_tc));
tcg_gen_muli_i32(r_tc_off, r_tc_off, sizeof(target_ulong));
- tcg_gen_ext_i32_ptr(r_tc_off_tl, r_tc_off);
+ tcg_gen_ext_i32_tl(r_tc_off_tl, r_tc_off);
tcg_gen_add_ptr(r_ptr, cpu_env, r_tc_off_tl);
tcg_gen_st_tl(r_tmp, r_ptr, offsetof(CPUState, PC));
dead_tmp(r_tc_off);