17f2ac410Schristos /* FreeBSD/riscv target support, prototypes. 27f2ac410Schristos 3*6881a400Schristos Copyright (C) 2018-2023 Free Software Foundation, Inc. 47f2ac410Schristos 57f2ac410Schristos This file is part of GDB. 67f2ac410Schristos 77f2ac410Schristos This program is free software; you can redistribute it and/or modify 87f2ac410Schristos it under the terms of the GNU General Public License as published by 97f2ac410Schristos the Free Software Foundation; either version 3 of the License, or 107f2ac410Schristos (at your option) any later version. 117f2ac410Schristos 127f2ac410Schristos This program is distributed in the hope that it will be useful, 137f2ac410Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 147f2ac410Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 157f2ac410Schristos GNU General Public License for more details. 167f2ac410Schristos 177f2ac410Schristos You should have received a copy of the GNU General Public License 187f2ac410Schristos along with this program. If not, see <http://www.gnu.org/licenses/>. */ 197f2ac410Schristos 207f2ac410Schristos #ifndef RISCV_FBSD_TDEP_H 217f2ac410Schristos #define RISCV_FBSD_TDEP_H 227f2ac410Schristos 237f2ac410Schristos #include "regset.h" 247f2ac410Schristos 257f2ac410Schristos /* The general-purpose regset consists of 31 X registers, EPC, and 267f2ac410Schristos SSTATUS. */ 277f2ac410Schristos #define RISCV_FBSD_NUM_GREGS 33 287f2ac410Schristos 297f2ac410Schristos /* The fp regset always consists of 32 128-bit registers, plus a 307f2ac410Schristos 64-bit CSR_FCSR. If 'Q' is not supported, only the low 64-bits of 317f2ac410Schristos each floating point register are valid. If 'D' is not supported, 327f2ac410Schristos only the low 32-bits of each floating point register are valid. */ 337f2ac410Schristos #define RISCV_FBSD_SIZEOF_FPREGSET (32 * 16 + 8) 347f2ac410Schristos 357f2ac410Schristos extern const struct regset riscv_fbsd_gregset; 367f2ac410Schristos extern const struct regset riscv_fbsd_fpregset; 377f2ac410Schristos 387f2ac410Schristos #endif /* RISCV_FBSD_TDEP_H */ 39