PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ee_cop0_defs.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define M_EE_GET_CAUSE_EXCODE(__cause)   (((__cause) >> 2) & 0x1F)
 
#define M_EE_GET_CAUSE_EXC2(__cause)   (((__cause) >> 16) & 0x7)
 
#define EE_COP0_Index   $0
 
#define EE_COP0_Random   $1
 
#define EE_COP0_EntryLo0   $2
 
#define EE_COP0_EntryLo1   $3
 
#define EE_COP0_Context   $4
 
#define EE_COP0_Wired   $5
 
#define EE_COP0_BadVAddr   $8
 
#define EE_COP0_Count   $9
 
#define EE_COP0_EntryHi   $10
 
#define EE_COP0_Compare   $11
 
#define EE_COP0_Status   $12
 
#define EE_COP0_Cause   $13
 
#define EE_COP0_EPC   $14
 
#define EE_COP0_PRId   $15
 
#define EE_COP0_Config   $16
 
#define EE_COP0_BadPAddr   $23
 
#define EE_COP0_TagLo   $28
 
#define EE_COP0_TagHi   $29
 
#define EE_COP0_ErrorEPC   $30
 
#define EE_STATUS_IE   (1 << 0)
 
#define EE_STATUS_EXL   (1 << 1)
 
#define EE_STATUS_ERL   (1 << 2)
 
#define EE_EXC2_RST   (0)
 
#define EE_EXC2_NMI   (1)
 
#define EE_EXC2_PERF   (2)
 
#define EE_EXC2_DBG   (3)
 
#define EE_CAUSE_BD   (1 << 31)
 
#define EE_CAUSE_BD2   (1 << 30)
 
#define EE_CAUSE_SIO   (1 << 12)
 
#define EE_BPC_IAE   (1 << 31)
 
#define EE_BPC_DRE   (1 << 30)
 
#define EE_BPC_DWE   (1 << 29)
 
#define EE_BPC_DVE   (1 << 28)
 
#define EE_BPC_IUE   (1 << 26)
 
#define EE_BPC_ISE   (1 << 25)
 
#define EE_BPC_IKE   (1 << 24)
 
#define EE_BPC_IXE   (1 << 23)
 
#define EE_BPC_DUE   (1 << 21)
 
#define EE_BPC_DSE   (1 << 20)
 
#define EE_BPC_DKE   (1 << 19)
 
#define EE_BPC_DXE   (1 << 18)
 
#define EE_BPC_ITE   (1 << 17)
 
#define EE_BPC_DTE   (1 << 16)
 
#define EE_BPC_BED   (1 << 15)
 
#define EE_BPC_DWB   (1 << 2)
 
#define EE_BPC_DRB   (1 << 1)
 
#define EE_BPC_IAB   (1 << 0)
 

Detailed Description

EE Co-processor 0(COP0) register definitions.

Definition in file ee_cop0_defs.h.

Macro Definition Documentation

◆ M_EE_GET_CAUSE_EXCODE

#define M_EE_GET_CAUSE_EXCODE (   __cause)    (((__cause) >> 2) & 0x1F)

Definition at line 19 of file ee_cop0_defs.h.

◆ M_EE_GET_CAUSE_EXC2

#define M_EE_GET_CAUSE_EXC2 (   __cause)    (((__cause) >> 16) & 0x7)

Definition at line 20 of file ee_cop0_defs.h.

◆ EE_COP0_Index

#define EE_COP0_Index   $0

Definition at line 23 of file ee_cop0_defs.h.

◆ EE_COP0_Random

#define EE_COP0_Random   $1

Definition at line 24 of file ee_cop0_defs.h.

◆ EE_COP0_EntryLo0

#define EE_COP0_EntryLo0   $2

Definition at line 25 of file ee_cop0_defs.h.

◆ EE_COP0_EntryLo1

#define EE_COP0_EntryLo1   $3

Definition at line 26 of file ee_cop0_defs.h.

◆ EE_COP0_Context

#define EE_COP0_Context   $4

Definition at line 27 of file ee_cop0_defs.h.

◆ EE_COP0_Wired

#define EE_COP0_Wired   $5

Definition at line 28 of file ee_cop0_defs.h.

◆ EE_COP0_BadVAddr

#define EE_COP0_BadVAddr   $8

Definition at line 29 of file ee_cop0_defs.h.

◆ EE_COP0_Count

#define EE_COP0_Count   $9

Definition at line 30 of file ee_cop0_defs.h.

◆ EE_COP0_EntryHi

#define EE_COP0_EntryHi   $10

Definition at line 31 of file ee_cop0_defs.h.

◆ EE_COP0_Compare

#define EE_COP0_Compare   $11

Definition at line 32 of file ee_cop0_defs.h.

◆ EE_COP0_Status

#define EE_COP0_Status   $12

Definition at line 33 of file ee_cop0_defs.h.

◆ EE_COP0_Cause

#define EE_COP0_Cause   $13

Definition at line 34 of file ee_cop0_defs.h.

◆ EE_COP0_EPC

#define EE_COP0_EPC   $14

Definition at line 35 of file ee_cop0_defs.h.

◆ EE_COP0_PRId

#define EE_COP0_PRId   $15

Definition at line 36 of file ee_cop0_defs.h.

◆ EE_COP0_Config

#define EE_COP0_Config   $16

Definition at line 37 of file ee_cop0_defs.h.

◆ EE_COP0_BadPAddr

#define EE_COP0_BadPAddr   $23

Definition at line 38 of file ee_cop0_defs.h.

◆ EE_COP0_TagLo

#define EE_COP0_TagLo   $28

Definition at line 39 of file ee_cop0_defs.h.

◆ EE_COP0_TagHi

#define EE_COP0_TagHi   $29

Definition at line 40 of file ee_cop0_defs.h.

◆ EE_COP0_ErrorEPC

#define EE_COP0_ErrorEPC   $30

Definition at line 41 of file ee_cop0_defs.h.

◆ EE_STATUS_IE

#define EE_STATUS_IE   (1 << 0)

Definition at line 44 of file ee_cop0_defs.h.

◆ EE_STATUS_EXL

#define EE_STATUS_EXL   (1 << 1)

Definition at line 45 of file ee_cop0_defs.h.

◆ EE_STATUS_ERL

#define EE_STATUS_ERL   (1 << 2)

Definition at line 46 of file ee_cop0_defs.h.

◆ EE_EXC2_RST

#define EE_EXC2_RST   (0)

Definition at line 48 of file ee_cop0_defs.h.

◆ EE_EXC2_NMI

#define EE_EXC2_NMI   (1)

Definition at line 49 of file ee_cop0_defs.h.

◆ EE_EXC2_PERF

#define EE_EXC2_PERF   (2)

Definition at line 50 of file ee_cop0_defs.h.

◆ EE_EXC2_DBG

#define EE_EXC2_DBG   (3)

Definition at line 51 of file ee_cop0_defs.h.

◆ EE_CAUSE_BD

#define EE_CAUSE_BD   (1 << 31)

Definition at line 54 of file ee_cop0_defs.h.

◆ EE_CAUSE_BD2

#define EE_CAUSE_BD2   (1 << 30)

Definition at line 55 of file ee_cop0_defs.h.

◆ EE_CAUSE_SIO

#define EE_CAUSE_SIO   (1 << 12)

Serial I/O pending flag

Definition at line 58 of file ee_cop0_defs.h.

◆ EE_BPC_IAE

#define EE_BPC_IAE   (1 << 31)

Definition at line 63 of file ee_cop0_defs.h.

◆ EE_BPC_DRE

#define EE_BPC_DRE   (1 << 30)

Definition at line 66 of file ee_cop0_defs.h.

◆ EE_BPC_DWE

#define EE_BPC_DWE   (1 << 29)

Definition at line 69 of file ee_cop0_defs.h.

◆ EE_BPC_DVE

#define EE_BPC_DVE   (1 << 28)

Definition at line 72 of file ee_cop0_defs.h.

◆ EE_BPC_IUE

#define EE_BPC_IUE   (1 << 26)

Definition at line 75 of file ee_cop0_defs.h.

◆ EE_BPC_ISE

#define EE_BPC_ISE   (1 << 25)

Definition at line 78 of file ee_cop0_defs.h.

◆ EE_BPC_IKE

#define EE_BPC_IKE   (1 << 24)

Definition at line 81 of file ee_cop0_defs.h.

◆ EE_BPC_IXE

#define EE_BPC_IXE   (1 << 23)

Definition at line 84 of file ee_cop0_defs.h.

◆ EE_BPC_DUE

#define EE_BPC_DUE   (1 << 21)

Definition at line 87 of file ee_cop0_defs.h.

◆ EE_BPC_DSE

#define EE_BPC_DSE   (1 << 20)

Definition at line 90 of file ee_cop0_defs.h.

◆ EE_BPC_DKE

#define EE_BPC_DKE   (1 << 19)

Definition at line 93 of file ee_cop0_defs.h.

◆ EE_BPC_DXE

#define EE_BPC_DXE   (1 << 18)

Definition at line 96 of file ee_cop0_defs.h.

◆ EE_BPC_ITE

#define EE_BPC_ITE   (1 << 17)

Definition at line 99 of file ee_cop0_defs.h.

◆ EE_BPC_DTE

#define EE_BPC_DTE   (1 << 16)

Definition at line 102 of file ee_cop0_defs.h.

◆ EE_BPC_BED

#define EE_BPC_BED   (1 << 15)

Definition at line 105 of file ee_cop0_defs.h.

◆ EE_BPC_DWB

#define EE_BPC_DWB   (1 << 2)

Definition at line 108 of file ee_cop0_defs.h.

◆ EE_BPC_DRB

#define EE_BPC_DRB   (1 << 1)

Definition at line 111 of file ee_cop0_defs.h.

◆ EE_BPC_IAB

#define EE_BPC_IAB   (1 << 0)

Definition at line 114 of file ee_cop0_defs.h.