1 |
35 |
ultra_embe |
/* OR1K support defines
|
2 |
|
|
|
3 |
|
|
Copyright (C) 2011, ORSoC AB
|
4 |
|
|
Copyright (C) 2008, 2010 Embecosm Limited
|
5 |
|
|
|
6 |
|
|
Contributor Julius Baxter <julius.baxter@orsoc.se>
|
7 |
|
|
Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
|
8 |
|
|
|
9 |
|
|
This file is part of Newlib.
|
10 |
|
|
|
11 |
|
|
This program is free software; you can redistribute it and/or modify it
|
12 |
|
|
under the terms of the GNU General Public License as published by the Free
|
13 |
|
|
Software Foundation; either version 3 of the License, or (at your option)
|
14 |
|
|
any later version.
|
15 |
|
|
|
16 |
|
|
This program is distributed in the hope that it will be useful, but WITHOUT
|
17 |
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
18 |
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
19 |
|
|
more details.
|
20 |
|
|
|
21 |
|
|
You should have received a copy of the GNU General Public License along
|
22 |
|
|
with this program. If not, see <http://www.gnu.org/licenses/>. */
|
23 |
|
|
/* -------------------------------------------------------------------------- */
|
24 |
|
|
/* This program is commented throughout in a fashion suitable for processing
|
25 |
|
|
with Doxygen. */
|
26 |
|
|
/* -------------------------------------------------------------------------- */
|
27 |
|
|
|
28 |
|
|
/* This machine configuration matches the Or1ksim configuration file in this
|
29 |
|
|
directory. */
|
30 |
|
|
|
31 |
|
|
#ifndef OR1K_NEWLIB_SUPPORT_DEFS__H
|
32 |
|
|
#define OR1K_NEWLIB_SUPPORT_DEFS__H
|
33 |
|
|
|
34 |
|
|
/*! l.nop constants */
|
35 |
|
|
#define NOP_NOP 0x0000 /* Normal nop instruction */
|
36 |
|
|
#define NOP_EXIT 0x0001 /* End of simulation, report exit status */
|
37 |
|
|
#define NOP_REPORT 0x0002 /* Simple report */
|
38 |
|
|
/*#define NOP_PRINTF 0x0003 Simprintf instruction (obsolete)*/
|
39 |
|
|
#define NOP_PUTC 0x0004 /* JPB: Simputc instruction */
|
40 |
|
|
#define NOP_CNT_RESET 0x0005 /* Reset statistics counters */
|
41 |
|
|
#define NOP_GET_TICKS 0x0006 /* JPB: Get # ticks running */
|
42 |
|
|
#define NOP_GET_PS 0x0007 /* JPB: Get picosecs/cycle */
|
43 |
|
|
#define NOP_EXIT_SILENT 0x000c /* End of simulation, silently exit */
|
44 |
|
|
#define NOP_REPORT_FIRST 0x0400 /* Report with number */
|
45 |
|
|
#define NOP_REPORT_LAST 0x03ff /* Report with number */
|
46 |
|
|
|
47 |
|
|
#endif
|