@@ -10,13 +10,13 @@ use super::super::riscv::imply_features;
10
10
use super :: auxvec;
11
11
use crate :: detect:: { Feature , bit, cache} ;
12
12
13
- // See <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/prctl.h?h=v6.15 >
13
+ // See <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/prctl.h?h=v6.16 >
14
14
// for runtime status query constants.
15
15
const PR_RISCV_V_GET_CONTROL : libc:: c_int = 70 ;
16
16
const PR_RISCV_V_VSTATE_CTRL_ON : libc:: c_int = 2 ;
17
17
const PR_RISCV_V_VSTATE_CTRL_CUR_MASK : libc:: c_int = 3 ;
18
18
19
- // See <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/riscv/include/uapi/asm/hwprobe.h?h=v6.15 >
19
+ // See <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/riscv/include/uapi/asm/hwprobe.h?h=v6.16 >
20
20
// for riscv_hwprobe struct and hardware probing constants.
21
21
22
22
#[ repr( C ) ]
@@ -98,6 +98,7 @@ const RISCV_HWPROBE_EXT_ZVFBFWMA: u64 = 1 << 54;
98
98
const RISCV_HWPROBE_EXT_ZICBOM : u64 = 1 << 55 ;
99
99
const RISCV_HWPROBE_EXT_ZAAMO : u64 = 1 << 56 ;
100
100
const RISCV_HWPROBE_EXT_ZALRSC : u64 = 1 << 57 ;
101
+ const RISCV_HWPROBE_EXT_ZABHA : u64 = 1 << 58 ;
101
102
102
103
const RISCV_HWPROBE_KEY_CPUPERF_0 : i64 = 5 ;
103
104
const RISCV_HWPROBE_MISALIGNED_FAST : u64 = 3 ;
@@ -138,7 +139,7 @@ pub(crate) fn detect_features() -> cache::Initializer {
138
139
// Use auxiliary vector to enable single-letter ISA extensions.
139
140
// The values are part of the platform-specific [asm/hwcap.h][hwcap]
140
141
//
141
- // [hwcap]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/riscv/include/uapi/asm/hwcap.h?h=v6.15
142
+ // [hwcap]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/riscv/include/uapi/asm/hwcap.h?h=v6.16
142
143
let auxv = auxvec:: auxv ( ) . expect ( "read auxvec" ) ; // should not fail on RISC-V platform
143
144
let mut has_i = bit:: test ( auxv. hwcap , ( b'i' - b'a' ) . into ( ) ) ;
144
145
#[ allow( clippy:: eq_op) ]
@@ -233,6 +234,7 @@ pub(crate) fn detect_features() -> cache::Initializer {
233
234
enable_feature ( Feature :: zalrsc, test ( RISCV_HWPROBE_EXT_ZALRSC ) ) ;
234
235
enable_feature ( Feature :: zaamo, test ( RISCV_HWPROBE_EXT_ZAAMO ) ) ;
235
236
enable_feature ( Feature :: zawrs, test ( RISCV_HWPROBE_EXT_ZAWRS ) ) ;
237
+ enable_feature ( Feature :: zabha, test ( RISCV_HWPROBE_EXT_ZABHA ) ) ;
236
238
enable_feature ( Feature :: zacas, test ( RISCV_HWPROBE_EXT_ZACAS ) ) ;
237
239
enable_feature ( Feature :: ztso, test ( RISCV_HWPROBE_EXT_ZTSO ) ) ;
238
240
0 commit comments