diff --git a/target-mips/translate.c b/target-mips/translate.c
index 0c88d2f072ecbac6ec69bb443c85e8004c7bb7af..50aaf3ac748352ed891ef5a7f1f0899330305d37 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -5833,7 +5833,7 @@ static inline void gen_movcf_d (DisasContext *ctx, int fs, int fd, int cc, int t
     tcg_gen_andi_i32(t0, fpu_fcr31, get_fp_bit(cc));
     tcg_gen_brcondi_i32(cond, t0, 0, l1);
     tcg_temp_free_i32(t0);
-    fp0 = tcg_temp_local_new_i64();
+    fp0 = tcg_temp_new_i64();
     gen_load_fpr64(ctx, fp0, fs);
     gen_store_fpr64(ctx, fp0, fd);
     tcg_temp_free_i64(fp0);