VirtualBox

Ignore:
Timestamp:
Apr 29, 2013 3:46:29 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
85367
Message:

Make the recompiler call PGMCr0WpEnabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/VBoxRecompiler.c

    r45751 r45799  
    19531953    Assert(pVM->rem.s.fInREM);
    19541954
     1955    pCtx = (PCPUMCTX)pVM->rem.s.pCtx;
     1956    Assert(pCtx);
     1957
     1958    /*
     1959     * Notify PGM about WP0 being enabled (like CPUSetGuestCR0 does).
     1960     */
     1961    if (((env->cr[0] ^ pCtx->cr0) & X86_CR0_WP) && (env->cr[0] & X86_CR0_WP))
     1962        PGMCr0WpEnabled(env->pVCpu);
     1963
    19551964    /*
    19561965     * Update the control registers before calling PGMChangeMode()
    19571966     * as it may need to map whatever cr3 is pointing to.
    19581967     */
    1959     pCtx = (PCPUMCTX)pVM->rem.s.pCtx;
    1960     Assert(pCtx);
    19611968    pCtx->cr0 = env->cr[0];
    19621969    pCtx->cr3 = env->cr[3];
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