Skip to content

Commit

Permalink
detect: Support run-time detection of FEAT_LSE on aarch64 NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Feb 8, 2023
1 parent 1831820 commit 000b00e
Show file tree
Hide file tree
Showing 11 changed files with 478 additions and 9 deletions.
15 changes: 15 additions & 0 deletions .github/.cspell/project-dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@ adcs
addc
adde
armasm
armreg
autogen
auxv
auxvec
backoff
binutils
bitops
bytecount
callthru
casp
cbnz
cdsg
cfgs
cinc
cirruslabs
clidr
cmpd
cmpld
cmpxchg
Expand All @@ -24,6 +27,7 @@ cpsid
cpsie
CPSR
cpuid
cpus
crand
crandc
cror
Expand Down Expand Up @@ -53,6 +57,7 @@ isync
ldaxp
ldxp
libcalls
libpthread
libtcl
libtest
lqarx
Expand All @@ -63,13 +68,20 @@ memcpy
metavar
mfence
mgba
midr
miscompilation
mmfr
moreutils
mpidr
mstatus
mvfr
NCPU
NCPUONLINE
newtype
nographic
nostdinc
NPROCESSORS
ONLN
opensbi
osxsave
prefetcher
Expand All @@ -79,6 +91,7 @@ qword
RAII
rclass
reentrancy
revidr
sbcs
seqlock
sete
Expand All @@ -101,6 +114,7 @@ subc
subcmd
subfe
syscall
sysctlbyname
systemsim
tagme
Tlink
Expand All @@ -121,3 +135,4 @@ xgetbv
xmmword
xsave
xsub
zeroable
8 changes: 7 additions & 1 deletion src/imp/atomic128/aarch64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,17 @@ include!("macros.rs");
path = "detect/aarch64_linux_getauxval.rs"
)]
#[cfg_attr(target_os = "windows", path = "detect/aarch64_windows.rs")]
#[cfg_attr(any(target_os = "freebsd", target_os = "openbsd"), path = "detect/aarch64_aa64reg.rs")]
#[cfg_attr(
any(target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"),
path = "detect/aarch64_aa64reg.rs"
)]
#[cfg_attr(
not(any(
all(target_os = "linux", target_env = "gnu"),
target_os = "android",
target_os = "windows",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
)),
path = "detect/aarch64_std.rs"
Expand Down Expand Up @@ -304,6 +308,7 @@ unsafe fn atomic_compare_exchange(
target_os = "android",
target_os = "windows",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd",
)
)))]
Expand All @@ -319,6 +324,7 @@ unsafe fn atomic_compare_exchange(
target_os = "android",
target_os = "windows",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd",
)
))]
Expand Down
Loading

0 comments on commit 000b00e

Please sign in to comment.