VirtualBox

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


Ignore:
Timestamp:
Jun 12, 2012 1:15:51 PM (13 years ago)
Author:
vboxsync
Message:

DIS,DIS-users: Drop the operand/parameter formatting during instruction parsing. The desired formatter can do this afterwards if desired. Should save time + size. (DISCPUSTATE is now 256 bytes here on 64-bit linux, was ~406 yesterday.)

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

Legend:

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

    r41658 r41668  
    164164        char        szOutput[256];
    165165        unsigned    cbInstr;
    166         int rc = DISCoreOneEx(uNearAddr + i, pCpu->mode,
    167                               MyReadBytes, (uint8_t *)pvCodeBlock - (uintptr_t)uNearAddr,
    168                               pCpu, &cbInstr);
     166        int rc = DISCoreOneWithReader(uNearAddr + i, pCpu->mode,
     167                                      MyReadBytes, (uint8_t *)pvCodeBlock - (uintptr_t)uNearAddr,
     168                                      pCpu, &cbInstr);
    169169        RTAssertSetMayPanic(fMayPanic);
    170170        RTAssertSetQuiet(fQuiet);
  • trunk/src/VBox/Runtime/testcase/tstLdrDisasmTest.cpp

    r41658 r41668  
    105105{
    106106    uint32_t cb;
    107     int rc = DISCoreOneEx(CodeIndex, CPUMODE_32BIT, DisasmTest1ReadCode, 0, pCpu, &cb);
     107    int rc = DISCoreOneWithReader(CodeIndex, CPUMODE_32BIT, DisasmTest1ReadCode, 0, pCpu, &cb);
    108108    *pcb = cb;
    109109    MY_PRINTF(("DISCoreOneEx -> rc=%d cb=%d  Cpu: opcode=%#x pCurInstr=%p (42=%d)\n", \
  • trunk/src/VBox/Runtime/testcase/tstLdrObj.cpp

    r41658 r41668  
    9898    static unsigned cb;
    9999    DISCPUSTATE Cpu;
    100     DISCoreOneEx((uintptr_t)SomeExportFunction3, CPUMODE_32BIT, NULL /*pfnReadBytes*/, NULL /*pvUser*/, &Cpu, &cb);
     100    DISCoreOne((uintptr_t)SomeExportFunction3, CPUMODE_32BIT, &Cpu, &cb);
    101101    return (void *)(uintptr_t)&SomeExportFunction1;
    102102}
  • trunk/src/VBox/Runtime/testcase/tstLdrObjR0.cpp

    r41658 r41668  
    9898    Cpu.mode = CPUMODE_32BIT;
    9999
    100     DISCoreOneEx((uintptr_t)SomeExportFunction3, CPUMODE_32BIT, NULL /*pfnReadBytes*/, NULL /*pvUser*/, &Cpu, &cb);
     100    DISCoreOne((uintptr_t)SomeExportFunction3, CPUMODE_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