Changeset 101177 in vbox
- Timestamp:
- Sep 19, 2023 4:59:11 PM (16 months ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestOSTypeImpl.h
r101171 r101177 56 56 const Utf8Str &i_description() const { return mDescription; } 57 57 bool i_is64Bit() const { return !!(mOSHint & VBOXOSHINT_64BIT); } 58 PlatformArchitecture_T i_platformArchitecture() const; 58 59 bool i_recommendedIOAPIC() const { return !!(mOSHint & VBOXOSHINT_IOAPIC); } 59 60 bool i_recommendedX2APIC() const { return !!(mOSHint & VBOXOSHINT_X2APIC); } -
trunk/src/VBox/Main/src-server/GuestOSTypeImpl.cpp
r101171 r101177 208 208 } 209 209 210 HRESULT GuestOSType::getPlatformArchitecture(PlatformArchitecture_T *aPlatformArchitecture) 210 PlatformArchitecture_T GuestOSType::i_platformArchitecture() const 211 211 { 212 212 /* mOSType constant during life time, no need to lock */ … … 214 214 if ( osTypePlatformArchitectureMasked & VBOXOSTYPE_x86 215 215 || osTypePlatformArchitectureMasked & VBOXOSTYPE_x64) 216 *aPlatformArchitecture =PlatformArchitecture_x86;216 return PlatformArchitecture_x86; 217 217 else if ( osTypePlatformArchitectureMasked & VBOXOSTYPE_arm32 218 218 || osTypePlatformArchitectureMasked & VBOXOSTYPE_arm64) 219 *aPlatformArchitecture = PlatformArchitecture_ARM; 220 else 221 { 222 AssertFailed(); /* Something is fishy in the OSTYPE spec. */ 223 *aPlatformArchitecture = PlatformArchitecture_None; 224 } 225 219 return PlatformArchitecture_ARM; 220 221 /* Will happen when called before being properly initialized(). */ 222 return PlatformArchitecture_None; 223 } 224 225 HRESULT GuestOSType::getPlatformArchitecture(PlatformArchitecture_T *aPlatformArchitecture) 226 { 227 *aPlatformArchitecture = i_platformArchitecture(); 226 228 return S_OK; 227 229 }
Note:
See TracChangeset
for help on using the changeset viewer.