Diff for /np2/i386c/ia32/interface.c between versions 1.28 and 1.32

version 1.28, 2011/01/15 17:17:23 version 1.32, 2012/01/08 18:26:55
Line 34 Line 34
 #include "iocore.h"  #include "iocore.h"
 #include "dmax86.h"  #include "dmax86.h"
 #include "bios.h"  #include "bios.h"
 #if defined(IA32_REBOOT_ON_PANIC)  
 #include "pccore.h"  
 #endif  
   
   
 void  void
Line 50  ia32_initreg(void) Line 47  ia32_initreg(void)
         CPU_EFLAG = 2;          CPU_EFLAG = 2;
         CPU_CR0 = CPU_CR0_CD | CPU_CR0_NW | CPU_CR0_ET;          CPU_CR0 = CPU_CR0_CD | CPU_CR0_NW | CPU_CR0_ET;
 #if defined(USE_FPU)  #if defined(USE_FPU)
         CPU_CR0 |= CPU_CR0_EM | CPU_CR0_NE;  
         CPU_CR0 &= ~CPU_CR0_MP;  
 #else  
         CPU_CR0 |= CPU_CR0_ET;          CPU_CR0 |= CPU_CR0_ET;
   #else
           CPU_CR0 |= CPU_CR0_EM | CPU_CR0_NE;
           CPU_CR0 &= ~(CPU_CR0_MP | CPU_CR0_ET);
 #endif  #endif
         CPU_MXCSR = 0x1f80;          CPU_MXCSR = 0x1f80;
   
Line 128  ia32(void) Line 125  ia32(void)
                 break;                  break;
         }          }
   
 #if defined(IA32_SUPPORT_DEBUG_REGISTER)  
         do {  
                 exec_1step();  
                 if (dmac.working) {  
                         dmax86();  
                 }  
         } while (CPU_REMCLOCK > 0);  
 #else  
         if (CPU_TRAP) {          if (CPU_TRAP) {
                 do {                  do {
                         exec_1step();                          exec_1step();
Line 155  ia32(void) Line 144  ia32(void)
                         exec_1step();                          exec_1step();
                 } while (CPU_REMCLOCK > 0);                  } while (CPU_REMCLOCK > 0);
         }          }
 #endif  
 }  }
   
 void  void
Line 183  ia32_step(void) Line 171  ia32_step(void)
   
         do {          do {
                 exec_1step();                  exec_1step();
 #if !defined(IA32_SUPPORT_DEBUG_REGISTER)  
                 if (CPU_TRAP) {                  if (CPU_TRAP) {
                         CPU_DR6 |= CPU_DR6_BS;                          CPU_DR6 |= CPU_DR6_BS;
                         INTERRUPT(1, INTR_TYPE_EXCEPTION);                          INTERRUPT(1, INTR_TYPE_EXCEPTION);
                 }                  }
 #endif  
                 if (dmac.working) {                  if (dmac.working) {
                         dmax86();                          dmax86();
                 }                  }
Line 227  ia32_panic(const char *str, ...) Line 213  ia32_panic(const char *str, ...)
         va_end(ap);          va_end(ap);
         strcat(buf, "\n");          strcat(buf, "\n");
         strcat(buf, cpu_reg2str());          strcat(buf, cpu_reg2str());
           VERBOSE(("%s", buf));
   
         msgbox("ia32_panic", buf);          msgbox("ia32_panic", buf);
   

Removed from v.1.28  
changed lines
  Added in v.1.32


RetroPC.NET-CVS <cvs@retropc.net>