VirtualBox

Changeset 41675 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jun 12, 2012 8:27:37 PM (13 years ago)
Author:
vboxsync
Message:

DIS: The start of the scoping exercise... Fixed PREFIX_ADDRSIZE that I just busted in the previous commit.

Location:
trunk/src/VBox/Runtime/testcase
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstLdr-2.cpp

    r41671 r41675  
    4747        char        szOutput[256];
    4848        uint32_t    cbInstr;
    49         if (RT_FAILURE(DISInstrToStr(pbCodeBlock + i, CPUMODE_32BIT, &Cpu, &cbInstr, szOutput, sizeof(szOutput))))
     49        if (RT_FAILURE(DISInstrToStr(pbCodeBlock + i, DISCPUMODE_32BIT, &Cpu, &cbInstr, szOutput, sizeof(szOutput))))
    5050            return false;
    5151
  • trunk/src/VBox/Runtime/testcase/tstLdr-3.cpp

    r41674 r41675  
    247247        memset(&Cpu, 0, sizeof(Cpu));
    248248#ifdef RT_ARCH_X86 /** @todo select according to the module type. */
    249         Cpu.mode = CPUMODE_32BIT;
     249        Cpu.mode = DISCPUMODE_32BIT;
    250250#else
    251         Cpu.mode = CPUMODE_64BIT;
     251        Cpu.mode = DISCPUMODE_64BIT;
    252252#endif
    253253        uint8_t *pbCode = (uint8_t *)g_pvBits + (NearSym.aSyms[0].Value - g_uLoadAddr);
  • trunk/src/VBox/Runtime/testcase/tstLdrDisasmTest.cpp

    r41674 r41675  
    105105{
    106106    uint32_t cb;
    107     int rc = DISInstrWithReader(CodeIndex, CPUMODE_32BIT, DisasmTest1ReadCode, 0, pCpu, &cb);
     107    int rc = DISInstrWithReader(CodeIndex, DISCPUMODE_32BIT, DisasmTest1ReadCode, 0, pCpu, &cb);
    108108    *pcb = cb;
    109109    MY_PRINTF(("DISCoreOneEx -> rc=%d cb=%d  Cpu: opcode=%#x pCurInstr=%p (42=%d)\n", \
     
    122122
    123123    memset(&Cpu, 0, sizeof(Cpu));
    124     Cpu.mode = CPUMODE_32BIT;
     124    Cpu.mode = DISCPUMODE_32BIT;
    125125
    126126#define DISAS_AND_CHECK(cbInstr, enmOp) \
  • trunk/src/VBox/Runtime/testcase/tstLdrObj.cpp

    r41674 r41675  
    9898    static unsigned cb;
    9999    DISCPUSTATE Cpu;
    100     DISInstr((void *)(uintptr_t)SomeExportFunction3, CPUMODE_32BIT, &Cpu, &cb);
     100    DISInstr((void *)(uintptr_t)SomeExportFunction3, DISCPUMODE_32BIT, &Cpu, &cb);
    101101    return (void *)(uintptr_t)&SomeExportFunction1;
    102102}
  • trunk/src/VBox/Runtime/testcase/tstLdrObjR0.cpp

    r41674 r41675  
    9696
    9797    memset(&Cpu, 0, sizeof(Cpu));
    98     Cpu.mode = CPUMODE_32BIT;
     98    Cpu.mode = DISCPUMODE_32BIT;
    9999
    100     DISInstr((void *)(uintptr_t)SomeExportFunction3, CPUMODE_32BIT, &Cpu, &cb);
     100    DISInstr((void *)(uintptr_t)SomeExportFunction3, DISCPUMODE_32BIT, &Cpu, &cb);
    101101    return (void *)(uintptr_t)&SomeExportFunction1;
    102102}
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