VirtualBox

Changeset 45305 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 3, 2013 11:15:02 AM (12 years ago)
Author:
vboxsync
Message:

IOM: Adding pVCpu to a lot of calls and moving the lookup caches from VM to VMCPU.

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPCI.cpp

    r45025 r45305  
    18401840{
    18411841    unsigned    i;
    1842     uint8_t     elcr[2] = {0, 0};
     1842    uint8_t     elcr[2]  = {0, 0};
    18431843    PPCIGLOBALS pGlobals = PDMINS_2_DATA(pDevIns, PPCIGLOBALS);
    1844     PVM         pVM = PDMDevHlpGetVM(pDevIns);
    1845     Assert(pVM);
     1844    PVM         pVM      = PDMDevHlpGetVM(pDevIns); Assert(pVM);
     1845    PVMCPU      pVCpu    = PDMDevHlpGetVMCPU(pDevIns); Assert(pVM);
    18461846
    18471847    /*
     
    18651865
    18661866    /* Tell to the PIC. */
    1867     VBOXSTRICTRC rcStrict = IOMIOPortWrite(pVM, 0x4d0, elcr[0], sizeof(uint8_t));
     1867    VBOXSTRICTRC rcStrict = IOMIOPortWrite(pVM, pVCpu, 0x4d0, elcr[0], sizeof(uint8_t));
    18681868    if (rcStrict == VINF_SUCCESS)
    1869         rcStrict = IOMIOPortWrite(pVM, 0x4d1, elcr[1], sizeof(uint8_t));
     1869        rcStrict = IOMIOPortWrite(pVM, pVCpu, 0x4d1, elcr[1], sizeof(uint8_t));
    18701870    if (rcStrict != VINF_SUCCESS)
    18711871    {
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r45055 r45305  
    12151215            /** @todo only allow read access (doesn't work now) */
    12161216            STAM_COUNTER_INC(&pThis->StatMapPage);
    1217             IOMMMIOMapMMIO2Page(PDMDevHlpGetVM(pThis->CTX_SUFF(pDevIns)), GCPhys, pThis->GCPhysVRAM + addr, X86_PTE_RW|X86_PTE_P);
     1217            IOMMMIOMapMMIO2Page(PDMDevHlpGetVM(pThis->CTX_SUFF(pDevIns)), GCPhys,
     1218                                pThis->GCPhysVRAM + addr, X86_PTE_RW | X86_PTE_P);
    12181219            /* Set as dirty as write accesses won't be noticed now. */
    12191220            vga_set_dirty(pThis, addr);
     
    12971298            {
    12981299                STAM_COUNTER_INC(&pThis->StatMapPage);
    1299                 IOMMMIOMapMMIO2Page(PDMDevHlpGetVM(pThis->CTX_SUFF(pDevIns)), GCPhys, pThis->GCPhysVRAM + addr, X86_PTE_RW | X86_PTE_P);
     1300                IOMMMIOMapMMIO2Page(PDMDevHlpGetVM(pThis->CTX_SUFF(pDevIns)), GCPhys,
     1301                                    pThis->GCPhysVRAM + addr, X86_PTE_RW | X86_PTE_P);
    13001302                pThis->fRemappedVGA = true;
    13011303            }
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