aboutsummaryrefslogtreecommitdiff
path: root/lib/std/start.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-07-30 02:56:29 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2024-08-01 20:58:08 +0200
commita9c78185120fd1dd731c00f1bd961f0b2e2b2c83 (patch)
tree212914525846c0b7dfd3a04f4fae1021216c0ae8 /lib/std/start.zig
parent5cd92a6b51f37d91a5063c5ee36167e96f030526 (diff)
downloadzig-a9c78185120fd1dd731c00f1bd961f0b2e2b2c83.tar.gz
zig-a9c78185120fd1dd731c00f1bd961f0b2e2b2c83.zip
start: Fix an isARM() check to use isArmOrThumb() instead.
Diffstat (limited to 'lib/std/start.zig')
-rw-r--r--lib/std/start.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig
index fd8661660b..c975c888af 100644
--- a/lib/std/start.zig
+++ b/lib/std/start.zig
@@ -495,7 +495,7 @@ fn posixCallMainAndExit(argc_argv_ptr: [*]usize) callconv(.C) noreturn {
// ARMv6 targets (and earlier) have no support for TLS in hardware.
// FIXME: Elide the check for targets >= ARMv7 when the target feature API
// becomes less verbose (and more usable).
- if (comptime native_arch.isARM()) {
+ if (comptime native_arch.isArmOrThumb()) {
if (at_hwcap & std.os.linux.HWCAP.TLS == 0) {
// FIXME: Make __aeabi_read_tp call the kernel helper kuser_get_tls
// For the time being use a simple trap instead of a @panic call to