VirtualBox

Changeset 5205 in vbox


Ignore:
Timestamp:
Oct 9, 2007 2:07:16 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
25132
Message:

Process indirect calls to catch cpuid instructions in OpenSuse 10.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/CSAM.cpp

    r5200 r5205  
    11911191
    11921192        // 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
    11961206            if (addr == 0)
    11971207            {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette