VirtualBox

Changeset 101583 in vbox for trunk


Ignore:
Timestamp:
Oct 24, 2023 7:04:51 PM (14 months ago)
Author:
vboxsync
Message:

VMM/IEM: Native IEM_MC_IF_CX_IS_NZ implementation. bugref:10371

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllInstPython.py

    r101581 r101583  
    28802880    'IEM_MC_FPU_STACK_UNDERFLOW_THEN_POP_POP':                   (McBlock.parseMcGeneric,           True,  False, ),
    28812881    'IEM_MC_FPU_TO_MMX_MODE':                                    (McBlock.parseMcGeneric,           True,  False, ),
    2882     'IEM_MC_IF_CX_IS_NZ':                                        (McBlock.parseMcGenericCond,       True,  False, ),
     2882    'IEM_MC_IF_CX_IS_NZ':                                        (McBlock.parseMcGenericCond,       True,  True, ),
    28832883    'IEM_MC_IF_CX_IS_NZ_AND_EFL_BIT_NOT_SET':                    (McBlock.parseMcGenericCond,       True,  False, ),
    28842884    'IEM_MC_IF_CX_IS_NZ_AND_EFL_BIT_SET':                        (McBlock.parseMcGenericCond,       True,  False, ),
  • trunk/src/VBox/VMM/VMMAll/IEMAllN8veRecompiler.cpp

    r101581 r101583  
    45564556
    45574557
     4558#define IEM_MC_IF_CX_IS_NZ() \
     4559    off = iemNativeEmitIfCxIsNotZero(pReNative, off); \
     4560    AssertReturn(off != UINT32_MAX, UINT32_MAX); \
     4561    do {
     4562
     4563/** Emits code for IEM_MC_IF_EFL_BIT_NOT_SET_AND_BITS_EQ and
     4564 *  IEM_MC_IF_EFL_BIT_SET_OR_BITS_NE. */
     4565DECLINLINE(uint32_t) iemNativeEmitIfCxIsNotZero(PIEMRECOMPILERSTATE pReNative, uint32_t off)
     4566{
     4567    PIEMNATIVECOND pEntry = iemNativeCondPushIf(pReNative);
     4568    AssertReturn(pEntry, UINT32_MAX);
     4569
     4570    uint8_t const idxGstRcxReg = iemNativeRegAllocTmpForGuestReg(pReNative, &off,
     4571                                                                 (IEMNATIVEGSTREG)(kIemNativeGstReg_GprFirst + X86_GREG_xCX),
     4572                                                                 kIemNativeGstRegUse_ReadOnly);
     4573    AssertReturn(idxGstRcxReg != UINT8_MAX, UINT32_MAX);
     4574    off = iemNativeEmitTestAnyBitsInGprAndJmpToLabelIfNoneSet(pReNative, off, idxGstRcxReg, UINT16_MAX, pEntry->idxLabelElse);
     4575    iemNativeRegFreeTmp(pReNative, idxGstRcxReg);
     4576
     4577    iemNativeCondStartIfBlock(pReNative, off);
     4578    return off;
     4579}
     4580
     4581
    45584582
    45594583/*********************************************************************************************************************************
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