Changeset 101068 in vbox
- Timestamp:
- Sep 8, 2023 2:37:11 PM (13 months ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Main/src-server/PlatformImpl.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/PlatformImpl.cpp
r101066 r101068 704 704 uninitArchitecture(); 705 705 706 switch ( m->bd->architectureType)706 switch (aArchitecture) 707 707 { 708 708 case PlatformArchitecture_x86: … … 749 749 750 750 if (SUCCEEDED(hrc)) 751 LogRel(("Platform architecture set to '%s'\n", 752 aArchitecture == PlatformArchitecture_x86 ? "x86" : "ARM")); 751 { 752 m->bd->architectureType = aArchitecture; 753 LogRel(("Platform architecture set to '%s'\n", Platform::s_platformArchitectureToStr(m->bd->architectureType))); 754 } 753 755 754 756 return hrc; … … 782 784 /* No guest OS type object. Pick some plausible defaults which the 783 785 * host can handle. There's no way to know or validate anything. */ 784 785 /* Note: These are the value we ever had, so default to these. */ 786 enmChipsetType = ChipsetType_PIIX3; 787 enmIommuType = IommuType_None; 788 fRTCUseUTC = FALSE; 789 790 /* The above only holds for x86. */ 791 AssertReturn(m->bd->architectureType == PlatformArchitecture_x86, 792 VBOX_E_NOT_SUPPORTED); 786 switch (m->bd->architectureType) 787 { 788 case PlatformArchitecture_x86: 789 { 790 /* Note: These are the value we ever had, so default to these. */ 791 enmChipsetType = ChipsetType_PIIX3; 792 enmIommuType = IommuType_None; 793 fRTCUseUTC = FALSE; 794 break; 795 } 796 797 case PlatformArchitecture_ARM: 798 { 799 /* Note: These are the value we ever had, so default to these. */ 800 enmChipsetType = ChipsetType_ARMv8Virtual; 801 enmIommuType = IommuType_None; 802 fRTCUseUTC = TRUE; /** @todo BUGBUG Is this correct for ARM? */ 803 break; 804 } 805 806 default: 807 AssertFailed(); 808 break; 809 } 793 810 } 794 811 … … 814 831 #ifdef VBOX_WITH_VIRT_ARMV8 815 832 case PlatformArchitecture_ARM: 816 /** @todo BUGBUG Implement this! */833 hrc = mARM->i_applyDefaults(aOsType); 817 834 break; 818 835 #endif
Note:
See TracChangeset
for help on using the changeset viewer.

