gdb/m32r-tdep.h - gdb

Data types defined

Macros defined

Source code

  1. /* Target-dependent code for Renesas M32R, for GDB.

  2.    Copyright (C) 2004-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 3 of the License, or
  7.    (at your option) any later version.

  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.    GNU General Public License for more details.

  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  14. #ifndef M32R_TDEP_H
  15. #define M32R_TDEP_H

  16. struct gdbarch_tdep
  17. {
  18.   /* gdbarch target dependent data here.  Currently unused for M32R.  */
  19. };

  20. /* m32r register names.  */

  21. enum m32r_regnum
  22. {
  23.   R0_REGNUM = 0,
  24.   R3_REGNUM = 3,
  25.   M32R_FP_REGNUM = 13,
  26.   LR_REGNUM = 14,
  27.   M32R_SP_REGNUM = 15,
  28.   PSW_REGNUM = 16,
  29.   CBR_REGNUM = 17,
  30.   SPU_REGNUM = 18,
  31.   SPI_REGNUM = 19,
  32.   M32R_PC_REGNUM = 21,
  33.   /* m32r calling convention.  */
  34.   ARG1_REGNUM = R0_REGNUM,
  35.   ARGN_REGNUM = R3_REGNUM,
  36.   RET1_REGNUM = R0_REGNUM,
  37. };

  38. #define M32R_NUM_REGS 25

  39. #endif /* m32r-tdep.h */