target/i386/tcg: compute C of CC_OP_ADOX without going through helper
PATCH 1/1 target/i386/tcg: compute C of CC_OP_ADOX without going through helper
With the CC_OP_ADOX cc_op, the carry flag remains in CC_SRC just like with CC_OP_EFLAGS. Add CC_OP_ADOX to the same gen_prepare_eflags_c fast path as CC_OP_EFLAGS, to avoid generating a helper call.
Signed-off-by Paolo Bonzini <[email protected]>
--- target/i386/tcg/translate.c | 1 + 1 file changed, 1 insertion(+)
target/i386/tcg/translate.c +1 -0
@@ -924,6 +924,7 @@ static CCPrepare gen_prepare_eflags_c(DisasContext *s, TCGv reg) .rhs_type = CC_PREPARE_DIRECT };case CC_OP_EFLAGS : +case CC_OP_ADOX : case CC_OP_SARB ... CC_OP_SARQ:/* CC_SRC & 1 */ return (CCPrepare ) { .cond =TCG_COND_TSTNE ,
Signature · 1 line
2.55.0
Quoted 8 lines · Paolo Bonzini
With the
CC_OP_ADOXcc_op, the carry flag remains inCC_SRCjust like withCC_OP_EFLAGS. AddCC_OP_ADOXto the samegen_prepare_eflags_cfast path asCC_OP_EFLAGS, to avoid generating a helper call.Signed-off-by Paolo Bonzini<[email protected]>--- target/i386/tcg/translate.c | 1 + 1 file changed, 1 insertion(+)
Reviewed-by Richard Henderson <[email protected]>
r~