| ... | @@ -221,8 +221,10 @@ fn nextInner(unwinder: *SelfUnwinder, gpa: Allocator, cache_entry: *const CacheE | ... | @@ -221,8 +221,10 @@ fn nextInner(unwinder: *SelfUnwinder, gpa: Allocator, cache_entry: *const CacheE |
| 221 | } = switch (rule) { | 221 | } = switch (rule) { |
| 222 | .default => val: { | 222 | .default => val: { |
| 223 | // The default rule is typically equivalent to `.undefined`, but ABIs may override it. | 223 | // The default rule is typically equivalent to `.undefined`, but ABIs may override it. |
| 224 | if (builtin.cpu.arch.isAARCH64() and register >= 19 and register <= 28) { | 224 | switch (builtin.target.cpu.arch) { |
| 225 | break :val .same; | 225 | .aarch64, .aarch64_be => if (register >= 19 and register <= 28) break :val .same, |
| | 226 | .s390x => if (register >= 6 and register <= 15) break :val .same, |
| | 227 | else => {}, |
| 226 | } | 228 | } |
| 227 | break :val .undefined; | 229 | break :val .undefined; |
| 228 | }, | 230 | }, |