Skip to content

Commit

Permalink
linux-gen: sysinfo: recognize armv9 ISA
Browse files Browse the repository at this point in the history
Add support for recognizing Armv9 cores.

Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
  • Loading branch information
MatiasElo committed Oct 16, 2023
1 parent 2c06e73 commit 6da932b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platform/linux-generic/arch/aarch64/odp_sysinfo_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6da932b

Please sign in to comment.