diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/aarch64/cpu-features.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/aarch64/cpu-features.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/cpu-features.h b/sysdeps/unix/sysv/linux/aarch64/cpu-features.h index 391165a99c..0742ac1409 100644 --- a/sysdeps/unix/sysv/linux/aarch64/cpu-features.h +++ b/sysdeps/unix/sysv/linux/aarch64/cpu-features.h @@ -68,6 +68,11 @@ #define IS_A64FX(midr) (MIDR_IMPLEMENTOR(midr) == 'F' \ && MIDR_PARTNUM(midr) == 0x001) +/* TODO: This is based on the Morello Fast Model. + Will MIDR_IMPLEMENTOR change to 'A'? */ +#define IS_MORELLO(midr) (MIDR_IMPLEMENTOR(midr) == 0x3f \ + && MIDR_PARTNUM(midr) == 0x412) + struct cpu_features { uint64_t midr_el1; @@ -76,6 +81,7 @@ struct cpu_features /* Currently, the GLIBC memory tagging tunable only defines 8 bits. */ uint8_t mte_state; bool sve; + bool morello; }; #endif /* _CPU_FEATURES_AARCH64_H */ |