OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [rel-0-3-0-rc3/] [or1ksim/] [cpu/] [or1k/] [except.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 33 lampret
/* except.h -- OR1K architecture specific exceptions
2 1748 jeremybenn
 
3 33 lampret
   Copyright (C) 1999 Damjan Lampret, lampret@opencores.org
4 1748 jeremybenn
   Copyright (C) 2008 Embecosm Limited
5 33 lampret
 
6 1748 jeremybenn
   Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
7 33 lampret
 
8 1748 jeremybenn
   This file is part of Or1ksim, the OpenRISC 1000 Architectural Simulator.
9 33 lampret
 
10 1748 jeremybenn
   This program is free software; you can redistribute it and/or modify it
11
   under the terms of the GNU General Public License as published by the Free
12
   Software Foundation; either version 3 of the License, or (at your option)
13
   any later version.
14 33 lampret
 
15 1748 jeremybenn
   This program is distributed in the hope that it will be useful, but WITHOUT
16
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
18
   more details.
19 33 lampret
 
20 1748 jeremybenn
   You should have received a copy of the GNU General Public License along
21
   with this program.  If not, see <http://www.gnu.org/licenses/>.  */
22 33 lampret
 
23 1748 jeremybenn
/* This program is commented throughout in a fashion suitable for processing
24
   with Doxygen. */
25 33 lampret
 
26 1748 jeremybenn
 
27
#ifndef EXCEPT__H
28
#define EXCEPT__H
29
 
30
 
31
/* Package includes */
32
#include "arch.h"
33
 
34 33 lampret
/* Definition of OR1K exceptions */
35 1751 jeremybenn
#define EXCEPT_NONE     0x0000
36 33 lampret
#define EXCEPT_RESET    0x0100
37
#define EXCEPT_BUSERR   0x0200
38
#define EXCEPT_DPF      0x0300
39
#define EXCEPT_IPF      0x0400
40 599 simons
#define EXCEPT_TICK     0x0500
41 33 lampret
#define EXCEPT_ALIGN    0x0600
42
#define EXCEPT_ILLEGAL  0x0700
43 599 simons
#define EXCEPT_INT      0x0800
44 33 lampret
#define EXCEPT_DTLBMISS 0x0900
45
#define EXCEPT_ITLBMISS 0x0a00
46 102 lampret
#define EXCEPT_RANGE    0x0b00
47 33 lampret
#define EXCEPT_SYSCALL  0x0c00
48 1751 jeremybenn
#define EXCEPT_FPE      0x0d00
49 137 chris
#define EXCEPT_TRAP     0x0e00
50 33 lampret
 
51 1748 jeremybenn
/* Function prototypes for external use */
52
extern void except_handle (oraddr_t except, oraddr_t ea);
53 1386 nogj
extern int except_pending;
54 479 markom
 
55 1748 jeremybenn
#endif /* EXCEPT__H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.