sim-frv.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* This file defines the interface between the FR-V simulator and GDB.
  2. Copyright (C) 2003-2015 Free Software Foundation, Inc.
  3. Contributed by Red Hat.
  4. This file is part of GDB.
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  15. #if !defined (SIM_FRV_H)
  16. #define SIM_FRV_H
  17. #ifdef __cplusplus
  18. extern "C" { // }
  19. #endif
  20. enum sim_frv_regs
  21. {
  22. SIM_FRV_GR0_REGNUM = 0,
  23. SIM_FRV_GR63_REGNUM = 63,
  24. SIM_FRV_FR0_REGNUM = 64,
  25. SIM_FRV_FR63_REGNUM = 127,
  26. SIM_FRV_PC_REGNUM = 128,
  27. /* An FR-V architecture may have up to 4096 special purpose registers
  28. (SPRs). In order to determine a specific constant used to access
  29. a particular SPR, one of the H_SPR_ prefixed offsets defined in
  30. opcodes/frv-desc.h should be added to SIM_FRV_SPR0_REGNUM. So,
  31. for example, the number that GDB uses to fetch the link register
  32. from the simulator is (SIM_FRV_SPR0_REGNUM + H_SPR_LR). */
  33. SIM_FRV_SPR0_REGNUM = 129,
  34. SIM_FRV_SPR4095_REGNUM = SIM_FRV_SPR0_REGNUM + 4095
  35. };
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif