VirtualBox

Changeset 99208 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Mar 29, 2023 2:13:56 PM (21 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

Location:
trunk/src/VBox/VMM/VMMAll
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r99051 r99208  
    854854 * @callback_method_impl{FNDISREADBYTES}
    855855 */
    856 static DECLCALLBACK(int) emReadBytes(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead)
     856static DECLCALLBACK(int) emReadBytes(PDISSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead)
    857857{
    858858    PVMCPUCC    pVCpu    = (PVMCPUCC)pDis->pvUser;
     
    911911 * @param   pcbInstr        Where to return the instruction size. (optional)
    912912 */
    913 VMM_INT_DECL(int) EMInterpretDisasCurrent(PVMCPUCC pVCpu, PDISCPUSTATE pDis, unsigned *pcbInstr)
     913VMM_INT_DECL(int) EMInterpretDisasCurrent(PVMCPUCC pVCpu, PDISSTATE pDis, unsigned *pcbInstr)
    914914{
    915915#if defined(VBOX_VMM_TARGET_ARMV8)
     
    947947 * @param   pcbInstr        Where to return the instruction size. (optional)
    948948 */
    949 VMM_INT_DECL(int) EMInterpretDisasOneEx(PVMCPUCC pVCpu, RTGCUINTPTR GCPtrInstr, PDISCPUSTATE pDis, unsigned *pcbInstr)
     949VMM_INT_DECL(int) EMInterpretDisasOneEx(PVMCPUCC pVCpu, RTGCUINTPTR GCPtrInstr, PDISSTATE pDis, unsigned *pcbInstr)
    950950{
    951951    DISCPUMODE enmCpuMode = CPUMGetGuestDisMode(pVCpu);
     
    994994
    995995/**
    996  * Interprets the current instruction using the supplied DISCPUSTATE structure.
     996 * Interprets the current instruction using the supplied DISSTATE structure.
    997997 *
    998998 * IP/EIP/RIP *IS* updated!
     
    10171017 *          Make sure this can't happen!! (will add some assertions/checks later)
    10181018 */
    1019 VMM_INT_DECL(VBOXSTRICTRC) EMInterpretInstructionDisasState(PVMCPUCC pVCpu, PDISCPUSTATE pDis, uint64_t rip)
     1019VMM_INT_DECL(VBOXSTRICTRC) EMInterpretInstructionDisasState(PVMCPUCC pVCpu, PDISSTATE pDis, uint64_t rip)
    10201020{
    10211021    LogFlow(("EMInterpretInstructionDisasState %RGv\n", (RTGCPTR)rip));
  • trunk/src/VBox/VMM/VMMAll/GCMAll.cpp

    r98103 r99208  
    3535#include <VBox/vmm/vmcc.h>
    3636
    37 #include <VBox/dis.h>       /* For DISCPUSTATE */
     37#include <VBox/dis.h>       /* For DISSTATE */
    3838#include <iprt/errcore.h>
    3939#include <iprt/string.h>
     
    113113 * @thread  EMT(pVCpu).
    114114 */
    115 VMM_INT_DECL(VBOXSTRICTRC) GCMXcptDE(PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISCPUSTATE pDis, uint8_t *pcbInstr)
     115VMM_INT_DECL(VBOXSTRICTRC) GCMXcptDE(PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISSTATE pDis, uint8_t *pcbInstr)
    116116{
    117117    PVMCC pVM = pVCpu->CTX_SUFF(pVM);
  • trunk/src/VBox/VMM/VMMAll/GIMAll.cpp

    r99051 r99208  
    3636#include <VBox/vmm/vmcc.h>
    3737
    38 #include <VBox/dis.h>       /* For DISCPUSTATE */
     38#include <VBox/dis.h>       /* For DISSTATE */
    3939#include <VBox/err.h>
    4040#include <iprt/string.h>
     
    249249        return VERR_GIM_NOT_ENABLED;
    250250
    251     unsigned    cbInstr;
    252     DISCPUSTATE Dis;
     251    unsigned cbInstr;
     252    DISSTATE Dis;
    253253    int rc = EMInterpretDisasCurrent(pVCpu, &Dis, &cbInstr);
    254254    if (RT_SUCCESS(rc))
     
    363363 * @thread  EMT(pVCpu).
    364364 */
    365 VMM_INT_DECL(VBOXSTRICTRC) GIMXcptUD(PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISCPUSTATE pDis, uint8_t *pcbInstr)
     365VMM_INT_DECL(VBOXSTRICTRC) GIMXcptUD(PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISSTATE pDis, uint8_t *pcbInstr)
    366366{
    367367    PVMCC pVM = pVCpu->CTX_SUFF(pVM);
  • trunk/src/VBox/VMM/VMMAll/GIMAllHv.cpp

    r98103 r99208  
    14611461 * @thread  EMT(pVCpu).
    14621462 */
    1463 VMM_INT_DECL(VBOXSTRICTRC) gimHvXcptUD(PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISCPUSTATE pDis, uint8_t *pcbInstr)
     1463VMM_INT_DECL(VBOXSTRICTRC) gimHvXcptUD(PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISSTATE pDis, uint8_t *pcbInstr)
    14641464{
    14651465    VMCPU_ASSERT_EMT(pVCpu);
     
    14771477         * or the AMD VMMCALL instruction and if so, handle it as a hypercall.
    14781478         */
    1479         unsigned    cbInstr;
    1480         DISCPUSTATE Dis;
     1479        unsigned cbInstr;
     1480        DISSTATE Dis;
    14811481        int rc = EMInterpretDisasCurrent(pVCpu, &Dis, &cbInstr);
    14821482        if (RT_SUCCESS(rc))
  • trunk/src/VBox/VMM/VMMAll/GIMAllKvm.cpp

    r98103 r99208  
    420420 * @thread  EMT(pVCpu).
    421421 */
    422 VMM_INT_DECL(VBOXSTRICTRC) gimKvmXcptUD(PVMCC pVM, PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISCPUSTATE pDis, uint8_t *pcbInstr)
     422VMM_INT_DECL(VBOXSTRICTRC) gimKvmXcptUD(PVMCC pVM, PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISSTATE pDis, uint8_t *pcbInstr)
    423423{
    424424    VMCPU_ASSERT_EMT(pVCpu);
     
    432432    if (!pDis)
    433433    {
    434         unsigned    cbInstr;
    435         DISCPUSTATE Dis;
     434        unsigned cbInstr;
     435        DISSTATE Dis;
    436436        int rc = EMInterpretDisasCurrent(pVCpu, &Dis, &cbInstr);
    437437        if (RT_SUCCESS(rc))
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r98572 r99208  
    222222             * we will simply skip it. Otherwise we'll have to defer it to REM.
    223223             */
    224             uint32_t     cbOp;
    225             PDISCPUSTATE pDis = &pVCpu->pgm.s.DisState;
     224            uint32_t  cbOp;
     225            PDISSTATE pDis = &pVCpu->pgm.s.Dis;
    226226            rc = EMInterpretDisasCurrent(pVCpu, pDis, &cbOp);
    227227            if (     RT_SUCCESS(rc)
  • trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp

    r99132 r99208  
    727727 * @param   offFault    The access offset.
    728728 */
    729 DECLINLINE(bool) pgmRZPoolMonitorIsForking(PPGMPOOL pPool, PDISCPUSTATE pDis, unsigned offFault)
     729DECLINLINE(bool) pgmRZPoolMonitorIsForking(PPGMPOOL pPool, PDISSTATE pDis, unsigned offFault)
    730730{
    731731    /*
     
    771771 * @remark  The REP prefix check is left to the caller because of STOSD/W.
    772772 */
    773 DECLINLINE(bool) pgmRZPoolMonitorIsReused(PVMCC pVM, PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISCPUSTATE pDis, RTGCPTR pvFault,
     773DECLINLINE(bool) pgmRZPoolMonitorIsReused(PVMCC pVM, PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISSTATE pDis, RTGCPTR pvFault,
    774774                                          PPGMPOOLPAGE pPage)
    775775{
     
    885885 * @todo VBOXSTRICTRC
    886886 */
    887 static int pgmRZPoolAccessPfHandlerFlush(PVMCC pVM, PVMCPUCC pVCpu, PPGMPOOL pPool, PPGMPOOLPAGE pPage, PDISCPUSTATE pDis,
     887static int pgmRZPoolAccessPfHandlerFlush(PVMCC pVM, PVMCPUCC pVCpu, PPGMPOOL pPool, PPGMPOOLPAGE pPage, PDISSTATE pDis,
    888888                                         PCPUMCTX pCtx, RTGCPHYS GCPhysFault)
    889889{
     
    937937 * @param   pvFault     The fault address.
    938938 */
    939 DECLINLINE(int) pgmRZPoolAccessPfHandlerSTOSD(PVMCC pVM, PPGMPOOL pPool, PPGMPOOLPAGE pPage, PDISCPUSTATE pDis,
     939DECLINLINE(int) pgmRZPoolAccessPfHandlerSTOSD(PVMCC pVM, PPGMPOOL pPool, PPGMPOOLPAGE pPage, PDISSTATE pDis,
    940940                                              PCPUMCTX pCtx, RTGCPHYS GCPhysFault, RTGCPTR pvFault)
    941941{
     
    999999 * @param   pfReused    Reused state (in/out)
    10001000 */
    1001 DECLINLINE(int) pgmRZPoolAccessPfHandlerSimple(PVMCC pVM, PVMCPUCC pVCpu, PPGMPOOL pPool, PPGMPOOLPAGE pPage, PDISCPUSTATE pDis,
     1001DECLINLINE(int) pgmRZPoolAccessPfHandlerSimple(PVMCC pVM, PVMCPUCC pVCpu, PPGMPOOL pPool, PPGMPOOLPAGE pPage, PDISSTATE pDis,
    10021002                                               PCPUMCTX pCtx, RTGCPHYS GCPhysFault, bool *pfReused)
    10031003{
     
    11501150     * Disassemble the faulting instruction.
    11511151     */
    1152     PDISCPUSTATE pDis = &pVCpu->pgm.s.DisState;
     1152    PDISSTATE pDis = &pVCpu->pgm.s.Dis;
    11531153    int rc = EMInterpretDisasCurrent(pVCpu, pDis, NULL);
    11541154    if (RT_UNLIKELY(rc != VINF_SUCCESS))
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