aarch64-fbsd-tdep.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* FreeBSD/aarch64 target support, prototypes.
  2. Copyright (C) 2017-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 AARCH64_FBSD_TDEP_H
  15. #define AARCH64_FBSD_TDEP_H
  16. #include "regset.h"
  17. /* The general-purpose regset consists of 30 X registers, plus LR, SP,
  18. ELR, and SPSR registers. SPSR is 32 bits but the structure is
  19. padded to 64 bit alignment. */
  20. #define AARCH64_FBSD_SIZEOF_GREGSET (34 * X_REGISTER_SIZE)
  21. /* The fp regset consists of 32 V registers, plus FPSR and FPCR which
  22. are 4 bytes wide each, and the whole structure is padded to 128 bit
  23. alignment. */
  24. #define AARCH64_FBSD_SIZEOF_FPREGSET (33 * V_REGISTER_SIZE)
  25. extern const struct regset aarch64_fbsd_gregset;
  26. extern const struct regset aarch64_fbsd_fpregset;
  27. #endif /* AARCH64_FBSD_TDEP_H */