- Timestamp:
- Mar 15, 2023 9:39:29 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156321
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/DBGFCpu.cpp
r98103 r98972 55 55 Assert(idCpu == VMMGetCpuId(pVM)); 56 56 PVMCPU pVCpu = VMMGetCpuById(pVM, idCpu); 57 #if defined(VBOX_VMM_TARGET_ARMV8) 58 CPUM_IMPORT_EXTRN_RET(pVCpu, CPUMCTX_EXTRN_PSTATE); 59 #else 57 60 CPUM_IMPORT_EXTRN_RET(pVCpu, CPUMCTX_EXTRN_CR0 | CPUMCTX_EXTRN_EFER); 61 #endif 58 62 *penmMode = CPUMGetGuestMode(pVCpu); 59 63 return VINF_SUCCESS; … … 94 98 Assert(idCpu == VMMGetCpuId(pVM)); 95 99 PVMCPU pVCpu = VMMGetCpuById(pVM, idCpu); 100 #if defined(VBOX_VMM_TARGET_ARMV8) 101 CPUM_IMPORT_EXTRN_RET(pVCpu, CPUMCTX_EXTRN_PSTATE); 102 #else 96 103 CPUM_IMPORT_EXTRN_RET(pVCpu, CPUMCTX_EXTRN_CS | CPUMCTX_EXTRN_EFER); 104 #endif 97 105 *pfIn64BitCode = CPUMIsGuestIn64BitCode(pVCpu); 98 106 return VINF_SUCCESS; … … 121 129 122 130 131 #if !defined(VBOX_VMM_TARGET_ARMV8) 123 132 /** 124 133 * Wrapper around CPUMIsGuestInV86Code. … … 137 146 return VINF_SUCCESS; 138 147 } 148 #endif 139 149 140 150 … … 152 162 AssertReturn(idCpu < pUVM->pVM->cCpus, false); 153 163 164 #if defined(VBOX_VMM_TARGET_ARMV8) 165 /* This is a public visible API, so we need to fill in a stub. */ 166 return false; 167 #else 154 168 bool fInV86Code; 155 169 int rc = VMR3ReqPriorityCallWaitU(pUVM, idCpu, (PFNRT)dbgfR3CpuInV86Code, 3, pUVM->pVM, idCpu, &fInV86Code); … … 157 171 return false; 158 172 return fInV86Code; 173 #endif 159 174 } 160 175 -
trunk/src/VBox/VMM/VMMR3/DBGFDisas.cpp
r98103 r98972 94 94 * Internal Functions * 95 95 *********************************************************************************************************************************/ 96 #if !defined(VBOX_VMM_TARGET_ARMV8) 96 97 static FNDISREADBYTES dbgfR3DisasInstrRead; 97 98 … … 352 353 return rc; 353 354 } 355 #endif /* VBOX_VMM_TARGET_ARMV8 */ 354 356 355 357 … … 380 382 int rc; 381 383 384 #if defined(VBOX_VMM_TARGET_ARMV8) 385 RT_NOREF(pVM, Sel, GCPtr, rc, fFlags, pszOutput, cbOutput, pcbInstr, pDisState); 386 AssertReleaseFailed(); /** @todo */ 387 return VERR_NOT_IMPLEMENTED; 388 #else 382 389 /* 383 390 * Get the Sel and GCPtr if fFlags requests that. … … 610 617 dbgfR3DisasInstrDone(&State); 611 618 return VINF_SUCCESS; 619 #endif /* !VBOX_VMM_TARGET_ARMV8*/ 612 620 } 613 621 -
trunk/src/VBox/VMM/VMMR3/DBGFMem.cpp
r98103 r98972 586 586 else 587 587 { 588 #if defined(VBOX_VMM_TARGET_ARMV8) 589 AssertReleaseFailed(); 590 #else 588 591 if (fFlags & DBGFPGDMP_FLAGS_CURRENT_CR3) 589 592 cr3 = CPUMGetGuestCR3(pVCpu); … … 595 598 fFlags |= CPUMGetGuestEFER(pVCpu) & (MSR_K6_EFER_LME | MSR_K6_EFER_NXE); 596 599 } 600 #endif 597 601 } 598 602 } -
trunk/src/VBox/VMM/VMMR3/DBGFStack.cpp
r98103 r98972 82 82 if (pInitialCtx) 83 83 { 84 #if defined(VBOX_VMM_TARGET_ARMV8) 85 AssertReleaseFailed(); 86 #else 84 87 m_State.u.x86.auRegs[X86_GREG_xAX] = pInitialCtx->rax; 85 88 m_State.u.x86.auRegs[X86_GREG_xCX] = pInitialCtx->rcx; … … 107 110 m_State.u.x86.auSegs[X86_SREG_FS] = pInitialCtx->fs.Sel; 108 111 m_State.u.x86.fRealOrV86 = CPUMIsGuestInRealOrV86ModeEx(pInitialCtx); 112 #endif 109 113 } 110 114 else if (hAs == DBGF_AS_R0) … … 816 820 817 821 int rc = VINF_SUCCESS; 822 #if defined(VBOX_VMM_TARGET_ARMV8) 823 if (pAddrPC) 824 pCur->AddrPC = *pAddrPC; 825 else 826 DBGFR3AddrFromFlat(pUVM, &pCur->AddrPC, pCtx->Pc.u64); 827 #else 818 828 if (pAddrPC) 819 829 pCur->AddrPC = *pAddrPC; … … 822 832 else 823 833 rc = DBGFR3AddrFromSelOff(pUVM, idCpu, &pCur->AddrPC, pCtx->cs.Sel, pCtx->rip); 834 #endif 824 835 if (RT_SUCCESS(rc)) 825 836 { … … 875 886 876 887 888 #if defined(VBOX_VMM_TARGET_ARMV8) 889 RT_NOREF(pAddrFrame, pAddrStack); 890 AssertReleaseFailed(); 891 rc = VERR_NOT_IMPLEMENTED; 892 #else 877 893 if (pAddrStack) 878 894 pCur->AddrStack = *pAddrStack; … … 889 905 else if (RT_SUCCESS(rc)) 890 906 rc = DBGFR3AddrFromSelOff(pUVM, idCpu, &pCur->AddrFrame, pCtx->ss.Sel, pCtx->rbp & fAddrMask); 907 #endif 891 908 892 909 /*
Note:
See TracChangeset
for help on using the changeset viewer.