Skip to content

Commit

Permalink
acle/hints: most hints require 'v6' rather than 'v6k'
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 2c8c8f0 commit 23e51e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/core_arch/src/acle/hints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/// low-power state until one of a number of asynchronous events occurs.
// Section 10.1 of ACLE says that the supported arches are: 8, 6K, 6-M
// LLVM says "instruction requires: armv6k"
#[cfg(any(target_feature = "v6k", target_arch = "aarch64"))]
#[cfg(any(target_feature = "v6", target_arch = "aarch64"))]
#[inline(always)]
pub unsafe fn __wfi() {
hint(HINT_WFI);
Expand All @@ -22,7 +22,7 @@ pub unsafe fn __wfi() {
/// another processor.
// Section 10.1 of ACLE says that the supported arches are: 8, 6K, 6-M
// LLVM says "instruction requires: armv6k"
#[cfg(any(target_feature = "v6k", target_arch = "aarch64"))]
#[cfg(any(target_feature = "v6", target_arch = "aarch64"))]
#[inline(always)]
pub unsafe fn __wfe() {
hint(HINT_WFE);
Expand All @@ -34,7 +34,7 @@ pub unsafe fn __wfe() {
/// system. It is a NOP on a uniprocessor system.
// Section 10.1 of ACLE says that the supported arches are: 8, 6K, 6-M, 7-M
// LLVM says "instruction requires: armv6k"
#[cfg(any(target_feature = "v6k", target_arch = "aarch64"))]
#[cfg(any(target_feature = "v6", target_arch = "aarch64"))]
#[inline(always)]
pub unsafe fn __sev() {
hint(HINT_SEV);
Expand All @@ -59,7 +59,7 @@ pub unsafe fn __sevl() {
/// improve overall system performance.
// Section 10.1 of ACLE says that the supported arches are: 8, 6K, 6-M
// LLVM says "instruction requires: armv6k"
#[cfg(any(target_feature = "v6k", target_arch = "aarch64"))]
#[cfg(any(target_feature = "v6", target_arch = "aarch64"))]
#[inline(always)]
pub unsafe fn __yield() {
hint(HINT_YIELD);
Expand Down

0 comments on commit 23e51e4

Please sign in to comment.