2f41303847b3c3a20aeeeec58007557af74bb02f
[deliverable/binutils-gdb.git] / include / gdb / sim-cr16.h
1 /* This file defines the interface between the cr16 simulator and gdb.
2
3 Copyright (C) 2008-2015 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 enum
24 {
25 SIM_CR16_MEMORY_UNIFIED = 0x00000000,
26 SIM_CR16_MEMORY_INSN = 0x10000000,
27 SIM_CR16_MEMORY_DATA = 0x10000000,
28 SIM_CR16_MEMORY_DMAP = 0x10000000,
29 SIM_CR16_MEMORY_IMAP = 0x10000000
30 };
31
32 /* The simulator makes use of the following register information. */
33
34 enum sim_cr16_regs
35 {
36 SIM_CR16_R0_REGNUM,
37 SIM_CR16_R1_REGNUM,
38 SIM_CR16_R2_REGNUM,
39 SIM_CR16_R3_REGNUM,
40 SIM_CR16_R4_REGNUM,
41 SIM_CR16_R5_REGNUM,
42 SIM_CR16_R6_REGNUM,
43 SIM_CR16_R7_REGNUM,
44 SIM_CR16_R8_REGNUM,
45 SIM_CR16_R9_REGNUM,
46 SIM_CR16_R10_REGNUM,
47 SIM_CR16_R11_REGNUM,
48 SIM_CR16_R12_REGNUM,
49 SIM_CR16_R13_REGNUM,
50 SIM_CR16_R14_REGNUM,
51 SIM_CR16_R15_REGNUM,
52
53 SIM_CR16_PC_REGNUM,
54 SIM_CR16_ISP_REGNUM,
55 SIM_CR16_USP_REGNUM,
56 SIM_CR16_INTBASE_REGNUM,
57 SIM_CR16_PSR_REGNUM,
58 SIM_CR16_CFG_REGNUM,
59 SIM_CR16_DBS_REGNUM,
60 SIM_CR16_DCR_REGNUM,
61 SIM_CR16_DSR_REGNUM,
62 SIM_CR16_CAR0_REGNUM,
63 SIM_CR16_CAR1_REGNUM
64 };
65
66 enum
67 {
68 SIM_CR16_NR_R_REGS = 16,
69 SIM_CR16_NR_A_REGS = 2,
70 SIM_CR16_NR_IMAP_REGS = 2,
71 SIM_CR16_NR_DMAP_REGS = 4,
72 SIM_CR16_NR_CR_REGS = 11
73 };
74
75 #endif
This page took 0.030617 seconds and 4 git commands to generate.