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