Commit 28c3ee3fed3bb51c45320bec1ede3585cd36f8a4

Authored by bellard
1 parent f929aad6

cr0.ET fix (Win95 boot fix)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@794 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-i386/helper2.c
... ... @@ -265,7 +265,7 @@ void cpu_x86_update_cr0(CPUX86State *env, uint32_t new_cr0)
265 265 (env->cr[0] & (CR0_PG_MASK | CR0_WP_MASK | CR0_PE_MASK))) {
266 266 tlb_flush(env, 1);
267 267 }
268   - env->cr[0] = new_cr0;
  268 + env->cr[0] = new_cr0 | CR0_ET_MASK;
269 269  
270 270 /* update PE flag in hidden flags */
271 271 pe_state = (env->cr[0] & CR0_PE_MASK);
... ...