Changeset 20071 in vbox for trunk/src/recompiler
- Timestamp:
- May 27, 2009 12:07:38 PM (16 years ago)
- Location:
- trunk/src/recompiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/VBoxREMWrapper.cpp
r20002 r20071 1107 1107 { "DISInstr", (void *)(uintptr_t)&DISInstr, &g_aArgsDISInstr[0], RT_ELEMENTS(g_aArgsDISInstr), REMFNDESC_FLAGS_RET_INT, sizeof(bool), NULL }, 1108 1108 { "EMR3FatalError", (void *)(uintptr_t)&EMR3FatalError, &g_aArgsEMR3FatalError[0], RT_ELEMENTS(g_aArgsEMR3FatalError), REMFNDESC_FLAGS_RET_VOID, 0, NULL }, 1109 { "EMR3RemLock", (void *)(uintptr_t)&EMR3RemLock, &g_aArgsVM[0], RT_ELEMENTS(g_aArgsVM), REMFNDESC_FLAGS_RET_VOID, 0, NULL }, 1110 { "EMR3RemUnlock", (void *)(uintptr_t)&EMR3RemUnlock, &g_aArgsVM[0], RT_ELEMENTS(g_aArgsVM), REMFNDESC_FLAGS_RET_VOID, 0, NULL }, 1109 1111 { "HWACCMR3CanExecuteGuest", (void *)(uintptr_t)&HWACCMR3CanExecuteGuest, &g_aArgsHWACCMR3CanExecuteGuest[0], RT_ELEMENTS(g_aArgsHWACCMR3CanExecuteGuest), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 1110 1112 { "IOMIOPortRead", (void *)(uintptr_t)&IOMIOPortRead, &g_aArgsIOMIOPortRead[0], RT_ELEMENTS(g_aArgsIOMIOPortRead), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, … … 1150 1152 { "PGMR3PhysWriteU64", (void *)(uintptr_t)&PGMR3PhysWriteU64, &g_aArgsPGMR3PhysWriteU64[0], RT_ELEMENTS(g_aArgsPGMR3PhysWriteU32), REMFNDESC_FLAGS_RET_VOID, 0, NULL }, 1151 1153 { "PGMR3PhysTlbGCPhys2Ptr", (void *)(uintptr_t)&PGMR3PhysTlbGCPhys2Ptr, &g_aArgsPGMR3PhysTlbGCPhys2Ptr[0], RT_ELEMENTS(g_aArgsPGMR3PhysTlbGCPhys2Ptr), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 1154 { "PGMIsLockOwner", (void *)(uintptr_t)&PGMIsLockOwner, &g_aArgsVM[0], RT_ELEMENTS(g_aArgsVM), REMFNDESC_FLAGS_RET_INT, sizeof(bool), NULL }, 1152 1155 { "SSMR3GetGCPtr", (void *)(uintptr_t)&SSMR3GetGCPtr, &g_aArgsSSMR3GetGCPtr[0], RT_ELEMENTS(g_aArgsSSMR3GetGCPtr), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 1153 1156 { "SSMR3GetMem", (void *)(uintptr_t)&SSMR3GetMem, &g_aArgsSSMR3GetMem[0], RT_ELEMENTS(g_aArgsSSMR3GetMem), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, -
trunk/src/recompiler/VBoxRecompiler.c
r20002 r20071 2839 2839 Assert(RT_ALIGN_Z(cb, PAGE_SIZE) == cb); 2840 2840 AssertMsg(fFlags == REM_NOTIFY_PHYS_RAM_FLAGS_RAM || fFlags == REM_NOTIFY_PHYS_RAM_FLAGS_MMIO2, ("#x\n", fFlags)); 2841 Assert(!PGMIsLockOwner(pVM)); 2842 2843 EMR3RemLock(pVM); 2841 2844 2842 2845 /* … … 2861 2864 Assert(pVM->rem.s.fIgnoreAll); 2862 2865 pVM->rem.s.fIgnoreAll = false; 2866 EMR3RemUnlock(pVM); 2863 2867 } 2864 2868 … … 2886 2890 Assert(cb); 2887 2891 Assert(RT_ALIGN_Z(cb, PAGE_SIZE) == cb); 2888 2892 Assert(!PGMIsLockOwner(pVM)); 2893 2894 EMR3RemLock(pVM); 2889 2895 /* 2890 2896 * Register the rom. … … 2897 2903 Assert(pVM->rem.s.fIgnoreAll); 2898 2904 pVM->rem.s.fIgnoreAll = false; 2905 EMR3RemUnlock(pVM); 2899 2906 } 2900 2907 … … 2918 2925 Assert(cb); 2919 2926 Assert(RT_ALIGN_Z(cb, PAGE_SIZE) == cb); 2927 Assert(!PGMIsLockOwner(pVM)); 2928 2929 EMR3RemLock(pVM); 2920 2930 2921 2931 /* … … 2929 2939 Assert(pVM->rem.s.fIgnoreAll); 2930 2940 pVM->rem.s.fIgnoreAll = false; 2941 EMR3RemUnlock(pVM); 2931 2942 } 2932 2943 … … 2951 2962 Assert(RT_ALIGN_T(GCPhys, PAGE_SIZE, RTGCPHYS) == GCPhys); 2952 2963 Assert(RT_ALIGN_T(cb, PAGE_SIZE, RTGCPHYS) == cb); 2953 2964 Assert(!PGMIsLockOwner(pVM)); 2965 2966 EMR3RemLock(pVM); 2954 2967 if (pVM->rem.s.cHandlerNotifications) 2955 2968 REMR3ReplayHandlerNotifications(pVM); … … 2965 2978 Assert(pVM->rem.s.fIgnoreAll); 2966 2979 pVM->rem.s.fIgnoreAll = false; 2980 EMR3RemUnlock(pVM); 2967 2981 } 2968 2982 … … 2983 2997 enmType, GCPhys, cb, fHasHCHandler, fRestoreAsRAM, MMR3PhysGetRamSize(pVM))); 2984 2998 VM_ASSERT_EMT(pVM); 2999 Assert(!PGMIsLockOwner(pVM)); 3000 3001 EMR3RemLock(pVM); 2985 3002 2986 3003 if (pVM->rem.s.cHandlerNotifications) … … 3010 3027 Assert(pVM->rem.s.fIgnoreAll); 3011 3028 pVM->rem.s.fIgnoreAll = false; 3029 EMR3RemUnlock(pVM); 3012 3030 } 3013 3031 … … 3030 3048 VM_ASSERT_EMT(pVM); 3031 3049 AssertReleaseMsg(enmType != PGMPHYSHANDLERTYPE_MMIO, ("enmType=%d\n", enmType)); 3050 Assert(!PGMIsLockOwner(pVM)); 3051 3052 EMR3RemLock(pVM); 3032 3053 3033 3054 if (pVM->rem.s.cHandlerNotifications) … … 3062 3083 pVM->rem.s.fIgnoreAll = false; 3063 3084 } 3085 EMR3RemUnlock(pVM); 3064 3086 } 3065 3087
Note:
See TracChangeset
for help on using the changeset viewer.