Changeset 9647 in vbox for trunk/src/VBox
- Timestamp:
- Jun 12, 2008 9:34:27 AM (17 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r9574 r9647 822 822 } 823 823 824 CPUMDECL( RTGCUINTREG) CPUMGetGuestDR0(PVM pVM)824 CPUMDECL(uint64_t) CPUMGetGuestDR0(PVM pVM) 825 825 { 826 826 return pVM->cpum.s.Guest.dr0; 827 827 } 828 828 829 CPUMDECL( RTGCUINTREG) CPUMGetGuestDR1(PVM pVM)829 CPUMDECL(uint64_t) CPUMGetGuestDR1(PVM pVM) 830 830 { 831 831 return pVM->cpum.s.Guest.dr1; 832 832 } 833 833 834 CPUMDECL( RTGCUINTREG) CPUMGetGuestDR2(PVM pVM)834 CPUMDECL(uint64_t) CPUMGetGuestDR2(PVM pVM) 835 835 { 836 836 return pVM->cpum.s.Guest.dr2; 837 837 } 838 838 839 CPUMDECL( RTGCUINTREG) CPUMGetGuestDR3(PVM pVM)839 CPUMDECL(uint64_t) CPUMGetGuestDR3(PVM pVM) 840 840 { 841 841 return pVM->cpum.s.Guest.dr3; 842 842 } 843 843 844 CPUMDECL( RTGCUINTREG) CPUMGetGuestDR6(PVM pVM)844 CPUMDECL(uint64_t) CPUMGetGuestDR6(PVM pVM) 845 845 { 846 846 return pVM->cpum.s.Guest.dr6; 847 847 } 848 848 849 CPUMDECL( RTGCUINTREG) CPUMGetGuestDR7(PVM pVM)849 CPUMDECL(uint64_t) CPUMGetGuestDR7(PVM pVM) 850 850 { 851 851 return pVM->cpum.s.Guest.dr7; … … 853 853 854 854 /** @todo drx should be an array */ 855 CPUMDECL(int) CPUMGetGuestDRx(PVM pVM, uint32_t iReg, uint 32_t *pValue)855 CPUMDECL(int) CPUMGetGuestDRx(PVM pVM, uint32_t iReg, uint64_t *pValue) 856 856 { 857 857 switch (iReg) … … 1223 1223 1224 1224 1225 CPUMDECL(int) CPUMSetGuestDR0(PVM pVM, RTGCUINTREGuDr0)1225 CPUMDECL(int) CPUMSetGuestDR0(PVM pVM, uint64_t uDr0) 1226 1226 { 1227 1227 pVM->cpum.s.Guest.dr0 = uDr0; … … 1229 1229 } 1230 1230 1231 CPUMDECL(int) CPUMSetGuestDR1(PVM pVM, RTGCUINTREGuDr1)1231 CPUMDECL(int) CPUMSetGuestDR1(PVM pVM, uint64_t uDr1) 1232 1232 { 1233 1233 pVM->cpum.s.Guest.dr1 = uDr1; … … 1235 1235 } 1236 1236 1237 CPUMDECL(int) CPUMSetGuestDR2(PVM pVM, RTGCUINTREGuDr2)1237 CPUMDECL(int) CPUMSetGuestDR2(PVM pVM, uint64_t uDr2) 1238 1238 { 1239 1239 pVM->cpum.s.Guest.dr2 = uDr2; … … 1241 1241 } 1242 1242 1243 CPUMDECL(int) CPUMSetGuestDR3(PVM pVM, RTGCUINTREGuDr3)1243 CPUMDECL(int) CPUMSetGuestDR3(PVM pVM, uint64_t uDr3) 1244 1244 { 1245 1245 pVM->cpum.s.Guest.dr3 = uDr3; … … 1247 1247 } 1248 1248 1249 CPUMDECL(int) CPUMSetGuestDR6(PVM pVM, RTGCUINTREGuDr6)1249 CPUMDECL(int) CPUMSetGuestDR6(PVM pVM, uint64_t uDr6) 1250 1250 { 1251 1251 pVM->cpum.s.Guest.dr6 = uDr6; … … 1253 1253 } 1254 1254 1255 CPUMDECL(int) CPUMSetGuestDR7(PVM pVM, RTGCUINTREGuDr7)1255 CPUMDECL(int) CPUMSetGuestDR7(PVM pVM, uint64_t uDr7) 1256 1256 { 1257 1257 pVM->cpum.s.Guest.dr7 = uDr7; … … 1260 1260 1261 1261 /** @todo drx should be an array */ 1262 CPUMDECL(int) CPUMSetGuestDRx(PVM pVM, uint32_t iReg, uint 32_t Value)1262 CPUMDECL(int) CPUMSetGuestDRx(PVM pVM, uint32_t iReg, uint64_t Value) 1263 1263 { 1264 1264 switch (iReg) -
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r9353 r9647 1890 1890 EMDECL(int) EMInterpretDRxRead(PVM pVM, PCPUMCTXCORE pRegFrame, uint32_t DestRegGen, uint32_t SrcRegDrx) 1891 1891 { 1892 uint 32_t val32;1893 1894 int rc = CPUMGetGuestDRx(pVM, SrcRegDrx, &val 32);1892 uint64_t val64; 1893 1894 int rc = CPUMGetGuestDRx(pVM, SrcRegDrx, &val64); 1895 1895 AssertMsgRCReturn(rc, ("CPUMGetGuestDRx %d failed\n", SrcRegDrx), VERR_EM_INTERPRETER); 1896 rc = DISWriteReg32(pRegFrame, DestRegGen, val32);1896 rc = DISWriteReg32(pRegFrame, DestRegGen, (uint32_t)val64); 1897 1897 if (VBOX_SUCCESS(rc)) 1898 1898 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.