mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
cris: Avoid useless tmp in t_gen_cc_jmp()
Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
This commit is contained in:
parent
78935c4a4b
commit
2a704b137f
1 changed files with 1 additions and 6 deletions
|
@ -577,20 +577,15 @@ static inline void t_gen_swapr(TCGv d, TCGv s)
|
||||||
|
|
||||||
static void t_gen_cc_jmp(TCGv pc_true, TCGv pc_false)
|
static void t_gen_cc_jmp(TCGv pc_true, TCGv pc_false)
|
||||||
{
|
{
|
||||||
TCGv btaken;
|
|
||||||
int l1;
|
int l1;
|
||||||
|
|
||||||
l1 = gen_new_label();
|
l1 = gen_new_label();
|
||||||
btaken = tcg_temp_new();
|
|
||||||
|
|
||||||
/* Conditional jmp. */
|
/* Conditional jmp. */
|
||||||
tcg_gen_mov_tl(btaken, env_btaken);
|
|
||||||
tcg_gen_mov_tl(env_pc, pc_false);
|
tcg_gen_mov_tl(env_pc, pc_false);
|
||||||
tcg_gen_brcondi_tl(TCG_COND_EQ, btaken, 0, l1);
|
tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, l1);
|
||||||
tcg_gen_mov_tl(env_pc, pc_true);
|
tcg_gen_mov_tl(env_pc, pc_true);
|
||||||
gen_set_label(l1);
|
gen_set_label(l1);
|
||||||
|
|
||||||
tcg_temp_free(btaken);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest)
|
static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue