Skip to content

Commit b4b76b6

Browse files
committed
libunwind: Remove UNW_ARM64_ECSP
Stop treating the trusted stack pointer as a register because it is unnecessary and some architectures like RISC-V do not in fact store it in a dedicated register.
1 parent b9eaf45 commit b4b76b6

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

libunwind/include/libunwind.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,10 +679,6 @@ enum {
679679
UNW_ARM64_CLR = 228,
680680
UNW_ARM64_C31 = 229,
681681
UNW_ARM64_CSP = 229,
682-
// Use 240 for ECSP (executive stack pointer). ECSP is not a real DWARF
683-
// register, but we need it to implement c18n-aware unwinding. We pick 240
684-
// because it is far enough away from the range of reserved registers on Arm.
685-
UNW_ARM64_ECSP = 240,
686682
};
687683

688684
// 32-bit ARM registers. Numbers match DWARF for ARM spec #3.1 Table 1.

libunwind/src/Registers.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2206,8 +2206,6 @@ inline const char *Registers_arm64::getRegisterName(int regNum) {
22062206
return "clr";
22072207
case UNW_ARM64_C31:
22082208
return "csp";
2209-
case UNW_ARM64_ECSP:
2210-
return "ecsp";
22112209
default:
22122210
return "unknown register";
22132211
}

0 commit comments

Comments
 (0)