mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-30 13:53:54 -06:00
cris: Replace tcg branch sequence with setcond
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
bf1064b587
commit
5a30b7f6f1
1 changed files with 2 additions and 9 deletions
|
@ -947,15 +947,8 @@ static void gen_tst_cc (DisasContext *dc, TCGv cc, int cond)
|
||||||
case CC_EQ:
|
case CC_EQ:
|
||||||
if ((arith_opt || move_opt)
|
if ((arith_opt || move_opt)
|
||||||
&& dc->cc_x_uptodate != (2 | X_FLAG)) {
|
&& dc->cc_x_uptodate != (2 | X_FLAG)) {
|
||||||
/* If cc_result is zero, T0 should be
|
tcg_gen_setcond_tl(TCG_COND_EQ, cc,
|
||||||
non-zero otherwise T0 should be zero. */
|
cc_result, tcg_const_tl(0));
|
||||||
int l1;
|
|
||||||
l1 = gen_new_label();
|
|
||||||
tcg_gen_movi_tl(cc, 0);
|
|
||||||
tcg_gen_brcondi_tl(TCG_COND_NE, cc_result,
|
|
||||||
0, l1);
|
|
||||||
tcg_gen_movi_tl(cc, 1);
|
|
||||||
gen_set_label(l1);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
cris_evaluate_flags(dc);
|
cris_evaluate_flags(dc);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue