mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
std.debug.Dwarf.SelfUnwinder: add an s390x check missed in 95bdb0c1c6
This commit is contained in:
parent
fdd109420d
commit
081d6d12a1
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue