VirtualBox

Changeset 99210 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Mar 29, 2023 2:18:33 PM (23 months ago)
Author:
vboxsync
Message:

Disassembler,VMM,Runtime: Get rid of deprecated DISCPUSTATE types (preparation for architecture specific separation in order to support ARMv8), bugref:10394 [build fix, missing file]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/DBGFDisas.cpp

    r98972 r99210  
    6161{
    6262    /** The core structure. */
    63     DISCPUSTATE     Cpu;
     63    DISSTATE        Dis;
    6464    /** The cross context VM structure. */
    6565    PVM             pVM;
     
    155155                                enmCpuMode,
    156156                                dbgfR3DisasInstrRead,
    157                                 &pState->Cpu,
    158                                 &pState->Cpu,
     157                                &pState->Dis,
     158                                &pState->Dis,
    159159                                &cbInstr);
    160160    if (RT_SUCCESS(rc))
     
    216216 *          DBGFDISASSTATE::GCPtrSegBase.
    217217 */
    218 static DECLCALLBACK(int) dbgfR3DisasInstrRead(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead)
     218static DECLCALLBACK(int) dbgfR3DisasInstrRead(PDISSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead)
    219219{
    220220    PDBGFDISASSTATE pState = (PDBGFDISASSTATE)pDis;
     
    287287 * @callback_method_impl{FNDISGETSYMBOL}
    288288 */
    289 static DECLCALLBACK(int) dbgfR3DisasGetSymbol(PCDISCPUSTATE pDis, uint32_t u32Sel, RTUINTPTR uAddress,
     289static DECLCALLBACK(int) dbgfR3DisasGetSymbol(PCDISSTATE pDis, uint32_t u32Sel, RTUINTPTR uAddress,
    290290                                              char *pszBuf, size_t cchBuf, RTINTPTR *poff, void *pvUser)
    291291{
     
    304304        rc = DBGFR3AddrFromSelInfoOff(pState->pVM->pUVM, &Addr, pSelInfo, uAddress);
    305305    /* In long mode everything but FS and GS is easy. */
    306     else if (   pState->Cpu.uCpuMode == DISCPUMODE_64BIT
     306    else if (   pState->Dis.uCpuMode == DISCPUMODE_64BIT
    307307             && DIS_FMT_SEL_IS_REG(u32Sel)
    308308             && DIS_FMT_SEL_GET_REG(u32Sel) != DISSELREG_GS
     
    520520    if (RT_FAILURE(rc))
    521521    {
    522         if (State.Cpu.cbCachedInstr)
    523             RTStrPrintf(pszOutput, cbOutput, "Disas -> %Rrc; %.*Rhxs\n", rc, (size_t)State.Cpu.cbCachedInstr, State.Cpu.abInstr);
     522        if (State.Dis.cbCachedInstr)
     523            RTStrPrintf(pszOutput, cbOutput, "Disas -> %Rrc; %.*Rhxs\n", rc, (size_t)State.Dis.cbCachedInstr, State.Dis.abInstr);
    524524        else
    525525            RTStrPrintf(pszOutput, cbOutput, "Disas -> %Rrc\n", rc);
     
    531531     */
    532532    char szBuf[512];
    533     DISFormatYasmEx(&State.Cpu, szBuf, sizeof(szBuf),
     533    DISFormatYasmEx(&State.Dis, szBuf, sizeof(szBuf),
    534534                    DIS_FMT_FLAGS_RELATIVE_BRANCH,
    535535                    fFlags & DBGF_DISAS_FLAGS_NO_SYMBOLS ? NULL : dbgfR3DisasGetSymbol,
     
    563563    else
    564564    {
    565         uint32_t        cbInstr  = State.Cpu.cbInstr;
    566         uint8_t const  *pabInstr = State.Cpu.abInstr;
     565        uint32_t        cbInstr  = State.Dis.cbInstr;
     566        uint8_t const  *pabInstr = State.Dis.abInstr;
    567567        if (fFlags & DBGF_DISAS_FLAGS_NO_ADDRESS)
    568568            cch = RTStrPrintf(pszOutput, cbOutput, "%.*Rhxs%*s %s",
     
    603603
    604604    if (pcbInstr)
    605         *pcbInstr = State.Cpu.cbInstr;
     605        *pcbInstr = State.Dis.cbInstr;
    606606
    607607    if (pDisState)
    608608    {
    609         pDisState->pCurInstr = State.Cpu.pCurInstr;
    610         pDisState->cbInstr   = State.Cpu.cbInstr;
    611         pDisState->Param1    = State.Cpu.Param1;
    612         pDisState->Param2    = State.Cpu.Param2;
    613         pDisState->Param3    = State.Cpu.Param3;
    614         pDisState->Param4    = State.Cpu.Param4;
     609        pDisState->pCurInstr = State.Dis.pCurInstr;
     610        pDisState->cbInstr   = State.Dis.cbInstr;
     611        pDisState->Param1    = State.Dis.Param1;
     612        pDisState->Param2    = State.Dis.Param2;
     613        pDisState->Param3    = State.Dis.Param3;
     614        pDisState->Param4    = State.Dis.Param4;
    615615    }
    616616
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