First will need some way to check for processor support. On Windows, we can use IsProcessorFeaturePresent.
On Linux, we can read ID_AA64ISAR0_EL1 if getauxval(AT_HWCAP) & HWCAP_CPUID, although there's little reason to do this, since we can also read the feature flags without ASM here: https://docs.kernel.org/arch/arm64/elf_hwcaps.html
Would be easier if this architecture allowed reading feature bits in userland...
First will need some way to check for processor support. On Windows, we can use IsProcessorFeaturePresent.
On Linux, we can read
ID_AA64ISAR0_EL1
ifgetauxval(AT_HWCAP) & HWCAP_CPUID
, although there's little reason to do this, since we can also read the feature flags without ASM here: https://docs.kernel.org/arch/arm64/elf_hwcaps.htmlWould be easier if this architecture allowed reading feature bits in userland...