diff options
author | Paolo Bonzini | 2014-05-14 16:47:48 +0200 |
---|---|---|
committer | Paolo Bonzini | 2014-05-21 18:02:08 +0200 |
commit | 28fb26f19ffa675ac8cc08a355e5b01cc194aa5e (patch) | |
tree | b2546f446b4cf0dc60932e7938ceae1e572289ed /target-i386/smm_helper.c | |
parent | target-i386: get CPL from SS.DPL (diff) | |
download | qemu-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/smm_helper.c')
-rw-r--r-- | target-i386/smm_helper.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/target-i386/smm_helper.c b/target-i386/smm_helper.c index 517f3b0cb7..1e5f5ce07e 100644 --- a/target-i386/smm_helper.c +++ b/target-i386/smm_helper.c @@ -168,7 +168,6 @@ void do_smm_enter(X86CPU *cpu) CR0_PG_MASK)); cpu_x86_update_cr4(env, 0); env->dr[7] = 0x00000400; - CC_OP = CC_OP_EFLAGS; cpu_x86_load_seg_cache(env, R_CS, (env->smbase >> 4) & 0xffff, env->smbase, 0xffffffff, @@ -308,7 +307,6 @@ void helper_rsm(CPUX86State *env) env->smbase = ldl_phys(cs->as, sm_state + 0x7ef8) & ~0x7fff; } #endif - CC_OP = CC_OP_EFLAGS; env->hflags &= ~HF_SMM_MASK; cpu_smm_update(env); |