mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 19:33:39 +08:00
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
This commit is contained in:
parent
add69063e8
commit
1eb75d4a36
@ -827,11 +827,7 @@ OP_CONDZ(ltz, TCG_COND_LT);
|
||||
|
||||
static inline void gen_save_pc(target_ulong pc)
|
||||
{
|
||||
TCGv r_tmp = tcg_temp_new(TCG_TYPE_TL);
|
||||
|
||||
tcg_gen_movi_tl(r_tmp, pc);
|
||||
tcg_gen_mov_tl(cpu_PC, r_tmp);
|
||||
tcg_temp_free(r_tmp);
|
||||
tcg_gen_movi_tl(cpu_PC, pc);
|
||||
}
|
||||
|
||||
static inline void save_cpu_state (DisasContext *ctx, int do_save_pc)
|
||||
|
Loading…
Reference in New Issue
Block a user