Skip to content

Commit 754de76

Browse files
author
duke
committedJan 22, 2024
Automatic merge of jdk:master into master
2 parents 8a2b650 + fd37262 commit 754de76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#define RISCV_HWPROBE_EXT_ZBA (1 << 3)
5050
#define RISCV_HWPROBE_EXT_ZBB (1 << 4)
5151
#define RISCV_HWPROBE_EXT_ZBS (1 << 5)
52+
#define RISCV_HWPROBE_EXT_ZFH (1 << 27)
5253

5354
#define RISCV_HWPROBE_KEY_CPUPERF_0 5
5455
#define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0)
@@ -145,6 +146,9 @@ void RiscvHwprobe::add_features_from_query_result() {
145146
if (is_set(RISCV_HWPROBE_KEY_IMA_EXT_0, RISCV_HWPROBE_EXT_ZBS)) {
146147
VM_Version::ext_Zbs.enable_feature();
147148
}
149+
if (is_set(RISCV_HWPROBE_KEY_IMA_EXT_0, RISCV_HWPROBE_EXT_ZFH)) {
150+
VM_Version::ext_Zfh.enable_feature();
151+
}
148152
if (is_valid(RISCV_HWPROBE_KEY_CPUPERF_0)) {
149153
VM_Version::unaligned_access.enable_feature(
150154
query[RISCV_HWPROBE_KEY_CPUPERF_0].value & RISCV_HWPROBE_MISALIGNED_MASK);

0 commit comments

Comments
 (0)
Failed to load comments.