Changeset 97218 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Oct 18, 2022 10:49:14 PM (2 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/DBGFAllBp.cpp
r97200 r97218 551 551 { 552 552 RTGCPTR GCPtrBp; 553 int rc = SELMValidateAndConvertCSAddr(pVCpu, pCtx->eflags , pCtx->ss.Sel, pCtx->cs.Sel, &pCtx->cs,553 int rc = SELMValidateAndConvertCSAddr(pVCpu, pCtx->eflags.u, pCtx->ss.Sel, pCtx->cs.Sel, &pCtx->cs, 554 554 pCtx->rip /* no -1 outside non-rawmode */, &GCPtrBp); 555 555 AssertRCReturn(rc, rc); -
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r97208 r97218 913 913 #else 914 914 /** @todo Get the CPU mode as well while we're at it! */ 915 int rc = SELMValidateAndConvertCSAddr(pVCpu, pCtx->eflags , pCtx->ss.Sel, pCtx->cs.Sel, &pCtx->cs, pCtx->rip, &GCPtrInstr);915 int rc = SELMValidateAndConvertCSAddr(pVCpu, pCtx->eflags.u, pCtx->ss.Sel, pCtx->cs.Sel, &pCtx->cs, pCtx->rip, &GCPtrInstr); 916 916 #endif 917 917 if (RT_SUCCESS(rc)) -
trunk/src/VBox/VMM/VMMAll/SELMAll.cpp
r97203 r97218 335 335 * @returns VBox status code. 336 336 * @param pVCpu The cross context virtual CPU structure. 337 * @param EflCurrent EFLAGS.337 * @param fEFlags Current EFLAGS. 338 338 * @param SelCPL Current privilege level. Get this from SS - CS might be 339 339 * conforming! A full selector can be passed, we'll only … … 344 344 * @param ppvFlat Where to store the flat address upon successful return. 345 345 */ 346 VMMDECL(int) SELMValidateAndConvertCSAddr(PVMCPU pVCpu, X86EFLAGS Efl, RTSEL SelCPL, RTSEL SelCS, PCPUMSELREG pSRegCS,346 VMMDECL(int) SELMValidateAndConvertCSAddr(PVMCPU pVCpu, uint32_t fEFlags, RTSEL SelCPL, RTSEL SelCS, PCPUMSELREG pSRegCS, 347 347 RTGCPTR Addr, PRTGCPTR ppvFlat) 348 348 { 349 if ( Efl.Bits.u1VM350 || 349 if ( (fEFlags & X86_EFL_VM) 350 || CPUMIsGuestInRealMode(pVCpu)) 351 351 return selmValidateAndConvertCSAddrRealMode(pVCpu, SelCS, pSRegCS, Addr, ppvFlat); 352 352
Note:
See TracChangeset
for help on using the changeset viewer.