VirtualBox

Changeset 101068 in vbox


Ignore:
Timestamp:
Sep 8, 2023 2:37:11 PM (13 months ago)
Author:
vboxsync
Message:

Main: More code for ARM. bugref:10384

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/PlatformImpl.cpp

    r101066 r101068  
    704704    uninitArchitecture();
    705705
    706     switch (m->bd->architectureType)
     706    switch (aArchitecture)
    707707    {
    708708        case PlatformArchitecture_x86:
     
    749749
    750750    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    }
    753755
    754756    return hrc;
     
    782784        /* No guest OS type object. Pick some plausible defaults which the
    783785         * 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        }
    793810    }
    794811
     
    814831#ifdef VBOX_WITH_VIRT_ARMV8
    815832        case PlatformArchitecture_ARM:
    816             /** @todo BUGBUG Implement this! */
     833            hrc = mARM->i_applyDefaults(aOsType);
    817834            break;
    818835#endif
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