VirtualBox

Ignore:
Timestamp:
Apr 19, 2013 12:44:27 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
85152
Message:

recompiler: Use symbolic constants.

File:
1 edited

Legend:

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

    r45533 r45642  
    20622062        }
    20632063        if(pVM->rem.s.uPendingException != uTrap || pVM->rem.s.uPendingExcptEIP != env->eip || pVM->rem.s.uPendingExcptCR2 != env->cr[2])
     2064        {
     2065            Log(("remR3NotifyTrap: uTrap=%#x set as pending\n", uTrap));
    20642066            pVM->rem.s.cPendingExceptions = 1;
     2067        }
    20652068        pVM->rem.s.uPendingException = uTrap;
    20662069        pVM->rem.s.uPendingExcptEIP  = env->eip;
     
    24972500            switch (u8TrapNo)
    24982501            {
    2499                 case 0x0e:
     2502                case X86_XCPT_PF:
    25002503                    pVM->rem.s.Env.cr[2] = TRPMGetFaultAddress(pVCpu);
    25012504                    /* fallthru */
    2502                 case 0x0a: case 0x0b: case 0x0c: case 0x0d:
     2505                case X86_XCPT_TS: case X86_XCPT_NP: case X86_XCPT_SS: case X86_XCPT_GP:
    25032506                    pVM->rem.s.Env.error_code = TRPMGetErrorCode(pVCpu);
    25042507                    break;
    25052508
    2506                 case 0x11: case 0x08:
     2509                case X86_XCPT_AC: case X86_XCPT_DF:
    25072510                default:
    25082511                    pVM->rem.s.Env.error_code = 0;
     
    27722775        switch (pVM->rem.s.Env.exception_index)
    27732776        {
    2774             case 0x0e:
     2777            case X86_XCPT_PF:
    27752778                TRPMSetFaultAddress(pVCpu, pCtx->cr2);
    27762779                /* fallthru */
    2777             case 0x0a: case 0x0b: case 0x0c: case 0x0d:
    2778             case 0x11: case 0x08: /* 0 */
     2780            case X86_XCPT_TS: case X86_XCPT_NP: case X86_XCPT_SS: case X86_XCPT_GP:
     2781            case X86_XCPT_AC: case X86_XCPT_DF: /* 0 */
    27792782                TRPMSetErrorCode(pVCpu, pVM->rem.s.Env.error_code);
    27802783                break;
Note: See TracChangeset for help on using the changeset viewer.

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