summaryrefslogtreecommitdiff
path: root/runtime/arch/instruction_set_features.h
diff options
context:
space:
mode:
author Lifang Xia <lifang_xia@linux.alibaba.com> 2023-01-25 15:55:55 +0000
committer Ulya Trofimovich <skvadrik@google.com> 2023-02-10 11:45:20 +0000
commit910c95fe2dd57bc0d70c78bdc0c6cdf4d21ce700 (patch)
treef075185c2f65183a6f579c759348260d7043f6a2 /runtime/arch/instruction_set_features.h
parentc137762c96cb8329ea95e1dda27b0a2d9c1f3228 (diff)
riscv64: define instruction set features.
At the moment we assume the basic extension set G (IMAFD) plus the C extension (compression). V extension (vector) is also defined, but not assumed by default. Test: lunch aosp_riscv64-userdebug && m dist Co-authored-by: Ulya Trafimovich <skvadrik@google.com> Change-Id: Ie3e7c1d5ad8e720d8bcab28a82fc602005efbb7f
Diffstat (limited to 'runtime/arch/instruction_set_features.h')
-rw-r--r--runtime/arch/instruction_set_features.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/arch/instruction_set_features.h b/runtime/arch/instruction_set_features.h
index cee8c5d42f..1f41b39023 100644
--- a/runtime/arch/instruction_set_features.h
+++ b/runtime/arch/instruction_set_features.h
@@ -28,6 +28,7 @@ namespace art {
class ArmInstructionSetFeatures;
class Arm64InstructionSetFeatures;
+class Riscv64InstructionSetFeatures;
class X86InstructionSetFeatures;
class X86_64InstructionSetFeatures;
@@ -121,6 +122,9 @@ class InstructionSetFeatures {
// Down cast this Arm64InstructionFeatures.
const Arm64InstructionSetFeatures* AsArm64InstructionSetFeatures() const;
+ // Down cast this Riscv64InstructionFeatures.
+ const Riscv64InstructionSetFeatures* AsRiscv64InstructionSetFeatures() const;
+
// Down cast this X86InstructionFeatures.
const X86InstructionSetFeatures* AsX86InstructionSetFeatures() const;