Skip to content

Commit

Permalink
8327794: RISC-V: enable extension features based on impid (Rivos spec…
Browse files Browse the repository at this point in the history
…ific change)

Reviewed-by: rehn, luhenry, gli, tonyp
  • Loading branch information
Hamlin Li committed Mar 12, 2024
1 parent cfd9209 commit 0776fff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hotspot/os_cpu/linux_riscv/vm_version_linux_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,11 @@ void VM_Version::rivos_features() {

ext_Zfh.enable_feature();

ext_Zacas.enable_feature();
ext_Zicboz.enable_feature();
ext_Zicsr.enable_feature();
ext_Zifencei.enable_feature();
ext_Zic64b.enable_feature();
ext_Ztso.enable_feature();
ext_Zihintpause.enable_feature();

ext_Zvfh.enable_feature();

Expand All @@ -259,4 +257,8 @@ void VM_Version::rivos_features() {

// Features dependent on march/mimpid.
// I.e. march.value() and mimplid.value()
if (mimpid.value() > 0x100) {
ext_Zacas.enable_feature();
ext_Zihintpause.enable_feature();
}
}

1 comment on commit 0776fff

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.