Skip to content

Commit

Permalink
acle/hints: make sevl truly available on aarch64
Browse files Browse the repository at this point in the history
addresses #557 (comment)
  • Loading branch information
japaric authored and gnzlbg committed Feb 18, 2019
1 parent c8a6cc8 commit bd71133
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/core_arch/src/acle/hints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ pub unsafe fn __sev() {
/// instruction. In a multiprocessor system, it is not required to affect the
/// other processors.
// LLVM says "instruction requires: armv8"
#[cfg(target_feature = "v8")]
#[cfg(any(
target_feature = "v8", // 32-bit ARMv8
target_arch = "aarch64", // AArch64
))]
#[inline(always)]
pub unsafe fn __sevl() {
hint(HINT_SEVL);
Expand Down

0 comments on commit bd71133

Please sign in to comment.