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