1*02f41505Schristos /* This file defines the interface between the FT32 simulator and GDB. 2*02f41505Schristos 3*02f41505Schristos Copyright (C) 2005-2024 Free Software Foundation, Inc. 4*02f41505Schristos Contributed by FTDI. 5*02f41505Schristos 6*02f41505Schristos This file is part of GDB. 7*02f41505Schristos 8*02f41505Schristos This program is free software; you can redistribute it and/or modify 9*02f41505Schristos it under the terms of the GNU General Public License as published by 10*02f41505Schristos the Free Software Foundation; either version 3 of the License, or 11*02f41505Schristos (at your option) any later version. 12*02f41505Schristos 13*02f41505Schristos This program is distributed in the hope that it will be useful, 14*02f41505Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 15*02f41505Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*02f41505Schristos GNU General Public License for more details. 17*02f41505Schristos 18*02f41505Schristos You should have received a copy of the GNU General Public License 19*02f41505Schristos along with this program. If not, see <http://www.gnu.org/licenses/>. */ 20*02f41505Schristos 21*02f41505Schristos 22*02f41505Schristos /* Register numbers of various important registers. */ 23*02f41505Schristos enum ft32_regnum 24*02f41505Schristos { 25*02f41505Schristos FT32_FP_REGNUM, /* Address of executing stack frame. */ 26*02f41505Schristos FT32_SP_REGNUM, /* Address of top of stack. */ 27*02f41505Schristos FT32_R0_REGNUM, 28*02f41505Schristos FT32_R1_REGNUM, 29*02f41505Schristos FT32_CC_REGNUM = 31, 30*02f41505Schristos FT32_PC_REGNUM = 32 /* Program counter. */ 31*02f41505Schristos }; 32*02f41505Schristos 33*02f41505Schristos /* Number of machine registers. */ 34*02f41505Schristos #define FT32_NUM_REGS 33 /* 32 real registers + PC */ 35*02f41505Schristos 36