VirtualBox

Changeset 100728 in vbox


Ignore:
Timestamp:
Jul 28, 2023 12:01:08 PM (16 months ago)
Author:
vboxsync
Message:

VMM/ARM: Some preliminary saved state handling and logging for the vCPU state, bugref:10387 [missing file]

File:
1 edited

Legend:

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

    r99956 r100728  
    4141
    4242#include <VBox/types.h>
     43#include <iprt/armv8.h>
     44
    4345
    4446RT_C_DECLS_BEGIN
     
    263265
    264266
     267#if !defined(IPRT_WITHOUT_NAMED_UNIONS_AND_STRUCTS) || defined(DOXYGEN_RUNNING)
     268/** @name Inlined Guest Getters and predicates Functions.
     269 * @{ */
     270
     271/**
     272 * Tests if the guest is running in 64 bits mode or not.
     273 *
     274 * @returns true if in 64 bits mode, otherwise false.
     275 * @param   pCtx    Current CPU context.
     276 */
     277DECLINLINE(bool) CPUMIsGuestIn64BitCodeEx(PCPUMCTX pCtx)
     278{
     279    return !RT_BOOL(pCtx->fPState & ARMV8_SPSR_EL2_AARCH64_M4);
     280}
     281
     282/** @} */
     283#endif /* !IPRT_WITHOUT_NAMED_UNIONS_AND_STRUCTS || DOXYGEN_RUNNING */
     284
     285
    265286#ifndef VBOX_FOR_DTRACE_LIB
    266287
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