| ... | ... | @@ -988,7 +988,7 @@ const StackIterator = union(enum) { |
| 988 | 988 | // On RISC-V the frame pointer points to the top of the saved register |
| 989 | 989 | // area, on pretty much every other architecture it points to the stack |
| 990 | 990 | // slot where the previous frame pointer is saved. |
| 991 | | if (native_arch.isRISCV()) break :off -2 * @sizeOf(usize); |
| 991 | if (native_arch.isLoongArch() or native_arch.isRISCV()) break :off -2 * @sizeOf(usize); |
| 992 | 992 | // On SPARC the previous frame pointer is stored at 14 slots past %fp+BIAS. |
| 993 | 993 | if (native_arch.isSPARC()) break :off 14 * @sizeOf(usize); |
| 994 | 994 | break :off 0; |
| ... | ... | @@ -996,7 +996,7 @@ const StackIterator = union(enum) { |
| 996 | 996 | |
| 997 | 997 | /// Offset of the saved return address wrt the frame pointer. |
| 998 | 998 | const ra_offset = off: { |
| 999 | | if (native_arch.isRISCV()) break :off -1 * @sizeOf(usize); |
| 999 | if (native_arch.isLoongArch() or native_arch.isRISCV()) break :off -1 * @sizeOf(usize); |
| 1000 | 1000 | if (native_arch.isSPARC()) break :off 15 * @sizeOf(usize); |
| 1001 | 1001 | if (native_arch.isPowerPC64()) break :off 2 * @sizeOf(usize); |
| 1002 | 1002 | // On s390x, r14 is the link register and we need to grab it from its customary slot in the |