Line 1... |
Line 1... |
/* except.h -- OR1K architecture specific exceptions
|
/* except.h -- OR1K architecture specific exceptions
|
|
|
Copyright (C) 1999 Damjan Lampret, lampret@opencores.org
|
Copyright (C) 1999 Damjan Lampret, lampret@opencores.org
|
|
Copyright (C) 2008 Embecosm Limited
|
|
|
This file is part of OpenRISC 1000 Architectural Simulator.
|
Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
|
|
|
This program is free software; you can redistribute it and/or modify
|
This file is part of Or1ksim, the OpenRISC 1000 Architectural Simulator.
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
|
|
#ifndef _EXCEPT_H_
|
This program is free software; you can redistribute it and/or modify it
|
#define _EXCEPT_H_
|
under the terms of the GNU General Public License as published by the Free
|
|
Software Foundation; either version 3 of the License, or (at your option)
|
|
any later version.
|
|
|
/* Define if you want pure virtual machine simulation (no exceptions etc.) */
|
This program is distributed in the hope that it will be useful, but WITHOUT
|
#define ONLY_VIRTUAL_MACHINE 0
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
more details.
|
|
|
/* Definition of OR1K exceptions */
|
You should have received a copy of the GNU General Public License along
|
|
with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
|
/* This program is commented throughout in a fashion suitable for processing
|
|
with Doxygen. */
|
|
|
|
|
|
#ifndef EXCEPT__H
|
|
#define EXCEPT__H
|
|
|
|
|
|
/* Package includes */
|
|
#include "arch.h"
|
|
|
|
/* Definition of OR1K exceptions */
|
#define EXCEPT_RESET 0x0100
|
#define EXCEPT_RESET 0x0100
|
#define EXCEPT_BUSERR 0x0200
|
#define EXCEPT_BUSERR 0x0200
|
#define EXCEPT_DPF 0x0300
|
#define EXCEPT_DPF 0x0300
|
#define EXCEPT_IPF 0x0400
|
#define EXCEPT_IPF 0x0400
|
#define EXCEPT_TICK 0x0500
|
#define EXCEPT_TICK 0x0500
|
Line 37... |
Line 44... |
#define EXCEPT_ITLBMISS 0x0a00
|
#define EXCEPT_ITLBMISS 0x0a00
|
#define EXCEPT_RANGE 0x0b00
|
#define EXCEPT_RANGE 0x0b00
|
#define EXCEPT_SYSCALL 0x0c00
|
#define EXCEPT_SYSCALL 0x0c00
|
#define EXCEPT_TRAP 0x0e00
|
#define EXCEPT_TRAP 0x0e00
|
|
|
/* Non maskable exceptions */
|
/* Function prototypes for external use */
|
#define IS_NME(E) ((E) == EXCEPT_RESET)
|
extern void except_handle (oraddr_t except, oraddr_t ea);
|
|
|
/* Prototypes */
|
|
void except_handle(oraddr_t except, oraddr_t ea);
|
|
const char *except_name(oraddr_t except);
|
|
|
|
/* Has an exception been raised in this cycle ? */
|
|
extern int except_pending;
|
extern int except_pending;
|
|
|
#endif
|
#endif /* EXCEPT__H */
|
|
|
No newline at end of file
|
No newline at end of file
|