Commit 95917e3f575cb98fd00d88fd6991f5e3fa399b51

Authored by bellard
1 parent f1869042

suppressed no longer needed vm86 segment hack (Mike Nordell)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@725 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 0 additions and 13 deletions
target-i386/helper.c
@@ -758,23 +758,10 @@ static void do_interrupt_protected(int intno, int is_int, int error_code, @@ -758,23 +758,10 @@ static void do_interrupt_protected(int intno, int is_int, int error_code,
758 758
759 if (new_stack) { 759 if (new_stack) {
760 if (env->eflags & VM_MASK) { 760 if (env->eflags & VM_MASK) {
761 - /* XXX: explain me why W2K hangs if the whole segment cache is  
762 - reset ? */  
763 -#if 1  
764 - env->segs[R_ES].selector = 0;  
765 - env->segs[R_ES].flags = 0;  
766 - env->segs[R_DS].selector = 0;  
767 - env->segs[R_DS].flags = 0;  
768 - env->segs[R_FS].selector = 0;  
769 - env->segs[R_FS].flags = 0;  
770 - env->segs[R_GS].selector = 0;  
771 - env->segs[R_GS].flags = 0;  
772 -#else  
773 cpu_x86_load_seg_cache(env, R_ES, 0, NULL, 0, 0); 761 cpu_x86_load_seg_cache(env, R_ES, 0, NULL, 0, 0);
774 cpu_x86_load_seg_cache(env, R_DS, 0, NULL, 0, 0); 762 cpu_x86_load_seg_cache(env, R_DS, 0, NULL, 0, 0);
775 cpu_x86_load_seg_cache(env, R_FS, 0, NULL, 0, 0); 763 cpu_x86_load_seg_cache(env, R_FS, 0, NULL, 0, 0);
776 cpu_x86_load_seg_cache(env, R_GS, 0, NULL, 0, 0); 764 cpu_x86_load_seg_cache(env, R_GS, 0, NULL, 0, 0);
777 -#endif  
778 } 765 }
779 ss = (ss & ~3) | dpl; 766 ss = (ss & ~3) | dpl;
780 cpu_x86_load_seg_cache(env, R_SS, ss, 767 cpu_x86_load_seg_cache(env, R_SS, ss,