VirtualBox

Ignore:
Timestamp:
Jun 16, 2023 6:51:39 AM (18 months ago)
Author:
vboxsync
Message:

VMM: Add a CPUMGetGuestArch() method and PDM device helper to make it easier to determine the guest architecture and not having to deal with the massive CPUMMICROARCH enum, bugref:10385

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp

    r99739 r100184  
    10971097{
    10981098    return (CPUMCPUVENDOR)pVM->cpum.s.GuestFeatures.enmCpuVendor;
     1099}
     1100
     1101
     1102/**
     1103 * Gets the guest CPU architecture.
     1104 *
     1105 * @returns CPU architecture.
     1106 * @param   pVM     The cross context VM structure.
     1107 */
     1108VMMDECL(CPUMARCH) CPUMGetGuestArch(PCVM pVM)
     1109{
     1110    RT_NOREF(pVM);
     1111    return kCpumArch_X86; /* Static as we are in the x86 VMM module here. */
    10991112}
    11001113
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