Line 40... |
Line 40... |
#define EXCEPT_TRAP 0x0e00
|
#define EXCEPT_TRAP 0x0e00
|
|
|
/* Non maskable exceptions */
|
/* Non maskable exceptions */
|
#define IS_NME(E) ((E) == EXCEPT_RESET)
|
#define IS_NME(E) ((E) == EXCEPT_RESET)
|
|
|
#define EXCEPT_NAME(E) E == EXCEPT_RESET ? "Reset" : \
|
|
E == EXCEPT_BUSERR ? "Bus Error" : \
|
|
E == EXCEPT_DPF ? "Data Page Fault" : \
|
|
E == EXCEPT_IPF ? "Insn Page Fault" : \
|
|
E == EXCEPT_TICK ? "Tick timer" : \
|
|
E == EXCEPT_ALIGN ? "Alignment" : \
|
|
E == EXCEPT_ILLEGAL ? "Illegal instruction" : \
|
|
E == EXCEPT_INT ? "Interrupt" : \
|
|
E == EXCEPT_DTLBMISS ? "Data TLB Miss" : \
|
|
E == EXCEPT_ITLBMISS ? "Insn TLB Miss" : \
|
|
E == EXCEPT_RANGE ? "Range" : \
|
|
E == EXCEPT_SYSCALL ? "System Call" : \
|
|
E == EXCEPT_TRAP ? "Trap" : "Unknown"
|
|
|
|
extern struct _pending {
|
|
int valid;
|
|
oraddr_t type;
|
|
oraddr_t address;
|
|
oraddr_t saved;
|
|
} pending;
|
|
|
|
/* Prototypes */
|
/* Prototypes */
|
void except_handle(oraddr_t except, oraddr_t ea);
|
void except_handle(oraddr_t except, oraddr_t ea);
|
|
|
/* Actually handles exception */
|
/* Has an exception been raised in this cycle ? */
|
void except_handle_backend (oraddr_t except, oraddr_t ea, oraddr_t pc_saved);
|
extern int except_pending;
|
|
|
/* Discards all pending exceptions */
|
|
void clear_pending_exception();
|
|
|
|
#endif
|
#endif
|
|
|
No newline at end of file
|
No newline at end of file
|