Changeset 20325 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jun 5, 2009 12:56:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r20324 r20325 1798 1798 szInstr[0] = 0x89; 1799 1799 szInstr[1] = MAKE_MODRM(3, uMmioReg, Cpu.param1.base.reg_gen); 1800 szInstr[2] = 4;1801 1800 1802 1801 /* Let's hope the guest won't mind us trashing the source register... 1803 1802 * shr uMmioReg, 4 1804 1803 */ 1805 szInstr[ 3] = 0xC1;1806 szInstr[ 4] = 0xE0| uMmioReg;1807 szInstr[ 5] = 4;1804 szInstr[2] = 0xC1; 1805 szInstr[3] = 0xE8 | uMmioReg; 1806 szInstr[4] = 4; 1808 1807 1809 1808 /* 0xF0, 0x0F, 0x22, 0xC0 = mov cr8, eax */ 1810 szInstr[ 6] = 0xF0;1811 szInstr[ 7] = 0x0F;1812 szInstr[ 8] = 0x22;1813 szInstr[ 9] = 0xC0 | uMmioReg;1809 szInstr[5] = 0xF0; 1810 szInstr[6] = 0x0F; 1811 szInstr[7] = 0x22; 1812 szInstr[8] = 0xC0 | uMmioReg; 1814 1813 1815 1814 /* Two nop instructions */ 1815 szInstr[9] = 0x90; 1816 1816 szInstr[10] = 0x90; 1817 szInstr[11] = 0x90;1818 1817 1819 1818 rc = PGMPhysSimpleWriteGCPtr(pVCpu, pCtx->rip, szInstr, 6+cbOp);
Note:
See TracChangeset
for help on using the changeset viewer.