diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-05-10 21:41:47 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-05-10 21:41:47 +0000 |
commit | 226c91327d1eebf9a70b670830c181a46c6c454b (patch) | |
tree | 990e9c65dbd8d31a1de7bd5074992ea247ed43f5 /linux-user/vm86.c | |
parent | b8bf3e3aacdd721f4ec0c125ff59bc32b8322e3b (diff) |
fixed from 2.4.20 kernel
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@154 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/vm86.c')
-rw-r--r-- | linux-user/vm86.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/linux-user/vm86.c b/linux-user/vm86.c index f243af877c..d9b4ea63be 100644 --- a/linux-user/vm86.c +++ b/linux-user/vm86.c @@ -141,6 +141,11 @@ static inline void clear_TF(CPUX86State *env) 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) { TaskState *ts = env->opaque; @@ -149,6 +154,8 @@ static inline int set_vflags_long(unsigned long eflags, CPUX86State *env) set_flags(env->eflags, eflags, SAFE_MASK); if (eflags & IF_MASK) return set_IF(env); + else + clear_IF(env); return 0; } @@ -160,6 +167,8 @@ static inline int set_vflags_short(unsigned short flags, CPUX86State *env) set_flags(env->eflags, flags, SAFE_MASK); if (flags & IF_MASK) return set_IF(env); + else + clear_IF(env); return 0; } @@ -217,6 +226,7 @@ static void do_int(CPUX86State *env, int intno) cpu_x86_load_seg(env, R_CS, segoffs >> 16); clear_TF(env); clear_IF(env); + clear_AC(env); return; cannot_handle: #if defined(DEBUG_VM86) |