Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * dwarf-regs-table.h : Mapping of DWARF debug register numbers into
0004  * register names.
0005  *
0006  * Copyright (C) 2013 Cavium, Inc.
0007  *
0008  * This program is free software; you can redistribute it and/or modify
0009  * it under the terms of the GNU General Public License as published by
0010  * the Free Software Foundation; either version 2 of the License, or
0011  * (at your option) any later version.
0012  *
0013  * This program is distributed in the hope that it will be useful,
0014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0016  * GNU General Public License for more details.
0017  *
0018  */
0019 
0020 #ifdef DEFINE_DWARF_REGSTR_TABLE
0021 #undef REG_DWARFNUM_NAME
0022 #define REG_DWARFNUM_NAME(reg, idx) [idx] = "$" #reg
0023 static const char * const mips_regstr_tbl[] = {
0024     "$0", "$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8", "$9",
0025     "$10", "$11", "$12", "$13", "$14", "$15", "$16", "$17", "$18", "$19",
0026     "$20", "$21", "$22", "$23", "$24", "$25", "$26", "$27", "$28", "%29",
0027     "$30", "$31",
0028     REG_DWARFNUM_NAME(hi, 64),
0029     REG_DWARFNUM_NAME(lo, 65),
0030 };
0031 #endif