Changeset 99070 in vbox for trunk/src/VBox
- Timestamp:
- Mar 20, 2023 2:58:57 PM (23 months ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/Makefile.kmk
r99051 r99070 349 349 VMMR3/CFGM.cpp \ 350 350 VMMR3/CPUM-armv8.cpp \ 351 VMMR3/CPUMDbg-armv8.cpp \ 351 352 VMMR3/DBGF.cpp \ 352 353 VMMR3/DBGFAddr.cpp \ -
trunk/src/VBox/VMM/VMMR3/CPUM-armv8.cpp
r99051 r99070 185 185 186 186 /** 187 * Initializes the debug aids of CPUM.188 *189 * @returns VBox status code.190 * @param pVM The cross context VM structure.191 */192 static int cpumR3DbgInit(PVM pVM)193 {194 RT_NOREF(pVM);195 /** @todo */196 return VINF_SUCCESS;197 }198 199 200 /**201 187 * Initializes the CPUM. 202 188 * -
trunk/src/VBox/VMM/VMMR3/DBGFReg.cpp
r98103 r99070 305 305 306 306 if (enmType == DBGFREGSETTYPE_CPU) 307 #if defined(VBOX_VMM_TARGET_ARMV8) 308 /** @todo This needs a general solution to avoid architecture dependent stuff here. */ 309 AssertMsgReturn(iDesc < (unsigned)DBGFREG_END, 310 ("%d iDesc=%d\n", paRegisters[iDesc].enmReg, iDesc), 311 VERR_INVALID_PARAMETER); 312 #else 307 313 AssertMsgReturn(iDesc < (unsigned)DBGFREG_END && (unsigned)paRegisters[iDesc].enmReg == iDesc, 308 314 ("%d iDesc=%d\n", paRegisters[iDesc].enmReg, iDesc), 309 315 VERR_INVALID_PARAMETER); 316 #endif 310 317 else 311 318 AssertReturn(paRegisters[iDesc].enmReg == DBGFREG_END, VERR_INVALID_PARAMETER); -
trunk/src/VBox/VMM/VMMR3/NEMR3Native-darwin-armv8.cpp
r99054 r99070 338 338 if (LogIs3Enabled()) 339 339 { 340 #if 0341 340 char szRegs[4096]; 342 341 DBGFR3RegPrintf(pVM->pUVM, pVCpu->idCpu, &szRegs[0], sizeof(szRegs), 343 "rax=%016VR{rax} rbx=%016VR{rbx} rcx=%016VR{rcx} rdx=%016VR{rdx}\n" 344 "rsi=%016VR{rsi} rdi=%016VR{rdi} r8 =%016VR{r8} r9 =%016VR{r9}\n" 345 "r10=%016VR{r10} r11=%016VR{r11} r12=%016VR{r12} r13=%016VR{r13}\n" 346 "r14=%016VR{r14} r15=%016VR{r15} %VRF{rflags}\n" 347 "rip=%016VR{rip} rsp=%016VR{rsp} rbp=%016VR{rbp}\n" 348 "cs={%04VR{cs} base=%016VR{cs_base} limit=%08VR{cs_lim} flags=%04VR{cs_attr}} cr0=%016VR{cr0}\n" 349 "ds={%04VR{ds} base=%016VR{ds_base} limit=%08VR{ds_lim} flags=%04VR{ds_attr}} cr2=%016VR{cr2}\n" 350 "es={%04VR{es} base=%016VR{es_base} limit=%08VR{es_lim} flags=%04VR{es_attr}} cr3=%016VR{cr3}\n" 351 "fs={%04VR{fs} base=%016VR{fs_base} limit=%08VR{fs_lim} flags=%04VR{fs_attr}} cr4=%016VR{cr4}\n" 352 "gs={%04VR{gs} base=%016VR{gs_base} limit=%08VR{gs_lim} flags=%04VR{gs_attr}} cr8=%016VR{cr8}\n" 353 "ss={%04VR{ss} base=%016VR{ss_base} limit=%08VR{ss_lim} flags=%04VR{ss_attr}}\n" 354 "dr0=%016VR{dr0} dr1=%016VR{dr1} dr2=%016VR{dr2} dr3=%016VR{dr3}\n" 355 "dr6=%016VR{dr6} dr7=%016VR{dr7}\n" 356 "gdtr=%016VR{gdtr_base}:%04VR{gdtr_lim} idtr=%016VR{idtr_base}:%04VR{idtr_lim} rflags=%08VR{rflags}\n" 357 "ldtr={%04VR{ldtr} base=%016VR{ldtr_base} limit=%08VR{ldtr_lim} flags=%08VR{ldtr_attr}}\n" 358 "tr ={%04VR{tr} base=%016VR{tr_base} limit=%08VR{tr_lim} flags=%08VR{tr_attr}}\n" 359 " sysenter={cs=%04VR{sysenter_cs} eip=%08VR{sysenter_eip} esp=%08VR{sysenter_esp}}\n" 360 " efer=%016VR{efer}\n" 361 " pat=%016VR{pat}\n" 362 " sf_mask=%016VR{sf_mask}\n" 363 "krnl_gs_base=%016VR{krnl_gs_base}\n" 364 " lstar=%016VR{lstar}\n" 365 " star=%016VR{star} cstar=%016VR{cstar}\n" 366 "fcw=%04VR{fcw} fsw=%04VR{fsw} ftw=%04VR{ftw} mxcsr=%04VR{mxcsr} mxcsr_mask=%04VR{mxcsr_mask}\n" 342 "x0=%016VR{x0} x1=%016VR{x1} x2=%016VR{x2} x3=%016VR{x3}\n" 343 "x4=%016VR{x4} x5=%016VR{x5} x6=%016VR{x6} x7=%016VR{x7}\n" 344 "x8=%016VR{x8} x9=%016VR{x9} x10=%016VR{x10} x11=%016VR{x11}\n" 345 "x12=%016VR{x12} x13=%016VR{x13} x14=%016VR{x14} x15=%016VR{x15}\n" 346 "x16=%016VR{x16} x17=%016VR{x17} x18=%016VR{x18} x19=%016VR{x19}\n" 347 "x20=%016VR{x20} x21=%016VR{x21} x22=%016VR{x22} x23=%016VR{x23}\n" 348 "x24=%016VR{x24} x25=%016VR{x25} x26=%016VR{x26} x27=%016VR{x27}\n" 349 "x28=%016VR{x28} x29=%016VR{x29} x30=%016VR{x30}\n" 350 "pc=%016VR{pc} pstate=%016VR{pstate}\n" 351 "sp_el0=%016VR{sp_el0} sp_el1=%016VR{sp_el1} elr_el1=%016VR{elr_el1}\n" 367 352 ); 368 369 char szInstr[256]; 353 char szInstr[256]; RT_ZERO(szInstr); 354 #if 0 370 355 DBGFR3DisasInstrEx(pVM->pUVM, pVCpu->idCpu, 0, 0, 371 356 DBGF_DISAS_FLAGS_CURRENT_GUEST | DBGF_DISAS_FLAGS_DEFAULT_MODE, 372 357 szInstr, sizeof(szInstr), NULL); 358 #endif 373 359 Log3(("%s%s\n", szRegs, szInstr)); 374 #else375 RT_NOREF(pVM, pVCpu);376 #endif377 360 } 378 361 } … … 832 815 return rc; 833 816 817 #ifdef LOG_ENABLED 818 if (LogIs3Enabled()) 819 nemR3DarwinLogState(pVM, pVCpu); 820 #endif 821 834 822 hv_vcpu_exit_t *pExit = pVCpu->nem.s.pHvExit; 835 823 switch (pExit->reason) -
trunk/src/VBox/VMM/include/CPUMInternal-armv8.h
r98970 r99070 123 123 RT_C_DECLS_BEGIN 124 124 125 # ifdef IN_RING3 126 DECLHIDDEN(int) cpumR3DbgInit(PVM pVM); 127 # endif 128 125 129 RT_C_DECLS_END 126 130 #endif /* !VBOX_FOR_DTRACE_LIB */
Note:
See TracChangeset
for help on using the changeset viewer.