Commit 1eb75d4a3692aa7d794db07259095688c0bed2db
1 parent
add69063
target-mips: optimize gen_save_pc()
We obviously don't need to use a temporary variable to write PC. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5675 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
5 deletions
target-mips/translate.c
... | ... | @@ -827,11 +827,7 @@ OP_CONDZ(ltz, TCG_COND_LT); |
827 | 827 | |
828 | 828 | static inline void gen_save_pc(target_ulong pc) |
829 | 829 | { |
830 | - TCGv r_tmp = tcg_temp_new(TCG_TYPE_TL); | |
831 | - | |
832 | - tcg_gen_movi_tl(r_tmp, pc); | |
833 | - tcg_gen_mov_tl(cpu_PC, r_tmp); | |
834 | - tcg_temp_free(r_tmp); | |
830 | + tcg_gen_movi_tl(cpu_PC, pc); | |
835 | 831 | } |
836 | 832 | |
837 | 833 | static inline void save_cpu_state (DisasContext *ctx, int do_save_pc) | ... | ... |