From 081d6d12a14d99e2e5d892df1a8e9697700c4644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 7 Oct 2025 00:14:41 +0200 Subject: [PATCH] std.debug.Dwarf.SelfUnwinder: add an s390x check missed in 95bdb0c1c65c128923ffac3f4be6b4619eb4a54b --- lib/std/debug/Dwarf/SelfUnwinder.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/std/debug/Dwarf/SelfUnwinder.zig b/lib/std/debug/Dwarf/SelfUnwinder.zig index 3a7b70b037..abd648e65c 100644 --- a/lib/std/debug/Dwarf/SelfUnwinder.zig +++ b/lib/std/debug/Dwarf/SelfUnwinder.zig @@ -221,8 +221,10 @@ fn nextInner(unwinder: *SelfUnwinder, gpa: Allocator, cache_entry: *const CacheE } = switch (rule) { .default => val: { // The default rule is typically equivalent to `.undefined`, but ABIs may override it. - if (builtin.cpu.arch.isAARCH64() and register >= 19 and register <= 28) { - break :val .same; + switch (builtin.target.cpu.arch) { + .aarch64, .aarch64_be => if (register >= 19 and register <= 28) break :val .same, + .s390x => if (register >= 6 and register <= 15) break :val .same, + else => {}, } break :val .undefined; },