From 71d0df8f1c840d8d76ae7440dc04a9fc0137bc9f Mon Sep 17 00:00:00 2001 From: Matias Elo Date: Fri, 13 Oct 2023 15:04:43 +0300 Subject: [PATCH] linux-gen: sysinfo: recognize armv9 ISA Add support for recognizing Armv9 cores. Signed-off-by: Matias Elo --- platform/linux-generic/arch/aarch64/odp_sysinfo_parse.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/linux-generic/arch/aarch64/odp_sysinfo_parse.c b/platform/linux-generic/arch/aarch64/odp_sysinfo_parse.c index 19c35f98baf..890004afcd1 100644 --- a/platform/linux-generic/arch/aarch64/odp_sysinfo_parse.c +++ b/platform/linux-generic/arch/aarch64/odp_sysinfo_parse.c @@ -233,6 +233,11 @@ static odp_cpu_arch_arm_t arm_isa_version(void) #endif } + if (__ARM_ARCH == 9) { + /* v9.0 or higher */ + return ODP_CPU_ARCH_ARMV9_0; + } + if (__ARM_ARCH >= 800) { /* ACLE 2018 defines that from v8.1 onwards the value includes * the minor version number: __ARM_ARCH = X * 100 + Y