Changeset 14755 in vbox for trunk/src/recompiler
- Timestamp:
- Nov 28, 2008 2:58:01 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 40070
- Location:
- trunk/src/recompiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/VBoxREMWrapper.cpp
r14411 r14755 711 711 { REMPARMDESC_FLAGS_GCPTR, sizeof(RTGCPTR), NULL } 712 712 }; 713 static const REMPARMDESC g_aArgsPGMPhysGCPhys2 HCPtr[] =713 static const REMPARMDESC g_aArgsPGMPhysGCPhys2R3Ptr[] = 714 714 { 715 715 { REMPARMDESC_FLAGS_INT, sizeof(PVM), NULL }, 716 716 { REMPARMDESC_FLAGS_GCPHYS, sizeof(RTGCPHYS), NULL }, 717 717 { REMPARMDESC_FLAGS_INT, sizeof(RTUINT), NULL }, 718 { REMPARMDESC_FLAGS_INT, sizeof(PRT HCPTR), NULL }719 }; 720 static const REMPARMDESC g_aArgsPGMPhysGCPtr2 HCPtrByGstCR3[] =718 { REMPARMDESC_FLAGS_INT, sizeof(PRTR3PTR), NULL } 719 }; 720 static const REMPARMDESC g_aArgsPGMPhysGCPtr2R3PtrByGstCR3[] = 721 721 { 722 722 { REMPARMDESC_FLAGS_INT, sizeof(PVM), NULL }, … … 724 724 { REMPARMDESC_FLAGS_INT, sizeof(uint64_t), NULL }, 725 725 { REMPARMDESC_FLAGS_INT, sizeof(unsigned), NULL }, 726 { REMPARMDESC_FLAGS_INT, sizeof(PRT HCPTR), NULL }726 { REMPARMDESC_FLAGS_INT, sizeof(PRTR3PTR), NULL } 727 727 }; 728 728 static const REMPARMDESC g_aArgsPGM3PhysGrowRange[] = … … 1112 1112 { "PGMGstGetPage", (void *)(uintptr_t)&PGMGstGetPage, &g_aArgsPGMGstGetPage[0], RT_ELEMENTS(g_aArgsPGMGstGetPage), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 1113 1113 { "PGMInvalidatePage", (void *)(uintptr_t)&PGMInvalidatePage, &g_aArgsPGMInvalidatePage[0], RT_ELEMENTS(g_aArgsPGMInvalidatePage), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 1114 { "PGMPhysGCPhys2 HCPtr", (void *)(uintptr_t)&PGMPhysGCPhys2HCPtr, &g_aArgsPGMPhysGCPhys2HCPtr[0], RT_ELEMENTS(g_aArgsPGMPhysGCPhys2HCPtr), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL },1115 { "PGMPhysGCPtr2 HCPtrByGstCR3", (void *)(uintptr_t)&PGMPhysGCPtr2HCPtrByGstCR3, &g_aArgsPGMPhysGCPtr2HCPtrByGstCR3[0], RT_ELEMENTS(g_aArgsPGMPhysGCPtr2HCPtrByGstCR3), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL },1114 { "PGMPhysGCPhys2R3Ptr", (void *)(uintptr_t)&PGMPhysGCPhys2R3Ptr, &g_aArgsPGMPhysGCPhys2R3Ptr[0], RT_ELEMENTS(g_aArgsPGMPhysGCPhys2R3Ptr), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 1115 { "PGMPhysGCPtr2R3PtrByGstCR3", (void *)(uintptr_t)&PGMPhysGCPtr2R3PtrByGstCR3, &g_aArgsPGMPhysGCPtr2R3PtrByGstCR3[0], RT_ELEMENTS(g_aArgsPGMPhysGCPtr2R3PtrByGstCR3), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 1116 1116 #ifndef VBOX_WITH_NEW_PHYS_CODE 1117 1117 { "PGM3PhysGrowRange", (void *)(uintptr_t)&PGM3PhysGrowRange, &g_aArgsPGM3PhysGrowRange[0], RT_ELEMENTS(g_aArgsPGM3PhysGrowRange), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, -
trunk/src/recompiler/VBoxRecompiler.c
r14411 r14755 3477 3477 3478 3478 /* convert eip to physical address. */ 3479 int rc = PGMPhysGCPtr2 HCPtrByGstCR3(env->pVM,3479 int rc = PGMPhysGCPtr2R3PtrByGstCR3(env->pVM, 3480 3480 GCPtrPC, 3481 3481 env->cr[3], … … 3493 3493 { 3494 3494 /* physical address */ 3495 int rc = PGMPhysGCPhys2 HCPtr(env->pVM, (RTGCPHYS)GCPtrPC, nrInstructions * 16, &pvPC);3495 int rc = PGMPhysGCPhys2R3Ptr(env->pVM, (RTGCPHYS)GCPtrPC, nrInstructions * 16, &pvPC); 3496 3496 if (RT_FAILURE(rc)) 3497 3497 return false; … … 3572 3572 { 3573 3573 /* convert eip to physical address. */ 3574 int rc = PGMPhysGCPtr2 HCPtrByGstCR3(pVM,3574 int rc = PGMPhysGCPtr2R3PtrByGstCR3(pVM, 3575 3575 GCPtrPC, 3576 3576 env->cr[3], … … 3589 3589 3590 3590 /* physical address */ 3591 int rc = PGMPhysGCPhys2 HCPtr(pVM, (RTGCPHYS)GCPtrPC, 16, &pvPC);3591 int rc = PGMPhysGCPhys2R3Ptr(pVM, (RTGCPHYS)GCPtrPC, 16, &pvPC); 3592 3592 if (RT_FAILURE(rc)) 3593 3593 return false;
Note:
See TracChangeset
for help on using the changeset viewer.