VirtualBox

Ignore:
Timestamp:
Dec 4, 2024 3:20:14 PM (6 weeks ago)
Author:
vboxsync
Message:

VMM: Cleaning up ARMv8 / x86 split. jiraref:VBP-1470

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/DBGFCoreWrite.cpp

    r107113 r107227  
    329329static void dbgfR3GetCoreCpu(PVMCPU pVCpu, PDBGFCORECPU pDbgfCpu)
    330330{
    331 #define DBGFCOPYSEL(a_dbgfsel, a_cpumselreg) \
     331    PCCPUMCTX const pCtx = CPUMQueryGuestCtxPtr(pVCpu);
     332
     333#ifdef VBOX_VMM_TARGET_X86
     334# define DBGFCOPYSEL(a_dbgfsel, a_cpumselreg) \
    332335    do { \
    333336        (a_dbgfsel).uBase  = (a_cpumselreg).u64Base; \
     
    337340    } while (0)
    338341
    339 #if defined(VBOX_VMM_TARGET_ARMV8)
    340     AssertReleaseFailed();
    341     RT_NOREF(pVCpu, pDbgfCpu);
    342 #else
    343     PVM       pVM  = pVCpu->CTX_SUFF(pVM);
    344     PCCPUMCTX pCtx = CPUMQueryGuestCtxPtr(pVCpu);
    345342    pDbgfCpu->rax             = pCtx->rax;
    346343    pDbgfCpu->rbx             = pCtx->rbx;
     
    395392    pDbgfCpu->aXcr[1]         = pCtx->aXcr[1];
    396393    AssertCompile(sizeof(pDbgfCpu->ext) == sizeof(pCtx->XState));
     394
     395    PVM const pVM  = pVCpu->CTX_SUFF(pVM);
    397396    pDbgfCpu->cbExt = pVM->cpum.ro.GuestFeatures.cbMaxExtendedState;
    398397    if (RT_LIKELY(pDbgfCpu->cbExt))
    399398        memcpy(&pDbgfCpu->ext, &pCtx->XState, pDbgfCpu->cbExt);
     399
     400# undef DBGFCOPYSEL
     401
     402#elif defined(VBOX_VMM_TARGET_ARMV8)
     403    RT_NOREF(pCtx, pDbgfCpu);
     404    AssertReleaseFailed();
     405
     406#else
     407# error "port me"
    400408#endif
    401 
    402 #undef DBGFCOPYSEL
    403409}
    404410
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette