VirtualBox

Changeset 104321 in vbox for trunk/src


Ignore:
Timestamp:
Apr 12, 2024 3:08:36 PM (10 months ago)
Author:
vboxsync
Message:

VMM/IEM: Drop the IEMTHRDEDCALLENTRY::idxRange field as nobody uses it. bugref:10369

Location:
trunk/src/VBox/VMM
Files:
5 edited

Legend:

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

    r104153 r104321  
    19081908    pCall->enmFunction = kIemThreadedFunc_BltIn_Nop;
    19091909    pCall->idxInstr    = pTb->cInstructions - 1;
     1910    pCall->cbOpcode    = 0;
     1911    pCall->offOpcode   = 0;
    19101912    pCall->uUnused0    = 0;
    1911     pCall->offOpcode   = 0;
    1912     pCall->cbOpcode    = 0;
    1913     pCall->idxRange    = 0;
    19141913    pCall->auParams[0] = 0;
    19151914    pCall->auParams[1] = 0;
     
    19341933    pCall->enmFunction = kIemThreadedFunc_BltIn_LogCpuState;
    19351934    pCall->idxInstr    = pTb->cInstructions - 1;
     1935    pCall->cbOpcode    = 0;
     1936    pCall->offOpcode   = 0;
    19361937    pCall->uUnused0    = 0;
    1937     pCall->offOpcode   = 0;
    1938     pCall->cbOpcode    = 0;
    1939     pCall->idxRange    = 0;
    19401938    pCall->auParams[0] = RT_MAKE_U16(pCall->idxInstr, idxCall); /* currently not used, but whatever */
    19411939    pCall->auParams[1] = 0;
     
    20262024    PIEMTHRDEDCALLENTRY const pCall     = &pTb->Thrd.paCalls[pTb->Thrd.cCalls];
    20272025    pCall->idxInstr    = pTb->cInstructions;
     2026    pCall->cbOpcode    = cbInstr;
    20282027    pCall->offOpcode   = offOpcode;
    2029     pCall->idxRange    = idxRange;
    2030     pCall->cbOpcode    = cbInstr;
     2028    pCall->uUnused0    = 0;
    20312029    pCall->auParams[0] = (uint32_t)cbInstr
    20322030                       | (uint32_t)(pVCpu->iem.s.fExec << 8) /* liveness: Enough of fExec for IEM_F_MODE_X86_IS_FLAT. */
     
    20932091                    return false;
    20942092                }
    2095                 pCall->idxRange    = idxRange;
    20962093                pCall->auParams[1] = idxRange;
    20972094                pCall->auParams[2] = 0;
     
    21852182                return false;
    21862183            idxRange += 1;
    2187             pCall->idxRange    = idxRange;
    21882184            pCall->auParams[1] = idxRange;
    21892185            pCall->auParams[2] = 0;
     
    22482244        {
    22492245            Assert(pVCpu->iem.s.offCurInstrStart == 0);
    2250             pCall->idxRange    = idxRange;
    22512246            pCall->auParams[1] = idxRange;
    22522247            pCall->auParams[2] = 0;
     
    23902385    pCall->enmFunction = kIemThreadedFunc_BltIn_CheckMode;
    23912386    pCall->idxInstr    = pTb->cInstructions - 1;
     2387    pCall->cbOpcode    = 0;
     2388    pCall->offOpcode   = 0;
    23922389    pCall->uUnused0    = 0;
    2393     pCall->offOpcode   = 0;
    2394     pCall->cbOpcode    = 0;
    2395     pCall->idxRange    = 0;
    23962390    pCall->auParams[0] = pVCpu->iem.s.fExec;
    23972391    pCall->auParams[1] = 0;
     
    24292423        pCall->enmFunction = kIemThreadedFunc_BltIn_CheckIrq;
    24302424        pCall->idxInstr    = pTb->cInstructions;
    2431         pCall->uUnused0    = 0;
    24322425        pCall->offOpcode   = 0;
    24332426        pCall->cbOpcode    = 0;
    2434         pCall->idxRange    = 0;
     2427        pCall->uUnused0    = 0;
    24352428        pCall->auParams[0] = 0;
    24362429        pCall->auParams[1] = 0;
     
    24832476    pCall->enmFunction = kIemThreadedFunc_BltIn_CheckIrq;
    24842477    pCall->idxInstr    = pTb->cInstructions;
    2485     pCall->uUnused0    = 0;
    24862478    pCall->offOpcode   = 0;
    24872479    pCall->cbOpcode    = 0;
    2488     pCall->idxRange    = 0;
     2480    pCall->uUnused0    = 0;
    24892481    pCall->auParams[0] = 0;
    24902482    pCall->auParams[1] = 0;
  • trunk/src/VBox/VMM/VMMAll/IEMAllThrdTables.h

    r104018 r104321  
    231231        pCall->enmFunction = a_enmFunction; \
    232232        pCall->idxInstr    = idxInstrMc2; \
     233        pCall->cbOpcode    = cbInstrMc2; \
     234        pCall->offOpcode   = offOpcodeMc2; \
    233235        pCall->uUnused0    = 0; \
    234         pCall->offOpcode   = offOpcodeMc2; \
    235         pCall->cbOpcode    = cbInstrMc2; \
    236         pCall->idxRange    = idxRangeMc2; \
    237236        pCall->auParams[0] = 0; \
    238237        pCall->auParams[1] = 0; \
     
    247246        pCall->enmFunction = a_enmFunction; \
    248247        pCall->idxInstr    = idxInstrMc2; \
     248        pCall->cbOpcode    = cbInstrMc2; \
     249        pCall->offOpcode   = offOpcodeMc2; \
    249250        pCall->uUnused0    = 0; \
    250         pCall->offOpcode   = offOpcodeMc2; \
    251         pCall->cbOpcode    = cbInstrMc2; \
    252         pCall->idxRange    = idxRangeMc2; \
    253251        pCall->auParams[0] = a_uArg0; \
    254252        pCall->auParams[1] = 0; \
     
    264262        pCall->enmFunction = a_enmFunction; \
    265263        pCall->idxInstr    = idxInstrMc2; \
     264        pCall->cbOpcode    = cbInstrMc2; \
     265        pCall->offOpcode   = offOpcodeMc2; \
    266266        pCall->uUnused0    = 0; \
    267         pCall->offOpcode   = offOpcodeMc2; \
    268         pCall->cbOpcode    = cbInstrMc2; \
    269         pCall->idxRange    = idxRangeMc2; \
    270267        pCall->auParams[0] = a_uArg0; \
    271268        pCall->auParams[1] = a_uArg1; \
     
    282279        pCall->enmFunction = a_enmFunction; \
    283280        pCall->idxInstr    = idxInstrMc2; \
    284         pCall->uUnused0    = 0; \
    285281        pCall->offOpcode   = offOpcodeMc2; \
    286282        pCall->cbOpcode    = cbInstrMc2; \
    287         pCall->idxRange    = idxRangeMc2; \
     283        pCall->uUnused0    = 0; \
    288284        pCall->auParams[0] = a_uArg0; \
    289285        pCall->auParams[1] = a_uArg1; \
  • trunk/src/VBox/VMM/VMMAll/target-x86/IEMAllN8veEmit-x86.h

    r104315 r104321  
    22512251//IEMNATIVE_NATIVE_EMIT_ADD_SUB_U128(psubq, true  /*a_fSub*/, kArmv8VecInstrArithSz_64, 0xfb);
    22522252
    2253 #endif
     2253#endif /* IEMNATIVE_WITH_SIMD_REG_ALLOCATOR */
    22542254
    22552255#endif /* !VMM_INCLUDED_SRC_VMMAll_target_x86_IEMAllN8veEmit_x86_h */
  • trunk/src/VBox/VMM/VMMR3/IEMR3.cpp

    r104281 r104321  
    11381138    fFlags &= IEMTB_F_KEY_MASK;
    11391139    IEMTBCACHE const * const pTbCache = pVCpu->iem.s.pTbCacheR3;
    1140     uint32_t const           idxHash  = IEMTBCACHE_HASH_NO_KEY_MASK(pTbCache, fFlags, GCPhysPc);
     1140    uint32_t const           idxHash  = IEMTBCACHE_HASH(pTbCache, fFlags, GCPhysPc);
    11411141    PCIEMTB                  pTb      = IEMTBCACHE_PTR_GET_TB(pTbCache->apHash[idxHash]);
    11421142    while (pTb)
  • trunk/src/VBox/VMM/include/IEMInternal.h

    r104298 r104321  
    920920    /** The function to call (IEMTHREADEDFUNCS). */
    921921    uint16_t    enmFunction;
     922
    922923    /** Instruction number in the TB (for statistics). */
    923924    uint8_t     idxInstr;
    924     uint8_t     uUnused0;
    925 
     925    /** The opcode length. */
     926    uint8_t     cbOpcode;
    926927    /** Offset into IEMTB::pabOpcodes. */
    927928    uint16_t    offOpcode;
    928     /** The opcode length. */
    929     uint8_t     cbOpcode;
    930     /** Index in to IEMTB::aRanges. */
    931     uint8_t     idxRange;
     929
     930    /** Unused atm. */
     931    uint16_t    uUnused0;
    932932
    933933    /** Generic parameters. */
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