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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [cpu/] [or1k/] [except.h] - Diff between revs 99 and 102

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 99 Rev 102
Line 28... Line 28...
 
 
#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_EXTINT   0x0500
#define EXCEPT_LPINT    0x0500
#define EXCEPT_ALIGN    0x0600
#define EXCEPT_ALIGN    0x0600
#define EXCEPT_ILLEGAL  0x0700
#define EXCEPT_ILLEGAL  0x0700
#define EXCEPT_PEINT    0x0800
#define EXCEPT_HPINT    0x0800
#define EXCEPT_DTLBMISS 0x0900
#define EXCEPT_DTLBMISS 0x0900
#define EXCEPT_ITLBMISS 0x0a00
#define EXCEPT_ITLBMISS 0x0a00
#define EXCEPT_RRANGE   0x0b00
#define EXCEPT_RANGE    0x0b00
#define EXCEPT_SYSCALL  0x0c00
#define EXCEPT_SYSCALL  0x0c00
#define EXCEPT_BREAK    0x0d00
#define EXCEPT_BREAK    0x0d00
#define EXCEPT_RESERVED 0x0e00
#define EXCEPT_RESERVED 0x0e00
 
 
#define EXCEPT_NAME(E) E == EXCEPT_RESET ? "Reset" : \
#define EXCEPT_NAME(E) E == EXCEPT_RESET ? "Reset" : \
                        E == EXCEPT_BUSERR ? "Bus Error" : \
                        E == EXCEPT_BUSERR ? "Bus Error" : \
                        E == EXCEPT_DPF ? "Data Page Fault" : \
                        E == EXCEPT_DPF ? "Data Page Fault" : \
                        E == EXCEPT_IPF ? "Insn Page Fault" : \
                        E == EXCEPT_IPF ? "Insn Page Fault" : \
                        E == EXCEPT_EXTINT ? "External Interrupt" : \
                        E == EXCEPT_LPINT ? "Low Priority Interrupt" : \
                        E == EXCEPT_ALIGN ? "Alignment" : \
                        E == EXCEPT_ALIGN ? "Alignment" : \
                        E == EXCEPT_ILLEGAL ? "Illegal instruction" : \
                        E == EXCEPT_ILLEGAL ? "Illegal instruction" : \
                        E == EXCEPT_PEINT ? "Priority Interrupt" : \
                        E == EXCEPT_HPINT ? "High Priority Interrupt" : \
                        E == EXCEPT_DTLBMISS ? "Data TLB Miss" : \
                        E == EXCEPT_DTLBMISS ? "Data TLB Miss" : \
                        E == EXCEPT_ITLBMISS ? "Insn TLB Miss" : \
                        E == EXCEPT_ITLBMISS ? "Insn TLB Miss" : \
                        E == EXCEPT_RRANGE ? "Register Range" : \
                        E == EXCEPT_RANGE ? "Range" : \
                        E == EXCEPT_SYSCALL ? "System Call" : \
                        E == EXCEPT_SYSCALL ? "System Call" : \
                        E == EXCEPT_BREAK ? "Break" : "Uknown"
                        E == EXCEPT_BREAK ? "Break" : "Unknown"
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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