VirtualBox

Changeset 17303 in vbox


Ignore:
Timestamp:
Mar 3, 2009 4:53:01 PM (16 years ago)
Author:
vboxsync
Message:

Updates

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/hwaccm.h

    r17295 r17303  
    3434#include <VBox/types.h>
    3535#include <VBox/pgm.h>
     36#include <VBox/cpum.h>
    3637#include <iprt/mp.h>
    3738
     
    6566 */
    6667#define HWACCMIsEnabled(pVM)    ((pVM)->fHWACCMEnabled)
     68
     69 /**
     70 * Check if the current CPU state is valid for emulating IO blocks in the recompiler
     71 *
     72 * @returns boolean
     73 * @param   pCtx        CPU context
     74 */
     75#define HWACCMCanEmulateIoBlock(pCtx)    (!CPUMIsGuestInPagedProtectedModeEx(pCtx))
    6776
    6877VMMDECL(int)    HWACCMInvalidatePage(PVM pVM, RTGCPTR GCVirt);
  • trunk/src/VBox/VMM/HWACCM.cpp

    r17296 r17303  
    12041204
    12051205    /* This is primarily intended to speed up Grub, so we don't care about paged protected mode. */
    1206     if (!CPUMIsGuestInPagedProtectedModeEx(pCtx))
     1206    if (HWACCMCanEmulateIoBlock(pCtx))
    12071207    {
    12081208        Log(("HWACCMR3EmulateIoBlock -> enabled\n"));
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