1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Mapping of DWARF debug register numbers into register names.
5 * Copyright (C) 2010 Matt Fleming <matt@console-pimps.org>
9 #include <dwarf-regs.h>
12 * Generic dwarf analysis helpers
15 #define SH_MAX_REGS 18
16 const char *sh_regs_table
[SH_MAX_REGS
] = {
37 /* Return architecture dependent register string (for kprobe-tracer) */
38 const char *get_arch_regstr(unsigned int n
)
40 return (n
< SH_MAX_REGS
) ? sh_regs_table
[n
] : NULL
;