Skip to content

Commit 6e51bfa

Browse files
committed
sim: or1k: add cgen generated files
These are the simulator files generated by cgen. These are split out from the main sim patch to make the patch easier to review and smaller. sim/ChangeLog: 2017-12-12 Stafford Horne <[email protected]> Peter Gavin <[email protected]> * or1k/arch.c: Generated. * or1k/arch.h: Generated. * or1k/cpu.c: Generated. * or1k/cpu.h: Generated. * or1k/cpuall.h: Generated. * or1k/decode.c: Generated. * or1k/decode.h: Generated. * or1k/model.c: Generated. * or1k/sem-switch.c: Generated. * or1k/sem.c: Generated.
1 parent fa8b7c2 commit 6e51bfa

File tree

11 files changed

+27536
-0
lines changed

11 files changed

+27536
-0
lines changed

sim/ChangeLog

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
2017-12-12 Stafford Horne <[email protected]>
2+
Peter Gavin <[email protected]>
3+
4+
* or1k/arch.c: Generated.
5+
* or1k/arch.h: Generated.
6+
* or1k/cpu.c: Generated.
7+
* or1k/cpu.h: Generated.
8+
* or1k/cpuall.h: Generated.
9+
* or1k/decode.c: Generated.
10+
* or1k/decode.h: Generated.
11+
* or1k/model.c: Generated.
12+
* or1k/sem-switch.c: Generated.
13+
* or1k/sem.c: Generated.
14+
115
2017-12-12 Stafford Horne <[email protected]>
216
Peter Gavin <[email protected]>
317

sim/or1k/arch.c

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/* Simulator support for or1k.
2+
3+
THIS FILE IS MACHINE GENERATED WITH CGEN.
4+
5+
Copyright 1996-2010 Free Software Foundation, Inc.
6+
7+
This file is part of the GNU simulators.
8+
9+
This file 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 3, or (at your option)
12+
any later version.
13+
14+
It is distributed in the hope that it will be useful, but WITHOUT
15+
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16+
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
17+
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+
51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
22+
23+
*/
24+
25+
#include "sim-main.h"
26+
#include "bfd.h"
27+
28+
const SIM_MACH *sim_machs[] =
29+
{
30+
#ifdef HAVE_CPU_OR1K32BF
31+
& or32_mach,
32+
#endif
33+
#ifdef HAVE_CPU_OR1K32BF
34+
& or32nd_mach,
35+
#endif
36+
0
37+
};
38+

sim/or1k/arch.h

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/* Simulator header for or1k.
2+
3+
THIS FILE IS MACHINE GENERATED WITH CGEN.
4+
5+
Copyright 1996-2010 Free Software Foundation, Inc.
6+
7+
This file is part of the GNU simulators.
8+
9+
This file 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 3, or (at your option)
12+
any later version.
13+
14+
It is distributed in the hope that it will be useful, but WITHOUT
15+
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16+
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
17+
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+
51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
22+
23+
*/
24+
25+
#ifndef OR1K_ARCH_H
26+
#define OR1K_ARCH_H
27+
28+
#define TARGET_BIG_ENDIAN 1
29+
30+
#define WI SI
31+
#define UWI USI
32+
#define AI USI
33+
34+
#define IAI USI
35+
36+
/* Enum declaration for model types. */
37+
typedef enum model_type {
38+
MODEL_OR1200, MODEL_OR1200ND, MODEL_MAX
39+
} MODEL_TYPE;
40+
41+
#define MAX_MODELS ((int) MODEL_MAX)
42+
43+
/* Enum declaration for unit types. */
44+
typedef enum unit_type {
45+
UNIT_NONE, UNIT_OR1200_U_EXEC, UNIT_OR1200ND_U_EXEC, UNIT_MAX
46+
} UNIT_TYPE;
47+
48+
#define MAX_UNITS (1)
49+
50+
#endif /* OR1K_ARCH_H */

0 commit comments

Comments
 (0)