Changeset 5205 in vbox
- Timestamp:
- Oct 9, 2007 2:07:16 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 25132
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/CSAM.cpp
r5200 r5205 1191 1191 1192 1192 // For our first attempt, we'll handle only simple relative jumps and calls (immediate offset coded in instruction) 1193 if ((cpu.pCurInstr->optype & OPTYPE_CONTROLFLOW) && (OP_PARM_VTYPE(cpu.pCurInstr->param1) == OP_PARM_J)) 1194 { 1195 addr = CSAMResolveBranch(&cpu, pCurInstrGC); 1193 if ( ((cpu.pCurInstr->optype & OPTYPE_CONTROLFLOW) && (OP_PARM_VTYPE(cpu.pCurInstr->param1) == OP_PARM_J)) 1194 || (cpu.pCurInstr->opcode == OP_CALL && cpu.param1.flags == USE_DISPLACEMENT32)) /* simple indirect call (call dword ptr [address]) */ 1195 { 1196 /* We need to parse 'call dword ptr [address]' type of calls to catch cpuid instructions in some recent Linux distributions (e.g. OpenSuse 10.3) */ 1197 if ( cpu.pCurInstr->opcode == OP_CALL 1198 && cpu.param1.flags == USE_DISPLACEMENT32) 1199 { 1200 addr = 0; 1201 PGMPhysReadGCPtr(pVM, &addr, cpu.param1.disp32, sizeof(addr)); 1202 } 1203 else 1204 addr = CSAMResolveBranch(&cpu, pCurInstrGC); 1205 1196 1206 if (addr == 0) 1197 1207 {
Note:
See TracChangeset
for help on using the changeset viewer.