mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
7125c937c9
commit
28fb26f19f
4 changed files with 4 additions and 7 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue