VirtualBox

Changeset 98929 in vbox for trunk/src


Ignore:
Timestamp:
Mar 13, 2023 11:40:51 AM (23 months ago)
Author:
vboxsync
Message:

ValidationKit: More work to get it running on arm64, bugref:9898

Location:
trunk/src/VBox/ValidationKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/common/utils.py

    r98648 r98929  
    188188                if sArch != 'amd64':
    189189                    sArch = 'x86';
     190        elif sArch in ('arm64', 'ARM64', 'aarch64')
     191            sArch = 'arm64';
    190192        else:
    191193            raise Exception('Unsupported architecture/machine "%s"' % (sArch,));
     
    216218    """
    217219    if sArch in ('x86', 'amd64', 'sparc32', 'sparc64', 's390', 's390x', 'ppc32', 'ppc64', \
    218                'mips32', 'mips64', 'ia64', 'hppa32', 'hppa64', 'arm', 'alpha'):
     220               'mips32', 'mips64', 'ia64', 'hppa32', 'hppa64', 'arm', 'arm64', 'alpha'):
    219221        return True;
    220222    return False;
  • trunk/src/VBox/ValidationKit/testboxscript/TestBoxHelper.cpp

    r98103 r98929  
    5656# include <iprt/x86.h>
    5757# include <iprt/asm-amd64-x86.h>
     58#elif defined(RT_ARCH_ARM) || defined(RT_ARCH_ARM64)
     59# include <iprt/asm-arm.h>
    5860#endif
    5961
     
    671673        return cch > 0 ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;
    672674    }
     675#elif defined(RT_ARCH_ARM) || defined(RT_ARCH_ARM64)
     676    /** @todo There is no way to access MIDR_EL1 from userspace except for parsing the various
     677     * OS dependent ways (/proc/cpuinfo, sysctl, ...). Just fake it for now to get it running. */
     678    int cch = RTPrintf("%#x\n", 1);
     679    return cch > 0 ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;
    673680#endif
    674681    return RTEXITCODE_FAILURE;
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