target-i386: Fix flags computation for ADOX
PATCH 1/1 target-i386: Fix flags computation for ADOX
When starting from CC_OP_DYNAMIC, and issuing adox before adcx, a typo used the wrong value for the resulting CC_OP.
Cc Blue Swirl <[email protected]>
Reported-by Torbjorn Granlund <[email protected]>
Signed-off-by Richard Henderson <[email protected]>
--- target-i386/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target-i386/translate.c +1 -1
@@ -4200,7 +4200,7 @@ static void gen_sse(CPUX86State *env, DisasContext *s, int b, carry_in = carry_out;break ;default : - end_op = (b ==0x1f6 ?CC_OP_ADCX :CC_OP_ADCOX ); + end_op = (b ==0x1f6 ?CC_OP_ADCX :CC_OP_ADOX );break ; }/* If we can't reuse carry-out, get it out of EFLAGS. */
Signature · 1 line
1.8.1.4
Blue Swirl
AppliedThanks, applied.
Quoted 26 lines · Richard Henderson
When starting from
CC_OP_DYNAMIC, and issuing adox before adcx, a typo used the wrong value for the resultingCC_OP.Cc Blue Swirl <[email protected]>Reported-by Torbjorn Granlund <[email protected]>Signed-off-by Richard Henderson <[email protected]>--- target-i386/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)target-i386/translate.c +1
-2@@ -4200,7 +4200,7 @@ static void gen_sse(CPUX86State *env, DisasContext *s, int b, carry_in = carry_out;break ;default : - end_op = (b ==0x1f6 ?CC_OP_ADCX :CC_OP_ADCOX ); + end_op = (b ==0x1f6 ?CC_OP_ADCX :CC_OP_ADOX );break ; }/* If we can't reuse carry-out, get it out of EFLAGS. */ --1.8.1.4