1*6881a400Schristos /* NetBSD/riscv target support, prototypes. 2*6881a400Schristos 3*6881a400Schristos Copyright (C) 2018-2020 Free Software Foundation, Inc. 4*6881a400Schristos 5*6881a400Schristos This file is part of GDB. 6*6881a400Schristos 7*6881a400Schristos This program is free software; you can redistribute it and/or modify 8*6881a400Schristos it under the terms of the GNU General Public License as published by 9*6881a400Schristos the Free Software Foundation; either version 3 of the License, or 10*6881a400Schristos (at your option) any later version. 11*6881a400Schristos 12*6881a400Schristos This program is distributed in the hope that it will be useful, 13*6881a400Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 14*6881a400Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*6881a400Schristos GNU General Public License for more details. 16*6881a400Schristos 17*6881a400Schristos You should have received a copy of the GNU General Public License 18*6881a400Schristos along with this program. If not, see <http://www.gnu.org/licenses/>. */ 19*6881a400Schristos 20*6881a400Schristos #ifndef RISCV_NBSD_TDEP_H 21*6881a400Schristos #define RISCV_NBSD_TDEP_H 22*6881a400Schristos 23*6881a400Schristos #include "regset.h" 24*6881a400Schristos 25*6881a400Schristos /* The general-purpose regset consists of 31 X registers, and PC. */ 26*6881a400Schristos #define RISCV_NBSD_NUM_GREGS 32 27*6881a400Schristos 28*6881a400Schristos /* The fp regset always consists of 32 128-bit registers, plus a 29*6881a400Schristos 64-bit CSR_FCSR. If 'Q' is not supported, only the low 64-bits of 30*6881a400Schristos each floating point register are valid. If 'D' is not supported, 31*6881a400Schristos only the low 32-bits of each floating point register are valid. */ 32*6881a400Schristos #define RISCV_NBSD_SIZEOF_FPREGSET (32 * 16 + 8) 33*6881a400Schristos 34*6881a400Schristos extern const struct regset riscv_nbsd_gregset; 35*6881a400Schristos extern const struct regset riscv_nbsd_fpregset; 36*6881a400Schristos 37*6881a400Schristos #endif /* RISCV_NBSD_TDEP_H */ 38