mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Switch MIPS movn/movz to TCG.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4506 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
a4e7dd5267
commit
20c4c97c9b
2 changed files with 14 additions and 16 deletions
|
@ -1707,11 +1707,23 @@ static void gen_arith (CPUState *env, DisasContext *ctx, uint32_t opc,
|
|||
opn = "mul";
|
||||
break;
|
||||
case OPC_MOVN:
|
||||
gen_op_movn(rd);
|
||||
{
|
||||
int l1 = gen_new_label();
|
||||
|
||||
tcg_gen_brcond_tl(TCG_COND_EQ, cpu_T[1], tcg_const_tl(0), l1);
|
||||
gen_op_store_gpr_T0(rd);
|
||||
gen_set_label(l1);
|
||||
}
|
||||
opn = "movn";
|
||||
goto print;
|
||||
case OPC_MOVZ:
|
||||
gen_op_movz(rd);
|
||||
{
|
||||
int l1 = gen_new_label();
|
||||
|
||||
tcg_gen_brcond_tl(TCG_COND_NE, cpu_T[1], tcg_const_tl(0), l1);
|
||||
gen_op_store_gpr_T0(rd);
|
||||
gen_set_label(l1);
|
||||
}
|
||||
opn = "movz";
|
||||
goto print;
|
||||
case OPC_SLLV:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue