summaryrefslogtreecommitdiffstats
path: root/target-i386/seg_helper.c
diff options
context:
space:
mode:
authorPaolo Bonzini2014-05-14 16:47:48 +0200
committerPaolo Bonzini2014-05-21 18:02:08 +0200
commit28fb26f19ffa675ac8cc08a355e5b01cc194aa5e (patch)
treeb2546f446b4cf0dc60932e7938ceae1e572289ed /target-i386/seg_helper.c
parenttarget-i386: get CPL from SS.DPL (diff)
downloadqemu-28fb26f19ffa675ac8cc08a355e5b01cc194aa5e.tar.gz
qemu-28fb26f19ffa675ac8cc08a355e5b01cc194aa5e.tar.xz
qemu-28fb26f19ffa675ac8cc08a355e5b01cc194aa5e.zip
target-i386: set CC_OP to CC_OP_EFLAGS in cpu_load_eflags
There is no reason to keep that out of the function. The comment refers to the disassembler's cc_op state rather than the CPUState field. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target-i386/seg_helper.c')
-rw-r--r--target-i386/seg_helper.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/target-i386/seg_helper.c b/target-i386/seg_helper.c
index 0f00aede08..0b19a8ce64 100644
--- a/target-i386/seg_helper.c
+++ b/target-i386/seg_helper.c
@@ -1598,7 +1598,6 @@ void helper_ljmp_protected(CPUX86State *env, int new_cs, target_ulong new_eip,
}
next_eip = env->eip + next_eip_addend;
switch_tss(env, new_cs, e1, e2, SWITCH_TSS_JMP, next_eip);
- CC_OP = CC_OP_EFLAGS;
break;
case 4: /* 286 call gate */
case 12: /* 386 call gate */
@@ -1767,7 +1766,6 @@ void helper_lcall_protected(CPUX86State *env, int new_cs, target_ulong new_eip,
raise_exception_err(env, EXCP0D_GPF, new_cs & 0xfffc);
}
switch_tss(env, new_cs, e1, e2, SWITCH_TSS_CALL, next_eip);
- CC_OP = CC_OP_EFLAGS;
return;
case 4: /* 286 call gate */
case 12: /* 386 call gate */