linux-s390-tdesc.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /* Low level support for s390, shared between gdbserver and IPA.
  2. Copyright (C) 2016-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 GDBSERVER_LINUX_S390_TDESC_H
  15. #define GDBSERVER_LINUX_S390_TDESC_H
  16. /* Note: since IPA obviously knows what ABI it's running on (s390 vs s390x),
  17. it's sufficient to pass only the register set here. This, together with
  18. the ABI known at IPA compile time, maps to a tdesc. */
  19. enum s390_linux_tdesc {
  20. S390_TDESC_32,
  21. S390_TDESC_32V1,
  22. S390_TDESC_32V2,
  23. S390_TDESC_64,
  24. S390_TDESC_64V1,
  25. S390_TDESC_64V2,
  26. S390_TDESC_TE,
  27. S390_TDESC_VX,
  28. S390_TDESC_TEVX,
  29. S390_TDESC_GS,
  30. };
  31. #ifdef __s390x__
  32. /* Defined in auto-generated file s390x-linux64.c. */
  33. void init_registers_s390x_linux64 (void);
  34. extern const struct target_desc *tdesc_s390x_linux64;
  35. /* Defined in auto-generated file s390x-linux64v1.c. */
  36. void init_registers_s390x_linux64v1 (void);
  37. extern const struct target_desc *tdesc_s390x_linux64v1;
  38. /* Defined in auto-generated file s390x-linux64v2.c. */
  39. void init_registers_s390x_linux64v2 (void);
  40. extern const struct target_desc *tdesc_s390x_linux64v2;
  41. /* Defined in auto-generated file s390x-te-linux64.c. */
  42. void init_registers_s390x_te_linux64 (void);
  43. extern const struct target_desc *tdesc_s390x_te_linux64;
  44. /* Defined in auto-generated file s390x-vx-linux64.c. */
  45. void init_registers_s390x_vx_linux64 (void);
  46. extern const struct target_desc *tdesc_s390x_vx_linux64;
  47. /* Defined in auto-generated file s390x-tevx-linux64.c. */
  48. void init_registers_s390x_tevx_linux64 (void);
  49. extern const struct target_desc *tdesc_s390x_tevx_linux64;
  50. /* Defined in auto-generated file s390x-gs-linux64.c. */
  51. void init_registers_s390x_gs_linux64 (void);
  52. extern const struct target_desc *tdesc_s390x_gs_linux64;
  53. #endif
  54. #if !defined __s390x__ || !defined IN_PROCESS_AGENT
  55. /* Defined in auto-generated file s390-linux32.c. */
  56. void init_registers_s390_linux32 (void);
  57. extern const struct target_desc *tdesc_s390_linux32;
  58. /* Defined in auto-generated file s390-linux32v1.c. */
  59. void init_registers_s390_linux32v1 (void);
  60. extern const struct target_desc *tdesc_s390_linux32v1;
  61. /* Defined in auto-generated file s390-linux32v2.c. */
  62. void init_registers_s390_linux32v2 (void);
  63. extern const struct target_desc *tdesc_s390_linux32v2;
  64. /* Defined in auto-generated file s390-linux64.c. */
  65. void init_registers_s390_linux64 (void);
  66. extern const struct target_desc *tdesc_s390_linux64;
  67. /* Defined in auto-generated file s390-linux64v1.c. */
  68. void init_registers_s390_linux64v1 (void);
  69. extern const struct target_desc *tdesc_s390_linux64v1;
  70. /* Defined in auto-generated file s390-linux64v2.c. */
  71. void init_registers_s390_linux64v2 (void);
  72. extern const struct target_desc *tdesc_s390_linux64v2;
  73. /* Defined in auto-generated file s390-te-linux64.c. */
  74. void init_registers_s390_te_linux64 (void);
  75. extern const struct target_desc *tdesc_s390_te_linux64;
  76. /* Defined in auto-generated file s390-vx-linux64.c. */
  77. void init_registers_s390_vx_linux64 (void);
  78. extern const struct target_desc *tdesc_s390_vx_linux64;
  79. /* Defined in auto-generated file s390-tevx-linux64.c. */
  80. void init_registers_s390_tevx_linux64 (void);
  81. extern const struct target_desc *tdesc_s390_tevx_linux64;
  82. /* Defined in auto-generated file s390-gs-linux64.c. */
  83. void init_registers_s390_gs_linux64 (void);
  84. extern const struct target_desc *tdesc_s390_gs_linux64;
  85. #endif
  86. #endif /* GDBSERVER_LINUX_S390_TDESC_H */