Changeset 36762 in vbox
- Timestamp:
- Apr 20, 2011 4:52:26 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/cpum.h
r36644 r36762 132 132 /** @name Guest Register Setters. 133 133 * @{ */ 134 VMMDECL(int) CPUMSetGuestGDTR(PVMCPU pVCpu, uint 32_t addr, uint16_t limit);135 VMMDECL(int) CPUMSetGuestIDTR(PVMCPU pVCpu, uint 32_t addr, uint16_t limit);134 VMMDECL(int) CPUMSetGuestGDTR(PVMCPU pVCpu, uint64_t GCPtrBase, uint16_t cbLimit); 135 VMMDECL(int) CPUMSetGuestIDTR(PVMCPU pVCpu, uint64_t GCPtrBase, uint16_t cbLimit); 136 136 VMMDECL(int) CPUMSetGuestTR(PVMCPU pVCpu, uint16_t tr); 137 137 VMMDECL(int) CPUMSetGuestLDTR(PVMCPU pVCpu, uint16_t ldtr); -
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r36639 r36762 475 475 } 476 476 477 VMMDECL(int) CPUMSetGuestGDTR(PVMCPU pVCpu, uint 32_t addr, uint16_t limit)478 { 479 pVCpu->cpum.s.Guest.gdtr.cbGdt = limit;480 pVCpu->cpum.s.Guest.gdtr.pGdt = addr;477 VMMDECL(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; 481 481 pVCpu->cpum.s.fChanged |= CPUM_CHANGED_GDTR; 482 482 return VINF_SUCCESS; 483 483 } 484 484 485 VMMDECL(int) CPUMSetGuestIDTR(PVMCPU pVCpu, uint 32_t addr, uint16_t limit)486 { 487 pVCpu->cpum.s.Guest.idtr.cbIdt = limit;488 pVCpu->cpum.s.Guest.idtr.pIdt = addr;485 VMMDECL(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; 489 489 pVCpu->cpum.s.fChanged |= CPUM_CHANGED_IDTR; 490 490 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.