- Timestamp:
- Apr 13, 2007 8:45:06 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r2037 r2064 1648 1648 1649 1649 1650 #ifdef IN_GC1651 1650 /** 1652 1651 * RDTSC Emulation. … … 1666 1665 return VINF_SUCCESS; 1667 1666 } 1668 #endif1669 1667 1670 1668 /** … … 1730 1728 /* Get the current privilege level. */ 1731 1729 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 */ 1733 1732 { 1734 1733 Log(("WARNING: refusing instruction emulation for user-mode code!!\n")); … … 1803 1802 INTERPRET_CASE_EX_PARAM2(OP_BTS,Bts, BitTest, EMEmulateBts); 1804 1803 INTERPRET_CASE_EX_PARAM2(OP_BTC,Btc, BitTest, EMEmulateBtc); 1805 #ifdef IN_GC1806 1804 INTERPRET_CASE(OP_RDTSC,Rdtsc); 1805 #ifdef IN_GC 1807 1806 INTERPRET_CASE(OP_STI,Sti); 1808 1807 INTERPRET_CASE(OP_CMPXCHG, CmpXchg);
Note:
See TracChangeset
for help on using the changeset viewer.