]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/fr30/arch.h
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / sim / fr30 / arch.h
1 /* Simulator header for fr30.
2
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
4
5 Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
6
7 This file is part of the GNU Simulators.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc.,
21 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23 */
24
25 #ifndef FR30_ARCH_H
26 #define FR30_ARCH_H
27
28 #define TARGET_BIG_ENDIAN 1
29
30 /* Cover fns for register access. */
31 USI a_fr30_h_pc_get (SIM_CPU *);
32 void a_fr30_h_pc_set (SIM_CPU *, USI);
33 SI a_fr30_h_gr_get (SIM_CPU *, UINT);
34 void a_fr30_h_gr_set (SIM_CPU *, UINT, SI);
35 SI a_fr30_h_cr_get (SIM_CPU *, UINT);
36 void a_fr30_h_cr_set (SIM_CPU *, UINT, SI);
37 SI a_fr30_h_dr_get (SIM_CPU *, UINT);
38 void a_fr30_h_dr_set (SIM_CPU *, UINT, SI);
39 USI a_fr30_h_ps_get (SIM_CPU *);
40 void a_fr30_h_ps_set (SIM_CPU *, USI);
41 SI a_fr30_h_r13_get (SIM_CPU *);
42 void a_fr30_h_r13_set (SIM_CPU *, SI);
43 SI a_fr30_h_r14_get (SIM_CPU *);
44 void a_fr30_h_r14_set (SIM_CPU *, SI);
45 SI a_fr30_h_r15_get (SIM_CPU *);
46 void a_fr30_h_r15_set (SIM_CPU *, SI);
47 BI a_fr30_h_nbit_get (SIM_CPU *);
48 void a_fr30_h_nbit_set (SIM_CPU *, BI);
49 BI a_fr30_h_zbit_get (SIM_CPU *);
50 void a_fr30_h_zbit_set (SIM_CPU *, BI);
51 BI a_fr30_h_vbit_get (SIM_CPU *);
52 void a_fr30_h_vbit_set (SIM_CPU *, BI);
53 BI a_fr30_h_cbit_get (SIM_CPU *);
54 void a_fr30_h_cbit_set (SIM_CPU *, BI);
55 BI a_fr30_h_ibit_get (SIM_CPU *);
56 void a_fr30_h_ibit_set (SIM_CPU *, BI);
57 BI a_fr30_h_sbit_get (SIM_CPU *);
58 void a_fr30_h_sbit_set (SIM_CPU *, BI);
59 BI a_fr30_h_tbit_get (SIM_CPU *);
60 void a_fr30_h_tbit_set (SIM_CPU *, BI);
61 BI a_fr30_h_d0bit_get (SIM_CPU *);
62 void a_fr30_h_d0bit_set (SIM_CPU *, BI);
63 BI a_fr30_h_d1bit_get (SIM_CPU *);
64 void a_fr30_h_d1bit_set (SIM_CPU *, BI);
65 UQI a_fr30_h_ccr_get (SIM_CPU *);
66 void a_fr30_h_ccr_set (SIM_CPU *, UQI);
67 UQI a_fr30_h_scr_get (SIM_CPU *);
68 void a_fr30_h_scr_set (SIM_CPU *, UQI);
69 UQI a_fr30_h_ilm_get (SIM_CPU *);
70 void a_fr30_h_ilm_set (SIM_CPU *, UQI);
71
72 /* Enum declaration for model types. */
73 typedef enum model_type {
74 MODEL_FR30_1, MODEL_MAX
75 } MODEL_TYPE;
76
77 #define MAX_MODELS ((int) MODEL_MAX)
78
79 /* Enum declaration for unit types. */
80 typedef enum unit_type {
81 UNIT_NONE, UNIT_FR30_1_U_STM, UNIT_FR30_1_U_LDM, UNIT_FR30_1_U_STORE
82 , UNIT_FR30_1_U_LOAD, UNIT_FR30_1_U_CTI, UNIT_FR30_1_U_EXEC, UNIT_MAX
83 } UNIT_TYPE;
84
85 #define MAX_UNITS (3)
86
87 #endif /* FR30_ARCH_H */