VirtualBox

Changeset 106429 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Oct 17, 2024 11:10:18 AM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165248
Message:

VMM/IEM: In iemNativeEmitRetn (as everywhere else), 64-bit mode implies flat mode. bugref:10720

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllN8veRecompFuncs.h

    r106427 r106429  
    23582358                                      ? sizeof(uint32_t)
    23592359                                      : sizeof(uint16_t);
    2360 /** @todo the basic flatness should be detected by the threaded compiler step
    2361  *        like for the other macros... */
    2362     bool      const fFlat           = IEM_F_MODE_X86_IS_FLAT(pReNative->fExec) && a_enmEffOpSize != IEMMODE_16BIT; /* see note */
    2363     uintptr_t const pfnFunction     = fFlat
    2364                                       ?   a_enmEffOpSize == IEMMODE_64BIT
    2365                                         ? (uintptr_t)iemNativeHlpStackFlatFetchU64
    2366                                         : (uintptr_t)iemNativeHlpStackFlatFetchU32
     2360/** @todo the basic flatness could be detected by the threaded compiler step
     2361 *        like for the other macros... worth it? */
     2362    bool      const fFlat           = a_enmEffOpSize == IEMMODE_64BIT
     2363                                   || (a_enmEffOpSize == IEMMODE_32BIT /* see note */ && IEM_F_MODE_X86_IS_FLAT(pReNative->fExec));
     2364    uintptr_t const pfnFunction     = a_enmEffOpSize == IEMMODE_64BIT
     2365                                    ? (uintptr_t)iemNativeHlpStackFlatFetchU64
     2366                                    : fFlat
     2367                                      ? (uintptr_t)iemNativeHlpStackFlatFetchU32
    23672368                                      :   a_enmEffOpSize == IEMMODE_32BIT
    23682369                                        ? (uintptr_t)iemNativeHlpStackFetchU32
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