VirtualBox

Changeset 72875 in vbox


Ignore:
Timestamp:
Jul 4, 2018 2:08:27 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123420
Message:

DBGFCpu: Make sure the CPU state we use is present in each of the APIs.

File:
1 edited

Legend:

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

    r69111 r72875  
    2121*********************************************************************************************************************************/
    2222#define LOG_GROUP LOG_GROUP_DBGF
     23#define VMCPU_INCL_CPUM_GST_CTX /* For CPUM_IMPORT_EXTRN_RET(). */
    2324#include <VBox/vmm/dbgf.h>
    2425#include <VBox/vmm/cpum.h>
     
    4445    Assert(idCpu == VMMGetCpuId(pVM));
    4546    PVMCPU pVCpu = VMMGetCpuById(pVM, idCpu);
     47    CPUM_IMPORT_EXTRN_RET(pVCpu, CPUMCTX_EXTRN_CR0 | CPUMCTX_EXTRN_EFER);
    4648    *penmMode = CPUMGetGuestMode(pVCpu);
    4749    return VINF_SUCCESS;
     
    8284    Assert(idCpu == VMMGetCpuId(pVM));
    8385    PVMCPU pVCpu = VMMGetCpuById(pVM, idCpu);
     86    CPUM_IMPORT_EXTRN_RET(pVCpu, CPUMCTX_EXTRN_CS | CPUMCTX_EXTRN_EFER);
    8487    *pfIn64BitCode = CPUMIsGuestIn64BitCode(pVCpu);
    8588    return VINF_SUCCESS;
     
    120123    Assert(idCpu == VMMGetCpuId(pVM));
    121124    PVMCPU pVCpu = VMMGetCpuById(pVM, idCpu);
     125    CPUM_IMPORT_EXTRN_RET(pVCpu, CPUMCTX_EXTRN_RFLAGS);
    122126    *pfInV86Code = CPUMIsGuestInV86ModeEx(CPUMQueryGuestCtxPtr(pVCpu));
    123127    return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

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