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