VirtualBox

Changeset 3023 in vbox for trunk


Ignore:
Timestamp:
Jun 4, 2007 12:42:50 PM (18 years ago)
Author:
vboxsync
Message:

only check for excessive faults when in protected mode

Location:
trunk/src/recompiler
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/VBoxRecompiler.c

    r2981 r3023  
    15951595#endif
    15961596    Log(("remR3NotifyTrap: uTrap=%x error=%x next_eip=%VGv eip=%VGv cr2=%08x\n", uTrap, uErrorCode, pvNextEIP, env->eip, env->cr[2]));
    1597     if(uTrap < 0x20)
     1597    if(   uTrap < 0x20
     1598       && (env->cr[0] & X86_CR0_PE))
    15981599    {
    15991600#ifdef DEBUG
    16001601        remR3DisasInstr(env, 1, "remR3NotifyTrap: ");
    16011602#endif
    1602         if(pVM->rem.s.uPendingException == uTrap && ++pVM->rem.s.cPendingExceptions > 128)
     1603        if(pVM->rem.s.uPendingException == uTrap && ++pVM->rem.s.cPendingExceptions > 512)
    16031604        {
    16041605            LogRel(("VERR_REM_TOO_MANY_TRAPS -> uTrap=%x error=%x next_eip=%VGv eip=%VGv cr2=%08x\n", uTrap, uErrorCode, pvNextEIP, env->eip, env->cr[2]));
  • trunk/src/recompiler/cpu-exec.c

    r2422 r3023  
    511511                }
    512512#endif /* !DEBUG_bird */
     513//{
     514//static int blaat = 0;
     515
     516//if (env->eip == 0xc03f3c27 && ++blaat == 2)
     517//    env->state |= CPU_EMULATE_SINGLE_STEP;
     518//}
    513519                if(env->state & CPU_EMULATE_SINGLE_STEP)
    514520                {
    515521#ifdef DEBUG_bird
    516522                    static int s_cTimes = 0;
    517                     if (s_cTimes++ > 1000000)
     523                    if (s_cTimes++ > 10000)
    518524                    {
    519525                        RTLogPrintf("Enough stepping!\n");
  • trunk/src/recompiler/target-i386/helper.c

    r2465 r3023  
    42704270    env = env1;
    42714271
    4272     if (env->eflags & X86_EFL_VM)
     4272    if (    env->eflags & X86_EFL_VM
     4273        ||  !(env->cr[0] & X86_CR0_PE))
    42734274    {
    42744275        load_seg_vm(seg_reg, selector);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette