VirtualBox

Changeset 16084 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 20, 2009 2:20:58 PM (16 years ago)
Author:
vboxsync
Message:

Flush the recompiler code cache when switch from real to protected mode. */

File:
1 edited

Legend:

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

    r16077 r16084  
    3535#include <VBox/selm.h>
    3636#include <VBox/iom.h>
     37#include <VBox/rem.h>
    3738#include <iprt/param.h>
    3839#include <iprt/assert.h>
     
    11831184                    &&  enmGuestMode >= PGMMODE_PROTECTED)
    11841185                {
     1186                    /* Flush the recompiler code cache as it's not unlikely
     1187                     * the guest will rewrite code it will later execute in real
     1188                     * mode (OpenBSD 4.0 is one such example)
     1189                     */
     1190                    REMFlushTBs(pVM);
     1191
    11851192                    /* DPL of all hidden selector registers must match the current CPL (0). */
    11861193                    pCtx->csHid.Attr.n.u2Dpl  = 0;
Note: See TracChangeset for help on using the changeset viewer.

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