VirtualBox

Changeset 106784 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Oct 30, 2024 10:07:21 AM (3 months ago)
Author:
vboxsync
Message:

VMM/ARM: On ARM relative branch targets start always from the beginning of the current instruction while on x86 it always starts from the beginning of the following instruction, fixes control flow graph generation for ARMv8 guests, bugref:10393

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/DBGFR3Flow.cpp

    r106745 r106784  
    780780    /* Relative jumps are always from the beginning of the next instruction. */
    781781    *pAddrJmpTarget = *pAddrInstr;
     782#ifdef VBOX_VMM_TARGET_ARMV8
     783    /* On ARM relative jumps are always from the beginning of the curent instruction (b #0 will jump to itself for instance). */
     784    RT_NOREF(cbInstr);
     785#else
    782786    DBGFR3AddrAdd(pAddrJmpTarget, cbInstr);
     787#endif
    783788
    784789    if (fRelJmp)
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