summaryrefslogtreecommitdiff
path: root/cpu_features.h
diff options
context:
space:
mode:
authorAlex Chiang <achiang@sw04.internal.sifive.com>2023-04-27 01:40:15 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2023-05-12 16:57:32 +0200
commitc3cdf434f32e3f158b8caedd45113384bf4aed14 (patch)
tree151fb90d14cfa780ade10c36563085c89f4ea5ed /cpu_features.h
parent9087c75f8d9a35c7d7801440c23deb555e77714e (diff)
downloadProject-Tick-c3cdf434f32e3f158b8caedd45113384bf4aed14.tar.gz
Project-Tick-c3cdf434f32e3f158b8caedd45113384bf4aed14.zip
Add supporting RISC-V cross compilation workflows
Add RISC-V cross-compilation test Enable RVV support at compile time
Diffstat (limited to 'cpu_features.h')
-rw-r--r--cpu_features.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu_features.h b/cpu_features.h
index 2e1a888e38..647d027f6e 100644
--- a/cpu_features.h
+++ b/cpu_features.h
@@ -18,6 +18,8 @@
# include "arch/power/power_features.h"
#elif defined(S390_FEATURES)
# include "arch/s390/s390_features.h"
+#elif defined(RISCV_FEATURES)
+# include "arch/riscv/riscv_features.h"
#endif
struct cpu_features {
@@ -29,6 +31,8 @@ struct cpu_features {
struct power_cpu_features power;
#elif defined(S390_FEATURES)
struct s390_cpu_features s390;
+#elif defined(RISCV_FEATURES)
+ struct riscv_cpu_features riscv;
#else
char empty;
#endif