Changeset 81436 in vbox for trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
- Timestamp:
- Oct 22, 2019 7:27:02 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134154
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r81153 r81436 4236 4236 rc = NEMR3NotifyPhysRomRegisterEarly(pVM, GCPhys, cb, fNemNotify); 4237 4237 4238 /* 4239 * !HACK ALERT! REM + (Shadowed) ROM ==> mess. 4240 * 4241 * If it's shadowed we'll register the handler after the ROM notification 4242 * so we get the access handler callbacks that we should. If it isn't 4243 * shadowed we'll do it the other way around to make REM use the built-in 4244 * ROM behavior and not the handler behavior (which is to route all access 4245 * to PGM atm). 4246 */ 4247 if (fFlags & PGMPHYS_ROM_FLAGS_SHADOWED) 4248 { 4249 if (RT_SUCCESS(rc)) 4250 rc = PGMHandlerPhysicalRegister(pVM, GCPhys, GCPhysLast, pVM->pgm.s.hRomPhysHandlerType, 4251 pRomNew, MMHyperCCToR0(pVM, pRomNew), MMHyperCCToRC(pVM, pRomNew), 4252 pszDesc); 4253 } 4254 else 4255 { 4256 if (RT_SUCCESS(rc)) 4257 rc = PGMHandlerPhysicalRegister(pVM, GCPhys, GCPhysLast, pVM->pgm.s.hRomPhysHandlerType, 4258 pRomNew, MMHyperCCToR0(pVM, pRomNew), MMHyperCCToRC(pVM, pRomNew), 4259 pszDesc); 4260 } 4238 /* Register the ROM access handler. */ 4239 if (RT_SUCCESS(rc)) 4240 rc = PGMHandlerPhysicalRegister(pVM, GCPhys, GCPhysLast, pVM->pgm.s.hRomPhysHandlerType, 4241 pRomNew, MMHyperCCToR0(pVM, pRomNew), MMHyperCCToRC(pVM, pRomNew), 4242 pszDesc); 4261 4243 if (RT_SUCCESS(rc)) 4262 4244 {
Note:
See TracChangeset
for help on using the changeset viewer.