VirtualBox

Ignore:
Timestamp:
Nov 13, 2023 12:03:15 PM (15 months ago)
Author:
vboxsync
Message:

VMM/IEM: Native handling/translation of IEM_MC_GREG_U8_THREADED. bugref:10371

File:
1 edited

Legend:

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

    r102078 r102079  
    67486748    off = iemNativeEmitRefGregU8(pReNative, off, a_pu8Dst, a_iGRegEx, true /*fConst*/)
    67496749
     6750/** Handles IEM_MC_REF_GREG_U8[_CONST]. */
     6751DECL_INLINE_THROW(uint32_t)
     6752iemNativeEmitRefGregU8(PIEMRECOMPILERSTATE pReNative, uint32_t off, uint8_t idxVarRef, uint8_t iGRegEx, bool fConst)
     6753{
     6754    IEMNATIVE_ASSERT_VAR_IDX(pReNative, idxVarRef);
     6755    Assert(pReNative->Core.aVars[idxVarRef].cbVar == sizeof(void *));
     6756    Assert(iGRegEx < 20);
     6757
     6758    if (iGRegEx < 16)
     6759        iemNativeVarSetKindToGstRegRef(pReNative, idxVarRef, kIemNativeGstRegRef_Gpr, iGRegEx & 15);
     6760    else
     6761        iemNativeVarSetKindToGstRegRef(pReNative, idxVarRef, kIemNativeGstRegRef_GprHighByte, iGRegEx & 15);
     6762
     6763    /* If we've delayed writing back the register value, flush it now. */
     6764    off = iemNativeRegFlushPendingSpecificWrite(pReNative, off, kIemNativeGstRegRef_Gpr, iGRegEx & 15);
     6765
     6766    /* If it's not a const reference we need to flush the shadow copy of the register now. */
     6767    if (!fConst)
     6768        iemNativeRegFlushGuestShadows(pReNative, RT_BIT_64(IEMNATIVEGSTREG_GPR(iGRegEx & 15)));
     6769
     6770    return off;
     6771}
    67506772
    67516773#define IEM_MC_REF_GREG_U16(a_pu16Dst, a_iGReg) \
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