Skip to content

Commit

Permalink
target-i386: ROR r8/r16 imm instruction fix
Browse files Browse the repository at this point in the history
Fix EFLAGS corruption by ROR r8/r16 imm instruction located at the end
of the TB, similarly to commit 089305a for the non-immediate case.

Reported-by: Hervé Poussineau <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
  • Loading branch information
aurel32 committed May 10, 2013
1 parent 66e61b5 commit 38ebb39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target-i386/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1871,6 +1871,7 @@ static void gen_rot_rm_im(DisasContext *s, int ot, int op1, int op2,
if (is_right) {
tcg_gen_shri_tl(cpu_cc_src2, cpu_T[0], mask - 1);
tcg_gen_shri_tl(cpu_cc_dst, cpu_T[0], mask);
tcg_gen_andi_tl(cpu_cc_dst, cpu_cc_dst, 1);
} else {
tcg_gen_shri_tl(cpu_cc_src2, cpu_T[0], mask);
tcg_gen_andi_tl(cpu_cc_dst, cpu_T[0], 1);
Expand Down

0 comments on commit 38ebb39

Please sign in to comment.