Lines Matching defs:enmProt

253                 if (PGMROMPROT_IS_ROM(pRom->aPages[iPage].enmProt))
450 PGMROMPROT enmProt = pRom->aPages[iPage].enmProt;
454 if (PGMROMPROT_IS_ROM(enmProt))
484 SSMR3PutU8(pSSM, (uint8_t)enmProt);
491 pRom->aPages[iPage].LiveSave.u8Prot = (uint8_t)enmProt;
547 PGMROMPROT enmProt = pRomPage->enmProt;
549 PPGMPAGE pPage = PGMROMPROT_IS_ROM(enmProt) ? &pRomPage->Shadow : pgmPhysGetPage(pVM, GCPhys);
561 pRomPage->LiveSave.u8Prot = (uint8_t)enmProt;
578 rc = SSMR3PutU8(pSSM, (uint8_t)enmProt);
591 && pRomPage->LiveSave.u8Prot != pRomPage->enmProt)
593 PGMROMPROT enmProt = pRomPage->enmProt;
594 pRomPage->LiveSave.u8Prot = (uint8_t)enmProt;
605 int rc = SSMR3PutU8(pSSM, (uint8_t)enmProt);
2349 PGMROMPROT enmProt = (PGMROMPROT)uProt;
2350 AssertLogRelMsgReturn( enmProt >= PGMROMPROT_INVALID
2351 && enmProt < PGMROMPROT_END,
2352 ("enmProt=%d pPage=%R[pgmpage] GCPhys=%#x %s\n", enmProt, pPage, GCPhys, pRam->pszDesc),
2355 if (pRomPage->enmProt != enmProt)
2357 rc = PGMR3PhysRomProtect(pVM, GCPhys, PAGE_SIZE, enmProt);
2359 AssertLogRelReturn(pRomPage->enmProt == enmProt, VERR_PGM_SAVED_ROM_PAGE_PROT);
2362 PPGMPAGE pPageActive = PGMROMPROT_IS_ROM(enmProt) ? &pRomPage->Virgin : &pRomPage->Shadow;
2363 PPGMPAGE pPagePassive = PGMROMPROT_IS_ROM(enmProt) ? &pRomPage->Shadow : &pRomPage->Virgin;
2364 uint8_t u8ActiveType = PGMROMPROT_IS_ROM(enmProt) ? PGMPAGETYPE_ROM : PGMPAGETYPE_ROM_SHADOW;
2365 uint8_t u8PassiveType= PGMROMPROT_IS_ROM(enmProt) ? PGMPAGETYPE_ROM_SHADOW : PGMPAGETYPE_ROM;
2887 PGMROMPROT enmProt = (PGMROMPROT)u8Prot;
2888 AssertLogRelMsgReturn(enmProt > PGMROMPROT_INVALID && enmProt < PGMROMPROT_END, ("GCPhys=%RGp enmProt=%d\n", GCPhys, enmProt), VERR_PGM_SAVED_ROM_PAGE_PROT);
2890 if (enmProt != pRomPage->enmProt)
2894 N_("Protection change of unshadowed ROM page: GCPhys=%RGp enmProt=%d %s"),
2895 GCPhys, enmProt, pRom->pszDesc);
2896 rc = PGMR3PhysRomProtect(pVM, GCPhys, PAGE_SIZE, enmProt);
2898 AssertLogRelReturn(pRomPage->enmProt == enmProt, VERR_PGM_SAVED_ROM_PAGE_PROT);
2910 if (!PGMROMPROT_IS_ROM(enmProt))
2920 N_("Shadowed / non-shadowed page type mismatch: GCPhys=%RGp enmProt=%d %s"),
2921 GCPhys, enmProt, pRom->pszDesc);
2922 if (PGMROMPROT_IS_ROM(enmProt))