forked from ggeeyyi/loongson-cpu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmycpu.h
35 lines (29 loc) · 758 Bytes
/
mycpu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
`ifndef mycpu
`define mycpu
`define IF_ID_LEN 65
`define ID_EX_LEN 165
`define CRMD 14'h0
`define PRMD 14'h1
`define ECFG 14'h4
`define ESTAT 14'h5
`define ERA 14'h6
`define EENTRY 14'hc
`define SAVE0 14'h30
`define SAVE1 14'h31
`define SAVE2 14'h32
`define SAVE3 14'h33
`define TICLR 14'h44
`define ECFG 14'h4
`define BADV 14'h7
`define TID 14'h40
`define TCFG 14'h41
`define TVAL 14'h42
`define TCFG_N 32
`define ECODE_INT 6'h00
`define ECODE_ADEF 6'h08
`define ECODE_ALE 6'h09
`define ECODE_SYS 6'h0B
`define ECODE_BRK 6'h0C
`define ECODE_INE 6'h0D
`define ECODE_TLBR 6'h3F
`endif