Changeset 102085 in vbox
- Timestamp:
- Nov 13, 2023 3:42:38 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp
r102061 r102085 54 54 #include "CPlatform.h" 55 55 #include "CPlatformX86.h" 56 #ifdef VBOX_WITH_VIRT_ARMV857 # include "CPlatformARM.h"58 #endif59 56 #include "CProgress.h" 60 57 … … 777 774 { 778 775 /* Update long mode CPU feature bit when OS type changed: */ 779 const CPlatform comPlatform = m_machine.GetPlatform(); 780 switch (comPlatform.GetArchitecture()) 776 const KPlatformArchitecture enmArch = optionalFlags().contains("arch") 777 ? optionalFlags().value("arch").value<KPlatformArchitecture>() 778 : KPlatformArchitecture_x86; 779 switch (enmArch) 781 780 { 782 781 case KPlatformArchitecture_x86: 783 782 { 783 const CPlatform comPlatform = m_machine.GetPlatform(); 784 784 CPlatformX86 comPlatformX86 = comPlatform.GetX86(); 785 const CGuestOSType &comNewType = uiCommon().virtualBox().GetGuestOSType(newGeneralData.m_strGuestOsTypeId);785 const CGuestOSType comNewType = uiCommon().virtualBox().GetGuestOSType(newGeneralData.m_strGuestOsTypeId); 786 786 comPlatformX86.SetCPUProperty(KCPUPropertyTypeX86_LongMode, comNewType.GetIs64Bit()); 787 787 fSuccess = comPlatformX86.isOk(); … … 789 789 break; 790 790 } 791 792 #ifdef VBOX_WITH_VIRT_ARMV8793 case KPlatformArchitecture_ARM:794 {795 CPlatformARM comPlatformARM = comPlatform.GetARM();796 /** @todo BUGBUG ARM stuff goes here. */797 fSuccess = comPlatformARM.isOk();798 break;799 }800 #endif801 802 791 default: 803 792 break;
Note:
See TracChangeset
for help on using the changeset viewer.