riscv-fbsd-tdep.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* FreeBSD/riscv target support, prototypes.
  2. Copyright (C) 2018-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 RISCV_FBSD_TDEP_H
  15. #define RISCV_FBSD_TDEP_H
  16. #include "regset.h"
  17. /* The general-purpose regset consists of 31 X registers, EPC, and
  18. SSTATUS. */
  19. #define RISCV_FBSD_NUM_GREGS 33
  20. /* The fp regset always consists of 32 128-bit registers, plus a
  21. 64-bit CSR_FCSR. If 'Q' is not supported, only the low 64-bits of
  22. each floating point register are valid. If 'D' is not supported,
  23. only the low 32-bits of each floating point register are valid. */
  24. #define RISCV_FBSD_SIZEOF_FPREGSET (32 * 16 + 8)
  25. extern const struct regset riscv_fbsd_gregset;
  26. extern const struct regset riscv_fbsd_fpregset;
  27. #endif /* RISCV_FBSD_TDEP_H */