VirtualBox

Ignore:
Timestamp:
Oct 16, 2024 1:11:39 PM (3 months ago)
Author:
vboxsync
Message:

VMM/DBGFReg/CMM/CPUM: Correct CPU state register sorting and make the register querying methos using DBGFREG_XXX as an input work on ARMv8, bugref:10393

File:
1 edited

Legend:

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

    r106061 r106365  
    442442
    443443            /* Advance to the next alias. */
    444             pCurAlias = pNextAlias++;
     444            if (pNextAlias)
     445                pCurAlias = pNextAlias++;
    445446            if (!pCurAlias)
    446447                break;
     
    905906         * Look up the register and get the register value.
    906907         */
     908#ifndef VBOX_VMM_TARGET_ARMV8
    907909        if (RT_LIKELY(pSet->cDescs > (size_t)enmReg))
    908910        {
    909911            PCDBGFREGDESC pDesc = &pSet->paDescs[enmReg];
     912#else
     913        if (RT_LIKELY(pSet->cDescs > (size_t)(enmReg - DBGFREG_ARMV8_FIRST)))
     914        {
     915            PCDBGFREGDESC pDesc = &pSet->paDescs[enmReg - DBGFREG_ARMV8_FIRST];
     916#endif
    910917
    911918            pValue->au64[0] = pValue->au64[1] = 0;
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