VirtualBox

Changeset 104168 in vbox


Ignore:
Timestamp:
Apr 5, 2024 8:20:51 AM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
162596
Message:

VMM/IEM: Fix the interpreter implementation of IEM_MC_FETCH_YREG_U64, bugref:10641

Location:
trunk/src/VBox/VMM/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/IEMMc.h

    r104163 r104168  
    636636#define IEM_MC_FETCH_YREG_U64(a_u64Dst, a_iYRegSrc, a_iQWord) \
    637637    do { uintptr_t const iYRegSrcTmp    = (a_iYRegSrc); \
    638          (a_u64Dst) = pVCpu->cpum.GstCtx.XState.x87.aXMM[iYRegSrcTmp].au64[(a_iQWord)]; \
     638         if ((a_iQWord) < 2) \
     639            (a_u64Dst) = pVCpu->cpum.GstCtx.XState.x87.aXMM[iYRegSrcTmp].au64[(a_iQWord)]; \
     640         else \
     641            (a_u64Dst) = pVCpu->cpum.GstCtx.XState.u.YmmHi.aYmmHi[iYRegSrcTmp].au64[(a_iQWord) - 2]; \
    639642    } while (0)
    640643#define IEM_MC_FETCH_YREG_U128(a_u128Dst, a_iYRegSrc, a_iDQword) \
  • trunk/src/VBox/VMM/include/IEMN8veRecompilerEmit.h

    r104155 r104168  
    83088308         * So we use the following sequence:
    83098309         *     vextracti128 vectmp0, vecsrc, 1
    8310          *     pextrd       gpr, vectmp0, #(iQWord - 2)
     8310         *     pextrq       gpr, vectmp0, #(iQWord - 2)
    83118311         */
    83128312        /* vextracti128 */
     
    83188318        pCodeBuf[off++] = 0x1;
    83198319
    8320         /* pextrd gpr, vecsrc, #iDWord (ASSUMES SSE4.1). */
     8320        /* pextrq */
    83218321        pCodeBuf[off++] = X86_OP_PRF_SIZE_OP;
    83228322        pCodeBuf[off++] =   X86_OP_REX_W
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette