VirtualBox

Changeset 1257 in vbox


Ignore:
Timestamp:
Mar 6, 2007 11:14:54 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19202
Message:

Temporary logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMM.cpp

    r1253 r1257  
    29362936{
    29372937    uint32_t i;
     2938    int      rc;
     2939    PCPUMCTX pHyperCtx, pGuestCtx;
    29382940
    29392941    if (!HWACCMR3IsAllowed(pVM))
     
    29562958    VM_FF_CLEAR(pVM, VM_FF_REQUEST);
    29572959
     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
    29582965    /*
    29592966     * Setup stack for calling VMMGCEntry().
    29602967     */
    29612968    RTGCPTR GCPtrEP;
    2962     int rc = PDMR3GetSymbolGC(pVM, VMMGC_MAIN_MODULE_NAME, "VMMGCEntry", &GCPtrEP);
     2969    rc = PDMR3GetSymbolGC(pVM, VMMGC_MAIN_MODULE_NAME, "VMMGCEntry", &GCPtrEP);
    29632970    if (VBOX_SUCCESS(rc))
    29642971    {
    2965         PCPUMCTX    pHyperCtx, pGuestCtx;
    2966 
    29672972        RTPrintf("VMM: VMMGCEntry=%VGv\n", GCPtrEP);
    29682973
     
    29772982        SYNC_SEL(pHyperCtx, ss);
    29782983        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;
    29822984
    29832985        /*
     
    30213023            if (TickThisElapsed < TickMin)
    30223024                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
    30233033        }
    30243034        uint64_t TickEnd = ASMReadTSC();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette