PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
iop_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_IOP_GET_CAUSE_EXCODE(__cause)   (((__cause) >> 2) & 0x1F)
 
#define IOP_COP0_BPC   $3
 
#define IOP_COP0_BDA   $5
 
#define IOP_COP0_DCIC   $7
 
#define IOP_COP0_BADVADDR   $8
 
#define IOP_COP0_BDAM   $9
 
#define IOP_COP0_BPCM   $11
 
#define IOP_COP0_STATUS   $12
 
#define IOP_DCIC_TR   0x80000000
 
#define IOP_DCIC_UD   0x40000000
 
#define IOP_DCIC_KD   0x20000000
 
#define IOP_DCIC_TE   0x10000000
 
#define IOP_DCIC_DW   0x08000000
 
#define IOP_DCIC_DR   0x04000000
 
#define IOP_DCIC_DAE   0x02000000
 
#define IOP_DCIC_PCE   0x01000000
 
#define IOP_DCIC_DE   0x00800000
 
#define IOP_DCIC_DL   0x00008000
 
#define IOP_DCIC_IL   0x00004000
 
#define IOP_DCIC_D   0x00002000
 
#define IOP_DCIC_I   0x00001000
 
#define IOP_DCIC_T   0x00000020
 
#define IOP_DCIC_W   0x00000010
 
#define IOP_DCIC_R   0x00000008
 
#define IOP_DCIC_DA   0x00000004
 
#define IOP_DCIC_PC   0x00000002
 
#define IOP_DCIC_DB   0x00000001
 
#define IOP_CAUSE_BD   (1 << 31)
 

Detailed Description

IOP Co-processor 0(COP0) register definitions.

Definition in file iop_cop0_defs.h.

Macro Definition Documentation

◆ M_IOP_GET_CAUSE_EXCODE

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

Definition at line 19 of file iop_cop0_defs.h.

◆ IOP_COP0_BPC

#define IOP_COP0_BPC   $3

Definition at line 22 of file iop_cop0_defs.h.

◆ IOP_COP0_BDA

#define IOP_COP0_BDA   $5

Definition at line 23 of file iop_cop0_defs.h.

◆ IOP_COP0_DCIC

#define IOP_COP0_DCIC   $7

Definition at line 24 of file iop_cop0_defs.h.

◆ IOP_COP0_BADVADDR

#define IOP_COP0_BADVADDR   $8

Definition at line 25 of file iop_cop0_defs.h.

◆ IOP_COP0_BDAM

#define IOP_COP0_BDAM   $9

Definition at line 26 of file iop_cop0_defs.h.

◆ IOP_COP0_BPCM

#define IOP_COP0_BPCM   $11

Definition at line 27 of file iop_cop0_defs.h.

◆ IOP_COP0_STATUS

#define IOP_COP0_STATUS   $12

Definition at line 28 of file iop_cop0_defs.h.

◆ IOP_DCIC_TR

#define IOP_DCIC_TR   0x80000000

Trap enable

Definition at line 32 of file iop_cop0_defs.h.

◆ IOP_DCIC_UD

#define IOP_DCIC_UD   0x40000000

User debug enable

Definition at line 34 of file iop_cop0_defs.h.

◆ IOP_DCIC_KD

#define IOP_DCIC_KD   0x20000000

Kernel debug enable

Definition at line 36 of file iop_cop0_defs.h.

◆ IOP_DCIC_TE

#define IOP_DCIC_TE   0x10000000

Trace enable

Definition at line 38 of file iop_cop0_defs.h.

◆ IOP_DCIC_DW

#define IOP_DCIC_DW   0x08000000

Enable data breakpoints on write

Definition at line 40 of file iop_cop0_defs.h.

◆ IOP_DCIC_DR

#define IOP_DCIC_DR   0x04000000

Enable data breakpoints on read

Definition at line 42 of file iop_cop0_defs.h.

◆ IOP_DCIC_DAE

#define IOP_DCIC_DAE   0x02000000

Enable data addresss breakpoints

Definition at line 44 of file iop_cop0_defs.h.

◆ IOP_DCIC_PCE

#define IOP_DCIC_PCE   0x01000000

Enable instruction breakpoints

Definition at line 46 of file iop_cop0_defs.h.

◆ IOP_DCIC_DE

#define IOP_DCIC_DE   0x00800000

Debug enable

Definition at line 48 of file iop_cop0_defs.h.

◆ IOP_DCIC_DL

#define IOP_DCIC_DL   0x00008000

Data cache line invalidate

Definition at line 50 of file iop_cop0_defs.h.

◆ IOP_DCIC_IL

#define IOP_DCIC_IL   0x00004000

Instruction cache line invalidate

Definition at line 52 of file iop_cop0_defs.h.

◆ IOP_DCIC_D

#define IOP_DCIC_D   0x00002000

Data cache invalidate enable

Definition at line 54 of file iop_cop0_defs.h.

◆ IOP_DCIC_I

#define IOP_DCIC_I   0x00001000

Instr. cache invalidate enable

Definition at line 56 of file iop_cop0_defs.h.

◆ IOP_DCIC_T

#define IOP_DCIC_T   0x00000020

Trace, set by CPU

Definition at line 58 of file iop_cop0_defs.h.

◆ IOP_DCIC_W

#define IOP_DCIC_W   0x00000010

Write reference, set by CPU

Definition at line 60 of file iop_cop0_defs.h.

◆ IOP_DCIC_R

#define IOP_DCIC_R   0x00000008

Read reference, set by CPU

Definition at line 62 of file iop_cop0_defs.h.

◆ IOP_DCIC_DA

#define IOP_DCIC_DA   0x00000004

Data address, set by CPU

Definition at line 64 of file iop_cop0_defs.h.

◆ IOP_DCIC_PC

#define IOP_DCIC_PC   0x00000002

Program counter, set by CPU

Definition at line 66 of file iop_cop0_defs.h.

◆ IOP_DCIC_DB

#define IOP_DCIC_DB   0x00000001

Debug, set by CPU

Definition at line 68 of file iop_cop0_defs.h.

◆ IOP_CAUSE_BD

#define IOP_CAUSE_BD   (1 << 31)

Definition at line 71 of file iop_cop0_defs.h.