Changeset 1257 in vbox
- Timestamp:
- Mar 6, 2007 11:14:54 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 19202
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMM.cpp
r1253 r1257 2936 2936 { 2937 2937 uint32_t i; 2938 int rc; 2939 PCPUMCTX pHyperCtx, pGuestCtx; 2938 2940 2939 2941 if (!HWACCMR3IsAllowed(pVM)) … … 2956 2958 VM_FF_CLEAR(pVM, VM_FF_REQUEST); 2957 2959 2960 CPUMQueryHyperCtxPtr(pVM, &pHyperCtx); 2961 2962 pHyperCtx->cr0 = X86_CR0_PE | X86_CR0_WP | X86_CR0_PG | X86_CR0_TS | X86_CR0_ET | X86_CR0_NE | X86_CR0_MP; 2963 pHyperCtx->cr4 = X86_CR4_PGE | X86_CR4_OSFSXR | X86_CR4_OSXMMEEXCPT; 2964 2958 2965 /* 2959 2966 * Setup stack for calling VMMGCEntry(). 2960 2967 */ 2961 2968 RTGCPTR GCPtrEP; 2962 intrc = PDMR3GetSymbolGC(pVM, VMMGC_MAIN_MODULE_NAME, "VMMGCEntry", &GCPtrEP);2969 rc = PDMR3GetSymbolGC(pVM, VMMGC_MAIN_MODULE_NAME, "VMMGCEntry", &GCPtrEP); 2963 2970 if (VBOX_SUCCESS(rc)) 2964 2971 { 2965 PCPUMCTX pHyperCtx, pGuestCtx;2966 2967 2972 RTPrintf("VMM: VMMGCEntry=%VGv\n", GCPtrEP); 2968 2973 … … 2977 2982 SYNC_SEL(pHyperCtx, ss); 2978 2983 SYNC_SEL(pHyperCtx, tr); 2979 2980 pHyperCtx->cr0 = X86_CR0_PE | X86_CR0_WP | X86_CR0_PG | X86_CR0_TS | X86_CR0_ET | X86_CR0_NE | X86_CR0_MP;2981 pHyperCtx->cr4 = X86_CR4_PGE | X86_CR4_OSFSXR | X86_CR4_OSXMMEEXCPT;2982 2984 2983 2985 /* … … 3021 3023 if (TickThisElapsed < TickMin) 3022 3024 TickMin = TickThisElapsed; 3025 /* temporary */ 3026 #ifdef LOG_ENABLED 3027 PRTLOGGERGC pLogger = pVM->vmm.s.pLoggerHC; 3028 if ( pLogger 3029 && pLogger->offScratch > 0) 3030 RTLogFlushGC(NULL, pLogger); 3031 #endif 3032 3023 3033 } 3024 3034 uint64_t TickEnd = ASMReadTSC();
Note:
See TracChangeset
for help on using the changeset viewer.