提交 226c9132 编写于 作者: B bellard

fixed from 2.4.20 kernel


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@154 c046a42c-6fe2-441c-8c8c-71466251a162
上级 b8bf3e3a
...@@ -141,6 +141,11 @@ static inline void clear_TF(CPUX86State *env) ...@@ -141,6 +141,11 @@ static inline void clear_TF(CPUX86State *env)
env->eflags &= ~TF_MASK; env->eflags &= ~TF_MASK;
} }
static inline void clear_AC(CPUX86State *env)
{
env->eflags &= ~AC_MASK;
}
static inline int set_vflags_long(unsigned long eflags, CPUX86State *env) static inline int set_vflags_long(unsigned long eflags, CPUX86State *env)
{ {
TaskState *ts = env->opaque; TaskState *ts = env->opaque;
...@@ -149,6 +154,8 @@ static inline int set_vflags_long(unsigned long eflags, CPUX86State *env) ...@@ -149,6 +154,8 @@ static inline int set_vflags_long(unsigned long eflags, CPUX86State *env)
set_flags(env->eflags, eflags, SAFE_MASK); set_flags(env->eflags, eflags, SAFE_MASK);
if (eflags & IF_MASK) if (eflags & IF_MASK)
return set_IF(env); return set_IF(env);
else
clear_IF(env);
return 0; return 0;
} }
...@@ -160,6 +167,8 @@ static inline int set_vflags_short(unsigned short flags, CPUX86State *env) ...@@ -160,6 +167,8 @@ static inline int set_vflags_short(unsigned short flags, CPUX86State *env)
set_flags(env->eflags, flags, SAFE_MASK); set_flags(env->eflags, flags, SAFE_MASK);
if (flags & IF_MASK) if (flags & IF_MASK)
return set_IF(env); return set_IF(env);
else
clear_IF(env);
return 0; return 0;
} }
...@@ -217,6 +226,7 @@ static void do_int(CPUX86State *env, int intno) ...@@ -217,6 +226,7 @@ static void do_int(CPUX86State *env, int intno)
cpu_x86_load_seg(env, R_CS, segoffs >> 16); cpu_x86_load_seg(env, R_CS, segoffs >> 16);
clear_TF(env); clear_TF(env);
clear_IF(env); clear_IF(env);
clear_AC(env);
return; return;
cannot_handle: cannot_handle:
#if defined(DEBUG_VM86) #if defined(DEBUG_VM86)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册