VirtualBox

Changeset 36762 in vbox


Ignore:
Timestamp:
Apr 20, 2011 4:52:26 PM (14 years ago)
Author:
vboxsync
Message:

CPUM: CPUMSetGuestGDTR and CPUMSetGuestIDTR should take 64-bit base value.

Location:
trunk
Files:
2 edited

Legend:

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

    r36644 r36762  
    132132/** @name Guest Register Setters.
    133133 * @{ */
    134 VMMDECL(int)        CPUMSetGuestGDTR(PVMCPU pVCpu, uint32_t addr, uint16_t limit);
    135 VMMDECL(int)        CPUMSetGuestIDTR(PVMCPU pVCpu, uint32_t addr, uint16_t limit);
     134VMMDECL(int)        CPUMSetGuestGDTR(PVMCPU pVCpu, uint64_t GCPtrBase, uint16_t cbLimit);
     135VMMDECL(int)        CPUMSetGuestIDTR(PVMCPU pVCpu, uint64_t GCPtrBase, uint16_t cbLimit);
    136136VMMDECL(int)        CPUMSetGuestTR(PVMCPU pVCpu, uint16_t tr);
    137137VMMDECL(int)        CPUMSetGuestLDTR(PVMCPU pVCpu, uint16_t ldtr);
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp

    r36639 r36762  
    475475}
    476476
    477 VMMDECL(int) CPUMSetGuestGDTR(PVMCPU pVCpu, uint32_t addr, uint16_t limit)
    478 {
    479     pVCpu->cpum.s.Guest.gdtr.cbGdt = limit;
    480     pVCpu->cpum.s.Guest.gdtr.pGdt  = addr;
     477VMMDECL(int) CPUMSetGuestGDTR(PVMCPU pVCpu, uint64_t GCPtrBase, uint16_t cbLimit)
     478{
     479    pVCpu->cpum.s.Guest.gdtr.cbGdt = cbLimit;
     480    pVCpu->cpum.s.Guest.gdtr.pGdt  = GCPtrBase;
    481481    pVCpu->cpum.s.fChanged |= CPUM_CHANGED_GDTR;
    482482    return VINF_SUCCESS;
    483483}
    484484
    485 VMMDECL(int) CPUMSetGuestIDTR(PVMCPU pVCpu, uint32_t addr, uint16_t limit)
    486 {
    487     pVCpu->cpum.s.Guest.idtr.cbIdt = limit;
    488     pVCpu->cpum.s.Guest.idtr.pIdt  = addr;
     485VMMDECL(int) CPUMSetGuestIDTR(PVMCPU pVCpu, uint64_t GCPtrBase, uint16_t cbLimit)
     486{
     487    pVCpu->cpum.s.Guest.idtr.cbIdt = cbLimit;
     488    pVCpu->cpum.s.Guest.idtr.pIdt  = GCPtrBase;
    489489    pVCpu->cpum.s.fChanged |= CPUM_CHANGED_IDTR;
    490490    return VINF_SUCCESS;
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