VirtualBox

Changeset 100940 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Aug 22, 2023 2:29:29 PM (17 months ago)
Author:
vboxsync
Message:

VMM: Make CPUMIsGuestIn64Bit[Code|CodeEx|Slow] use a const CPUM context parameter.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs-armv8.cpp

    r100184 r100940  
    237237 * @param   pVCpu       The cross context virtual CPU structure of the calling EMT.
    238238 */
    239 VMMDECL(bool) CPUMIsGuestIn64BitCode(PVMCPU pVCpu)
     239VMMDECL(bool) CPUMIsGuestIn64BitCode(PCVMCPU pVCpu)
    240240{
    241241    CPUM_INT_ASSERT_NOT_EXTRN(pVCpu, CPUMCTX_EXTRN_PSTATE);
     
    251251 * @param   pCtx        Pointer to the current guest CPU context.
    252252 */
    253 VMM_INT_DECL(bool) CPUMIsGuestIn64BitCodeSlow(PCPUMCTX pCtx)
     253VMM_INT_DECL(bool) CPUMIsGuestIn64BitCodeSlow(PCCPUMCTX pCtx)
    254254{
    255255    return CPUMIsGuestIn64BitCode(CPUM_GUEST_CTX_TO_VMCPU(pCtx));
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp

    r100184 r100940  
    15961596 * @param   pVCpu       The cross context virtual CPU structure of the calling EMT.
    15971597 */
    1598 VMMDECL(bool) CPUMIsGuestIn64BitCode(PVMCPU pVCpu)
     1598VMMDECL(bool) CPUMIsGuestIn64BitCode(PCVMCPU pVCpu)
    15991599{
    16001600    CPUM_INT_ASSERT_NOT_EXTRN(pVCpu, CPUMCTX_EXTRN_CS | CPUMCTX_EXTRN_EFER);
     
    16131613 * @param   pCtx        Pointer to the current guest CPU context.
    16141614 */
    1615 VMM_INT_DECL(bool) CPUMIsGuestIn64BitCodeSlow(PCPUMCTX pCtx)
     1615VMM_INT_DECL(bool) CPUMIsGuestIn64BitCodeSlow(PCCPUMCTX pCtx)
    16161616{
    16171617    return CPUMIsGuestIn64BitCode(CPUM_GUEST_CTX_TO_VMCPU(pCtx));
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r100935 r100940  
    32173217 * @param   pszPrefix   Register name prefix.
    32183218 */
    3219 static void cpumR3InfoOne(PVM pVM, PVMCPU pVCpu, PCDBGFINFOHLP pHlp, CPUMDUMPTYPE enmType, const char *pszPrefix)
    3220 {
    3221     PCPUMCTX pCtx = &pVCpu->cpum.s.Guest;
     3219static void cpumR3InfoOne(PVM pVM, PCVMCPU pVCpu, PCDBGFINFOHLP pHlp, CPUMDUMPTYPE enmType, const char *pszPrefix)
     3220{
     3221    PCCPUMCTX pCtx = &pVCpu->cpum.s.Guest;
    32223222
    32233223    /*
     
    33643364                            pszPrefix, UINT64_C(0) /** @todo XSS */, pCtx->fXStateMask);
    33653365            {
    3366                 PX86FXSTATE pFpuCtx = &pCtx->XState.x87;
     3366                PCX86FXSTATE pFpuCtx = &pCtx->XState.x87;
    33673367                pHlp->pfnPrintf(pHlp,
    33683368                    "%sFCW=%04x %sFSW=%04x %sFTW=%04x %sFOP=%04x %sMXCSR=%08x %sMXCSR_MASK=%08x\n"
     
    36643664    cpumR3InfoParseArg(pszArgs, &enmType, &pszComment);
    36653665
    3666     PVMCPU pVCpu = VMMGetCpu(pVM);
     3666    PCVMCPU pVCpu = VMMGetCpu(pVM);
    36673667    if (!pVCpu)
    36683668        pVCpu = pVM->apCpusR3[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