VirtualBox

Ignore:
Timestamp:
Aug 3, 2023 11:29:53 PM (16 months ago)
Author:
vboxsync
Message:

VMM/IEM: CS.LIM check fix. bugref:10369

File:
1 edited

Legend:

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

    r100787 r100789  
    15371537{
    15381538    /*
    1539      * Return IEMTB_F_RIP_CHECKS if the current PC is invalid or if it is
     1539     * Return IEMTB_F_CS_LIM_CHECKS if the current PC is invalid or if it is
    15401540     * likely to go invalid before the end of the translation block.
    15411541     */
     
    15451545
    15461546    if (RT_LIKELY(   pVCpu->cpum.GstCtx.eip < pVCpu->cpum.GstCtx.cs.u32Limit
    1547                   && pVCpu->cpum.GstCtx.eip - pVCpu->cpum.GstCtx.cs.u32Limit >= X86_PAGE_SIZE))
     1547                  && pVCpu->cpum.GstCtx.cs.u32Limit - pVCpu->cpum.GstCtx.eip >= X86_PAGE_SIZE))
    15481548        return IEMTB_F_TYPE_THREADED;
    15491549
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