VirtualBox

Changeset 108298 in vbox


Ignore:
Timestamp:
Feb 19, 2025 3:17:42 PM (3 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167642
Message:

VMM/IEM: Move IEM_GET_INSTR_LEN to IEMInternal-x86.h since arm64 has a fixed instruction size. jiraref:VBP-1531

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/target-x86/IEMInternal-x86.h

    r108278 r108298  
    23832383/** @name Misc Helpers
    23842384 * @{  */
     2385
     2386/** @def IEM_GET_INSTR_LEN
     2387 * Gets the instruction length. */
     2388#ifdef IEM_WITH_CODE_TLB
     2389# define IEM_GET_INSTR_LEN(a_pVCpu)         ((a_pVCpu)->iem.s.offInstrNextByte - (uint32_t)(int32_t)(a_pVCpu)->iem.s.offCurInstrStart)
     2390#else
     2391# define IEM_GET_INSTR_LEN(a_pVCpu)         ((a_pVCpu)->iem.s.offOpcode)
     2392#endif
    23852393
    23862394/**
  • trunk/src/VBox/VMM/include/IEMInternal.h

    r108278 r108298  
    24842484#endif
    24852485
    2486 /** @def IEM_GET_INSTR_LEN
    2487  * Gets the instruction length.
    2488  * @note x86 specific */
    2489 #ifdef IEM_WITH_CODE_TLB
    2490 # define IEM_GET_INSTR_LEN(a_pVCpu)     ((a_pVCpu)->iem.s.offInstrNextByte - (uint32_t)(int32_t)(a_pVCpu)->iem.s.offCurInstrStart)
    2491 #else
    2492 # define IEM_GET_INSTR_LEN(a_pVCpu)     ((a_pVCpu)->iem.s.offOpcode)
    2493 #endif
    24942486
    24952487/** @def IEM_TRY_SETJMP
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