Skip to content

Commit bd71133

Browse files
japaricgnzlbg
authored andcommitted
acle/hints: make sevl truly available on aarch64
addresses #557 (comment)
1 parent c8a6cc8 commit bd71133

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/core_arch/src/acle/hints.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ pub unsafe fn __sev() {
4646
/// instruction. In a multiprocessor system, it is not required to affect the
4747
/// other processors.
4848
// LLVM says "instruction requires: armv8"
49-
#[cfg(target_feature = "v8")]
49+
#[cfg(any(
50+
target_feature = "v8", // 32-bit ARMv8
51+
target_arch = "aarch64", // AArch64
52+
))]
5053
#[inline(always)]
5154
pub unsafe fn __sevl() {
5255
hint(HINT_SEVL);

0 commit comments

Comments
 (0)