-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
powerpc64: Support outline-atomics for 128-bit atomics
This is currently disabled by default mainly for compatibility with older versions of operating systems (can be enabled by `--cfg portable_atomic_outline_atomics`).
- Loading branch information
Showing
40 changed files
with
1,425 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ cpsid | |
cpsie | ||
CPSR | ||
cpuid | ||
cputable | ||
crand | ||
crandc | ||
cror | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Run-time feature detection on powerpc64 Linux/FreeBSD by parsing ELF auxiliary vectors. | ||
// | ||
// See auxv.rs for details. | ||
|
||
include!("common.rs"); | ||
|
||
#[path = "auxv.rs"] | ||
mod auxv; | ||
use auxv::arch; | ||
|
||
#[cold] | ||
fn _detect(info: &mut CpuInfo) { | ||
let hwcap2 = auxv::getauxval(auxv::AT_HWCAP2); | ||
|
||
// power8 | ||
if hwcap2 & arch::PPC_FEATURE2_ARCH_2_07 != 0 { | ||
info.set(CpuInfo::HAS_QUADWORD_ATOMICS); | ||
} | ||
} |
Oops, something went wrong.