xref: /linux/tools/perf/arch/loongarch/include/dwarf-regs-table.h (revision ae22a94997b8a03dcb3c922857c203246711f9d4)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * dwarf-regs-table.h : Mapping of DWARF debug register numbers into
4  * register names.
5  *
6  * Copyright (C) 2020-2023 Loongson Technology Corporation Limited
7  */
8 
9 #ifdef DEFINE_DWARF_REGSTR_TABLE
10 static const char * const loongarch_regstr_tbl[] = {
11 	"%r0", "%r1", "%r2", "%r3", "%r4", "%r5", "%r6", "%r7",
12 	"%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14", "%r15",
13 	"%r16", "%r17", "%r18", "%r19", "%r20", "%r21", "%r22", "%r23",
14 	"%r24", "%r25", "%r26", "%r27", "%r28", "%r29", "%r30", "%r31",
15 };
16 #endif
17