Home | History | Annotate | Line # | Download | only in sim
      1 /* This file defines the interface between the cr16 simulator and gdb.
      2 
      3    Copyright (C) 2008-2026 Free Software Foundation, Inc.
      4 
      5    This file is part of GDB.
      6 
      7    This program is free software; you can redistribute it and/or modify
      8    it under the terms of the GNU General Public License as published by
      9    the Free Software Foundation; either version 3 of the License, or
     10    (at your option) any later version.
     11 
     12    This program is distributed in the hope that it will be useful,
     13    but WITHOUT ANY WARRANTY; without even the implied warranty of
     14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15    GNU General Public License for more details.
     16 
     17    You should have received a copy of the GNU General Public License
     18    along with this program; if not, see <http://www.gnu.org/licenses/>.  */
     19 
     20 #if !defined (SIM_CR16_H)
     21 #define SIM_CR16_H
     22 
     23 /* The simulator makes use of the following register information. */
     24 
     25 enum sim_cr16_regs
     26 {
     27   SIM_CR16_R0_REGNUM,
     28   SIM_CR16_R1_REGNUM,
     29   SIM_CR16_R2_REGNUM,
     30   SIM_CR16_R3_REGNUM,
     31   SIM_CR16_R4_REGNUM,
     32   SIM_CR16_R5_REGNUM,
     33   SIM_CR16_R6_REGNUM,
     34   SIM_CR16_R7_REGNUM,
     35   SIM_CR16_R8_REGNUM,
     36   SIM_CR16_R9_REGNUM,
     37   SIM_CR16_R10_REGNUM,
     38   SIM_CR16_R11_REGNUM,
     39   SIM_CR16_R12_REGNUM,
     40   SIM_CR16_R13_REGNUM,
     41   SIM_CR16_R14_REGNUM,
     42   SIM_CR16_R15_REGNUM,
     43 
     44   SIM_CR16_PC_REGNUM,
     45   SIM_CR16_ISP_REGNUM,
     46   SIM_CR16_USP_REGNUM,
     47   SIM_CR16_INTBASE_REGNUM,
     48   SIM_CR16_PSR_REGNUM,
     49   SIM_CR16_CFG_REGNUM,
     50   SIM_CR16_DBS_REGNUM,
     51   SIM_CR16_DCR_REGNUM,
     52   SIM_CR16_DSR_REGNUM,
     53   SIM_CR16_CAR0_REGNUM,
     54   SIM_CR16_CAR1_REGNUM
     55 };
     56 
     57 enum
     58 {
     59   SIM_CR16_NR_R_REGS = 16,
     60   SIM_CR16_NR_A_REGS = 2,
     61   SIM_CR16_NR_IMAP_REGS = 2,
     62   SIM_CR16_NR_DMAP_REGS = 4,
     63   SIM_CR16_NR_CR_REGS = 11
     64 };
     65 
     66 #endif
     67