OR1K support
 All Functions Typedefs Groups
or1k-nop.h
1 /* or1k-nop.h -- Defines codes OR1K simulator NOP Hack
2 
3  Copyright (C) 1999 Damjan Lampret, lampret@opencores.org
4  Copyright (C) 2008 Embecosm Limited
5 
6  Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
7  Contributor Peter Gavin <pgavin@gmail.com>
8 
9  This program is free software; you can redistribute it and/or modify it
10  under the terms of the GNU General Public License as published by the Free
11  Software Foundation; either version 3 of the License, or (at your option)
12  any later version.
13 
14  This program is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17  more details.
18 
19  You should have received a copy of the GNU General Public License along
20  with this program. If not, see <http://www.gnu.org/licenses/>. */
21 
22 #ifndef OR1K_NOP__H
23 #define OR1K_NOP__H
24 
25 /*
26  * l.nop constants used only in simulations
27  */
28 #define OR1K_NOP_NOP 0x0000 /* Normal nop instruction */
29 #define OR1K_NOP_EXIT 0x0001 /* End of simulation */
30 #define OR1K_NOP_REPORT 0x0002 /* Simple report */
31 #define OR1K_NOP_PUTC 0x0004 /* putc instruction */
32 #define OR1K_NOP_CNT_RESET 0x0005 /* Reset statistics counters */
33 #define OR1K_NOP_GET_TICKS 0x0006 /* Get # ticks running */
34 #define OR1K_NOP_GET_PS 0x0007 /* Get picosecs/cycle */
35 #define OR1K_NOP_TRACE_ON 0x0008 /* Turn on tracing */
36 #define OR1K_NOP_TRACE_OFF 0x0009 /* Turn off tracing */
37 #define OR1K_NOP_RANDOM 0x000a /* Return 4 random bytes */
38 #define OR1K_NOP_OR1KSIM 0x000b /* Return non-zero if this is Or1ksim */
39 #define OR1K_NOP_EXIT_SILENT 0x000c /* End of simulation, quiet version */
40 
41 #endif /* OR1K_NOP__H */