1 // SPDX-License-Identifier: GPL-2.0
6 #include "../../util/unwind.h"
7 #include "util/debug.h"
9 int libunwind__arch_reg_id(int regnum
)
12 case UNW_MIPS_R1
... UNW_MIPS_R25
:
13 return regnum
- UNW_MIPS_R1
+ PERF_REG_MIPS_R1
;
14 case UNW_MIPS_R28
... UNW_MIPS_R31
:
15 return regnum
- UNW_MIPS_R28
+ PERF_REG_MIPS_R28
;
17 return PERF_REG_MIPS_PC
;
19 pr_err("unwind: invalid reg id %d\n", regnum
);