Correct cause number for illegal instruction exception

This bug has beed reported by @taoliug. This resolves #195.
This commit is contained in:
Pirmin Vogel 2019-07-26 10:29:49 +01:00
parent ef696bf1f7
commit 6d72aebc16

View file

@ -190,7 +190,7 @@ typedef enum logic [5:0] {
// EXC_CAUSE_IRQ_FAST_14 = {1'b1, 5'd30},
EXC_CAUSE_IRQ_NM = {1'b1, 5'd31}, // == EXC_CAUSE_IRQ_FAST_15
EXC_CAUSE_INSN_ADDR_MISA = {1'b0, 5'd00},
EXC_CAUSE_ILLEGAL_INSN = {1'b0, 5'd01},
EXC_CAUSE_ILLEGAL_INSN = {1'b0, 5'd02},
EXC_CAUSE_BREAKPOINT = {1'b0, 5'd03},
EXC_CAUSE_LOAD_ACCESS_FAULT = {1'b0, 5'd05},
EXC_CAUSE_STORE_ACCESS_FAULT = {1'b0, 5'd07},