VirtualBox

Changeset 9841 in vbox


Ignore:
Timestamp:
Jun 20, 2008 9:30:18 AM (17 years ago)
Author:
vboxsync
Message:

Added CPUMGetGuest/HyperRIP.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/cpum.h

    r9817 r9841  
    412412CPUMDECL(uint32_t)  CPUMGetGuestEFlags(PVM pVM);
    413413CPUMDECL(uint32_t)  CPUMGetGuestEIP(PVM pVM);
     414CPUMDECL(uint64_t)  CPUMGetGuestRIP(PVM pVM);
    414415CPUMDECL(uint32_t)  CPUMGetGuestEAX(PVM pVM);
    415416CPUMDECL(uint32_t)  CPUMGetGuestEBX(PVM pVM);
     
    618619CPUMDECL(uint32_t)      CPUMGetHyperEFlags(PVM pVM);
    619620CPUMDECL(uint32_t)      CPUMGetHyperEIP(PVM pVM);
     621CPUMDECL(uint64_t)      CPUMGetHyperRIP(PVM pVM);
    620622CPUMDECL(uint32_t)      CPUMGetHyperIDTR(PVM pVM, uint16_t *pcbLimit);
    621623CPUMDECL(uint32_t)      CPUMGetHyperGDTR(PVM pVM, uint16_t *pcbLimit);
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp

    r9825 r9841  
    319319{
    320320    return pVM->cpum.s.CTXALLSUFF(pHyperCore)->eip;
     321}
     322
     323CPUMDECL(uint64_t) CPUMGetHyperRIP(PVM pVM)
     324{
     325    return pVM->cpum.s.CTXALLSUFF(pHyperCore)->rip;
    321326}
    322327
     
    749754}
    750755
     756CPUMDECL(uint64_t) CPUMGetGuestRIP(PVM pVM)
     757{
     758    return pVM->cpum.s.Guest.rip;
     759}
     760
    751761CPUMDECL(uint32_t) CPUMGetGuestEAX(PVM pVM)
    752762{
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