VirtualBox

Changeset 82092 in vbox


Ignore:
Timestamp:
Nov 22, 2019 12:13:18 AM (5 years ago)
Author:
vboxsync
Message:

PGM/pgmPhysGetPageEx: Use the 'off' local.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/PGMInline.h

    r80268 r82092  
    131131        || (off = GCPhys - pRam->GCPhys) >= pRam->cb)
    132132        return pgmPhysGetPageExSlow(pVM, GCPhys, ppPage);
    133     *ppPage = &pRam->aPages[(GCPhys - pRam->GCPhys) >> PAGE_SHIFT];
     133    *ppPage = &pRam->aPages[off >> PAGE_SHIFT];
    134134    STAM_COUNTER_INC(&pVM->pgm.s.CTX_SUFF(pStats)->CTX_MID_Z(Stat,RamRangeTlbHits));
    135135    return VINF_SUCCESS;
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