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 Jan 30, 2023
1 parent 9f8ec91 commit 4ce7dad
Show file tree
Hide file tree
Showing 11 changed files with 476 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 @@ -4,19 +4,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 @@ -25,6 +28,7 @@ cpsid
cpsie
CPSR
cpuid
cpus
crand
crandc
cror
Expand Down Expand Up @@ -54,6 +58,7 @@ isync
ldaxp
ldxp
libcalls
libpthread
libtcl
libtest
lqarx
Expand All @@ -64,14 +69,21 @@ memcpy
metavar
mfence
mgba
midr
miscompilation
mmfr
moreutils
mpidr
mstatus
mvfr
nand
NCPU
NCPUONLINE
newtype
nographic
nostdinc
NPROCESSORS
ONLN
opensbi
osxsave
prefetcher
Expand All @@ -81,6 +93,7 @@ qword
RAII
rclass
reentrancy
revidr
sbcs
semihosting
seqcst
Expand All @@ -105,6 +118,7 @@ subc
subcmd
subfe
syscall
sysctlbyname
systemsim
tagme
Tlink
Expand All @@ -126,3 +140,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,12 +53,16 @@ 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 = "windows",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
)),
path = "detect/aarch64_std.rs"
Expand Down Expand Up @@ -301,6 +305,7 @@ unsafe fn atomic_compare_exchange(
target_os = "android",
target_os = "windows",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd",
)
)))]
Expand All @@ -316,6 +321,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 4ce7dad

Please sign in to comment.