VirtualBox

Changeset 99383 in vbox


Ignore:
Timestamp:
Apr 13, 2023 11:02:06 AM (20 months ago)
Author:
vboxsync
Message:

VMM/ARMv8: Add ability to insert new system register ranges (based on the MSR machinery from x86/amd64), bugref:10387

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum-armv8.h

    r99196 r99383  
    255255#ifndef VBOX_FOR_DTRACE_LIB
    256256
     257#ifdef IN_RING3
     258/** @defgroup grp_cpum_armv8_r3    The CPUM ARMv8 ring-3 API
     259 * @{
     260 */
     261
     262VMMR3DECL(int)          CPUMR3SysRegRangesInsert(PVM pVM, PCCPUMSYSREGRANGE pNewRange);
     263
     264/** @} */
     265#endif /* IN_RING3 */
     266
     267
    257268/** @name Guest Register Getters.
    258269 * @{ */
  • trunk/src/VBox/VMM/Makefile.kmk

    r99302 r99383  
    350350        VMMR3/CPUM-armv8.cpp \
    351351        VMMR3/CPUMDbg-armv8.cpp \
     352        VMMR3/CPUMR3Db-armv8.cpp \
    352353        VMMR3/DBGF.cpp \
    353354        VMMR3/DBGFAddr.cpp \
  • trunk/src/VBox/VMM/VMMR3/CPUM-armv8.cpp

    r99196 r99383  
    207207#endif
    208208
     209    pVM->cpum.s.GuestInfo.paSysRegRangesR3 = &pVM->cpum.s.GuestInfo.aSysRegRanges[0];
     210
    209211    /*
    210212     * Register saved state data item.
  • trunk/src/VBox/VMM/include/CPUMInternal-armv8.h

    r99196 r99383  
    8383    uint32_t                    cSysRegRanges;
    8484
    85     /** MSR ranges.
    86      * @todo This is insane, so might want to move this into a separate
    87      *       allocation.  The insanity is mainly for more recent AMD CPUs. */
    88     CPUMSYSREGRANGE             aSysRegRanges[1024];
     85    /** Pointer to the sysrem register ranges. */
     86    R3PTRTYPE(PCPUMSYSREGRANGE) paSysRegRangesR3;
     87
     88    /** System register ranges. */
     89    CPUMSYSREGRANGE             aSysRegRanges[128];
    8990} CPUMINFO;
    9091/** Pointer to a CPU info structure. */
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