VirtualBox

Changeset 2064 in vbox for trunk


Ignore:
Timestamp:
Apr 13, 2007 8:45:06 AM (18 years ago)
Author:
vboxsync
Message:

Accept ring 3 rdtsc for emulation.

File:
1 edited

Legend:

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

    r2037 r2064  
    16481648
    16491649
    1650 #ifdef IN_GC
    16511650/**
    16521651 * RDTSC Emulation.
     
    16661665    return VINF_SUCCESS;
    16671666}
    1668 #endif
    16691667
    16701668/**
     
    17301728    /* Get the current privilege level. */
    17311729    uint32_t cpl = CPUMGetGuestCPL(pVM, pRegFrame);
    1732     if (cpl != 0)
     1730    if (    cpl != 0
     1731        &&  pCpu->pCurInstr->opcode != OP_RDTSC)    /* rdtsc requires emulation in ring 3 as well */
    17331732    {
    17341733        Log(("WARNING: refusing instruction emulation for user-mode code!!\n"));
     
    18031802        INTERPRET_CASE_EX_PARAM2(OP_BTS,Bts, BitTest, EMEmulateBts);
    18041803        INTERPRET_CASE_EX_PARAM2(OP_BTC,Btc, BitTest, EMEmulateBtc);
    1805 #ifdef IN_GC
    18061804        INTERPRET_CASE(OP_RDTSC,Rdtsc);
     1805#ifdef IN_GC
    18071806        INTERPRET_CASE(OP_STI,Sti);
    18081807        INTERPRET_CASE(OP_CMPXCHG, CmpXchg);
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