-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathregs.h
More file actions
27 lines (22 loc) · 657 Bytes
/
Copy pathregs.h
File metadata and controls
27 lines (22 loc) · 657 Bytes
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
// This file contains definitions for the
// MIPS register related constants.
// Coprocessor 0 register names
#define COP0_ENTRYLO0 2
#define COP0_ENTRYLO1 3
#define COP0_BADVADDR 8
#define COP0_ENTRYHI 10
#define COP0_STATUS 12
#define COP0_CAUSE 13
#define COP0_EPC 14
#define COP0_ERROREPC 30
// Status register flags
#define STATUS_IE 0x00000001
#define STATUS_EXL 0x00000002
#define STATUS_ERL 0x00000004
#define STATUS_KSU 0x00000018
#define STATUS_IM 0x0000ff00
#define STATUS_BEV 0x00400000
#define STATUS_CU0 0x10000000
#define STATUS_KSU_USER 0x00000010
// Cause register flags
#define CAUSE_EXC 0x0000007c