Changeset 19015 in vbox for trunk/src/recompiler_new
- Timestamp:
- Apr 20, 2009 7:54:29 AM (16 years ago)
- Location:
- trunk/src/recompiler_new
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler_new/VBoxREMWrapper.cpp
r18992 r19015 910 910 static const REMPARMDESC g_aArgsTRPMAssertTrap[] = 911 911 { 912 { REMPARMDESC_FLAGS_INT, sizeof(PVM ), NULL },912 { REMPARMDESC_FLAGS_INT, sizeof(PVMCPU), NULL }, 913 913 { REMPARMDESC_FLAGS_INT, sizeof(uint8_t), NULL }, 914 914 { REMPARMDESC_FLAGS_INT, sizeof(TRPMEVENT), NULL } … … 916 916 static const REMPARMDESC g_aArgsTRPMQueryTrap[] = 917 917 { 918 { REMPARMDESC_FLAGS_INT, sizeof(PVM ), NULL },918 { REMPARMDESC_FLAGS_INT, sizeof(PVMCPU), NULL }, 919 919 { REMPARMDESC_FLAGS_INT, sizeof(uint8_t *), NULL }, 920 920 { REMPARMDESC_FLAGS_INT, sizeof(TRPMEVENT *), NULL } … … 922 922 static const REMPARMDESC g_aArgsTRPMSetErrorCode[] = 923 923 { 924 { REMPARMDESC_FLAGS_INT, sizeof(PVM ), NULL },924 { REMPARMDESC_FLAGS_INT, sizeof(PVMCPU), NULL }, 925 925 { REMPARMDESC_FLAGS_GCPTR, sizeof(RTGCUINT), NULL } 926 926 }; 927 927 static const REMPARMDESC g_aArgsTRPMSetFaultAddress[] = 928 928 { 929 { REMPARMDESC_FLAGS_INT, sizeof(PVM ), NULL },929 { REMPARMDESC_FLAGS_INT, sizeof(PVMCPU), NULL }, 930 930 { REMPARMDESC_FLAGS_GCPTR, sizeof(RTGCUINT), NULL } 931 931 }; -
trunk/src/recompiler_new/VBoxRecompiler.c
r18992 r19015 2115 2115 */ 2116 2116 pVM->rem.s.Env.exception_index = -1; /** @todo this won't work :/ */ 2117 rc = TRPMQueryTrap(pV M, &u8TrapNo, &enmType);2117 rc = TRPMQueryTrap(pVCpu, &u8TrapNo, &enmType); 2118 2118 if (RT_SUCCESS(rc)) 2119 2119 { … … 2159 2159 { 2160 2160 case 0x0e: 2161 pVM->rem.s.Env.cr[2] = TRPMGetFaultAddress(pV M);2161 pVM->rem.s.Env.cr[2] = TRPMGetFaultAddress(pVCpu); 2162 2162 /* fallthru */ 2163 2163 case 0x0a: case 0x0b: case 0x0c: case 0x0d: 2164 pVM->rem.s.Env.error_code = TRPMGetErrorCode(pV M);2164 pVM->rem.s.Env.error_code = TRPMGetErrorCode(pVCpu); 2165 2165 break; 2166 2166 … … 2174 2174 * We can now reset the active trap since the recompiler is gonna have a go at it. 2175 2175 */ 2176 rc = TRPMResetTrap(pV M);2176 rc = TRPMResetTrap(pVCpu); 2177 2177 AssertRC(rc); 2178 2178 Log2(("REMR3State: trap=%02x errcd=%RGv cr2=%RGv nexteip=%RGv%s\n", pVM->rem.s.Env.exception_index, (RTGCPTR)pVM->rem.s.Env.error_code, … … 2425 2425 2426 2426 Log(("REMR3StateBack: Pending trap %x %d\n", pVM->rem.s.Env.exception_index, pVM->rem.s.Env.exception_is_int)); 2427 rc = TRPMAssertTrap(pV M, pVM->rem.s.Env.exception_index, (pVM->rem.s.Env.exception_is_int) ? TRPM_SOFTWARE_INT : TRPM_HARDWARE_INT);2427 rc = TRPMAssertTrap(pVCpu, pVM->rem.s.Env.exception_index, (pVM->rem.s.Env.exception_is_int) ? TRPM_SOFTWARE_INT : TRPM_HARDWARE_INT); 2428 2428 AssertRC(rc); 2429 2429 switch (pVM->rem.s.Env.exception_index) 2430 2430 { 2431 2431 case 0x0e: 2432 TRPMSetFaultAddress(pV M, pCtx->cr2);2432 TRPMSetFaultAddress(pVCpu, pCtx->cr2); 2433 2433 /* fallthru */ 2434 2434 case 0x0a: case 0x0b: case 0x0c: case 0x0d: 2435 2435 case 0x11: case 0x08: /* 0 */ 2436 TRPMSetErrorCode(pV M, pVM->rem.s.Env.error_code);2436 TRPMSetErrorCode(pVCpu, pVM->rem.s.Env.error_code); 2437 2437 break; 2438 2438 }
Note:
See TracChangeset
for help on using the changeset viewer.