VirtualBox

Changeset 9231 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 29, 2008 3:31:26 PM (17 years ago)
Author:
vboxsync
Message:

Missign updates

Location:
trunk/src/VBox/VMM
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp

    r9212 r9231  
    603603    {
    604604#ifdef IN_GC
    605         if (PATMIsPatchGCAddr(pVM, (RTGCPTR)pRegFrame->eip))
     605        if (PATMIsPatchGCAddr(pVM, (RTRCPTR)pRegFrame->eip))
    606606        {
    607607            LogFlow(("pgmPoolAccessHandlerPTWorker: Interpretation failed for patch code %04x:%RGv, ignoring.\n",
  • trunk/src/VBox/VMM/VMMAll/TRPMAll.cpp

    r9223 r9231  
    422422        && !(eflags.Bits.u1VM) /** @todo implement when needed (illegal for same privilege level transfers). */
    423423#endif
    424         && !PATMIsPatchGCAddr(pVM, (RTGCPTR)pRegFrame->eip)
     424        && !PATMIsPatchGCAddr(pVM, (RTRCPTR)pRegFrame->eip)
    425425       )
    426426    {
     
    728728            STAM_COUNTER_INC(&pVM->trpm.s.StatForwardFailNoHandler);
    729729        else
    730         if (PATMIsPatchGCAddr(pVM, (RTGCPTR)pRegFrame->eip))
     730        if (PATMIsPatchGCAddr(pVM, (RTRCPTR)pRegFrame->eip))
    731731            STAM_COUNTER_INC(&pVM->trpm.s.StatForwardFailPatchAddr);
    732732#endif
  • trunk/src/VBox/VMM/VMMGC/PDMGCDevice.cpp

    r8155 r9231  
    362362    LogFlow(("pdmGCDevHlp_PATMSetMMIOPatchInfo: caller=%p/%d:\n", pDevIns, pDevIns->iInstance));
    363363
    364     return PATMSetMMIOPatchInfo(pDevIns->Internal.s.pVMGC, GCPhys, pCachedData);
     364    return PATMSetMMIOPatchInfo(pDevIns->Internal.s.pVMGC, GCPhys, (RTRCPTR)pCachedData);
    365365}
    366366
  • trunk/src/VBox/VMM/VMMGC/TRPMGCHandlers.cpp

    r8985 r9231  
    376376         */
    377377        if (    Cpu.pCurInstr->opcode == OP_ILLUD2
    378             &&  PATMIsPatchGCAddr(pVM, (RTGCPTR)pRegFrame->eip))
     378            &&  PATMIsPatchGCAddr(pVM, (RTRCPTR)pRegFrame->eip))
    379379        {
    380380            rc = PATMGCHandleIllegalInstrTrap(pVM, pRegFrame);
     
    393393            Log(("TRPMGCTrap06Handler: pc=%RGv op=%d\n", pRegFrame->eip, Cpu.pCurInstr->opcode));
    394394#ifdef DTRACE_EXPERIMENT /** @todo fix/remove/permanent-enable this when DIS/PATM handles invalid lock sequences. */
    395             Assert(!PATMIsPatchGCAddr(pVM, (RTGCPTR)pRegFrame->eip));
     395            Assert(!PATMIsPatchGCAddr(pVM, (RTRCPTR)pRegFrame->eip));
    396396            rc = TRPMForwardTrap(pVM, pRegFrame, 0x6, 0, TRPM_TRAP_NO_ERRORCODE, TRPM_TRAP, 0x6);
    397397            Assert(rc == VINF_EM_RAW_GUEST_TRAP);
     
    571571        {
    572572            Assert(pCpu->param1.flags & USE_IMMEDIATE8);
    573             Assert(!(PATMIsPatchGCAddr(pVM, PC)));
     573            Assert(!(PATMIsPatchGCAddr(pVM, (RTRCPTR)PC)));
    574574            if (pCpu->param1.parval == 3)
    575575            {
     
    599599        case OP_HLT:
    600600            /* If it's in patch code, defer to ring-3. */
    601             if (PATMIsPatchGCAddr(pVM, PC))
     601            if (PATMIsPatchGCAddr(pVM, (RTRCPTR)PC))
    602602                break;
    603603
     
    615615        case OP_MOV_DR:
    616616            /* We can safely emulate control/debug register move instructions in patched code. */
    617             if (    !PATMIsPatchGCAddr(pVM, PC)
     617            if (    !PATMIsPatchGCAddr(pVM, (RTRCPTR)PC)
    618618                &&  !CSAMIsKnownDangerousInstr(pVM, PC))
    619619                break;
     
    884884        case VINF_EM_RAW_GUEST_TRAP:
    885885        case VINF_EM_RAW_EXCEPTION_PRIVILEGED:
    886             if (PATMIsPatchGCAddr(pVM, (RTGCPTR)pRegFrame->eip))
     886            if (PATMIsPatchGCAddr(pVM, (RTRCPTR)pRegFrame->eip))
    887887                rc = VINF_PATM_PATCH_TRAP_GP;
    888888            break;
     
    907907
    908908        default:
    909             AssertMsg(PATMIsPatchGCAddr(pVM, (RTGCPTR)pRegFrame->eip) == false, ("return code %d\n", rc));
     909            AssertMsg(PATMIsPatchGCAddr(pVM, (RTRCPTR)pRegFrame->eip) == false, ("return code %d\n", rc));
    910910            break;
    911911        }
     
    945945    case VINF_EM_RAW_EMULATE_INSTR_LDT_FAULT:
    946946    case VINF_EM_RAW_EMULATE_INSTR_IDT_FAULT:
    947         if (PATMIsPatchGCAddr(pVM, (RTGCPTR)pRegFrame->eip))
     947        if (PATMIsPatchGCAddr(pVM, (RTRCPTR)pRegFrame->eip))
    948948            rc = VINF_PATCH_EMULATE_INSTR;
    949949        break;
    950950
    951951    case VINF_EM_RAW_GUEST_TRAP:
    952         if (PATMIsPatchGCAddr(pVM, (RTGCPTR)pRegFrame->eip))
     952        if (PATMIsPatchGCAddr(pVM, (RTRCPTR)pRegFrame->eip))
    953953            return VINF_PATM_PATCH_TRAP_PF;
    954954
     
    974974
    975975    default:
    976         AssertMsg(PATMIsPatchGCAddr(pVM, (RTGCPTR)pRegFrame->eip) == false, ("Patch address for return code %d. eip=%08x\n", rc, pRegFrame->eip));
     976        AssertMsg(PATMIsPatchGCAddr(pVM, (RTRCPTR)pRegFrame->eip) == false, ("Patch address for return code %d. eip=%08x\n", rc, pRegFrame->eip));
    977977        break;
    978978    }
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