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