m32r-tdep.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Target-dependent code for Renesas M32R, for GDB.
  2. Copyright (C) 2004-2022 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. #include "gdbarch.h"
  17. struct m32r_gdbarch_tdep : gdbarch_tdep
  18. {
  19. /* gdbarch target dependent data here. Currently unused for M32R. */
  20. };
  21. /* m32r register names. */
  22. enum m32r_regnum
  23. {
  24. R0_REGNUM = 0,
  25. R3_REGNUM = 3,
  26. M32R_FP_REGNUM = 13,
  27. LR_REGNUM = 14,
  28. M32R_SP_REGNUM = 15,
  29. PSW_REGNUM = 16,
  30. CBR_REGNUM = 17,
  31. SPU_REGNUM = 18,
  32. SPI_REGNUM = 19,
  33. M32R_PC_REGNUM = 21,
  34. /* m32r calling convention. */
  35. ARG1_REGNUM = R0_REGNUM,
  36. ARGN_REGNUM = R3_REGNUM,
  37. RET1_REGNUM = R0_REGNUM,
  38. };
  39. #define M32R_NUM_REGS 25
  40. #endif /* m32r-tdep.h */