From 28fb26f19ffa675ac8cc08a355e5b01cc194aa5e Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 14 May 2014 16:47:48 +0200 Subject: 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 Signed-off-by: Paolo Bonzini --- target-i386/smm_helper.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'target-i386/smm_helper.c') 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); -- cgit v1.2.3