PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
hwbp.h File Reference
#include <tamtypes.h>
+ Include dependency graph for hwbp.h:

Go to the source code of this file.

Macros

#define BPC_IAE   (1 << 31)
 
#define BPC_DRE   (1 << 30)
 
#define BPC_DWE   (1 << 29)
 
#define BPC_DVE   (1 << 28)
 
#define BPC_IUE   (1 << 26)
 
#define BPC_ISE   (1 << 25)
 
#define BPC_IKE   (1 << 24)
 
#define BPC_IXE   (1 << 23)
 
#define BPC_DUE   (1 << 21)
 
#define BPC_DSE   (1 << 20)
 
#define BPC_DKE   (1 << 19)
 
#define BPC_DXE   (1 << 18)
 
#define BPC_ITE   (1 << 17)
 
#define BPC_DTE   (1 << 16)
 
#define BPC_BED   (1 << 15)
 
#define BPC_DWB   (1 << 2)
 
#define BPC_DRB   (1 << 1)
 
#define BPC_IAB   (1 << 0)
 

Functions

void InitBPC (void)
 
void SetInstructionBP (u32 addr, u32 mask, u32 options)
 
void SetDataAddrBP (u32 addr, u32 mask, u32 options)
 
void SetDataValueBP (u32 addr, u32 mask, u32 value, u32 vmask, u32 options)
 
u32 GetBPC (void)
 
void SetBPC (u32 bpc)
 
u32 GetIAB (void)
 
void SetIAB (u32 val)
 
u32 GetIABM (void)
 
void SetIABM (u32 val)
 
u32 GetDAB (void)
 
void SetDAB (u32 val)
 
u32 GetDABM (void)
 
void SetDABM (u32 val)
 
u32 GetDVB (void)
 
void SetDVB (u32 val)
 
u32 GetDVBM (void)
 
void SetDVBM (u32 val)
 

Detailed Description

Hardware breakpoint functions

Definition in file hwbp.h.

Macro Definition Documentation

◆ BPC_IAE

#define BPC_IAE   (1 << 31)

Instruction address breakpoint enable

Definition at line 22 of file hwbp.h.

◆ BPC_DRE

#define BPC_DRE   (1 << 30)

Data address (read) breakpoint enable

Definition at line 24 of file hwbp.h.

◆ BPC_DWE

#define BPC_DWE   (1 << 29)

Data address (write) breakpoint enable

Definition at line 26 of file hwbp.h.

◆ BPC_DVE

#define BPC_DVE   (1 << 28)

Data value breakpoint enable

Definition at line 28 of file hwbp.h.

◆ BPC_IUE

#define BPC_IUE   (1 << 26)

Control of instruction breakpoint in user mode

Definition at line 31 of file hwbp.h.

◆ BPC_ISE

#define BPC_ISE   (1 << 25)

Control of instruction breakpoint in supervisor mode

Definition at line 33 of file hwbp.h.

◆ BPC_IKE

#define BPC_IKE   (1 << 24)

Control of instruction breakpoint in kernel mode

Definition at line 35 of file hwbp.h.

◆ BPC_IXE

#define BPC_IXE   (1 << 23)

Control of instruction breakpoint in level 1 exception mode

Definition at line 37 of file hwbp.h.

◆ BPC_DUE

#define BPC_DUE   (1 << 21)

Control of data breakpoint in user mode

Definition at line 40 of file hwbp.h.

◆ BPC_DSE

#define BPC_DSE   (1 << 20)

Control of data breakpoint in supervisor mode

Definition at line 42 of file hwbp.h.

◆ BPC_DKE

#define BPC_DKE   (1 << 19)

Control of data breakpoint in kernel mode

Definition at line 44 of file hwbp.h.

◆ BPC_DXE

#define BPC_DXE   (1 << 18)

Control of data breakpoint in level 1 exception mode

Definition at line 46 of file hwbp.h.

◆ BPC_ITE

#define BPC_ITE   (1 << 17)

Control of instruction trigger signal

Definition at line 49 of file hwbp.h.

◆ BPC_DTE

#define BPC_DTE   (1 << 16)

Control of data trigger signal

Definition at line 51 of file hwbp.h.

◆ BPC_BED

#define BPC_BED   (1 << 15)

Breakpoint exception enable

Definition at line 54 of file hwbp.h.

◆ BPC_DWB

#define BPC_DWB   (1 << 2)

Data write breakpoint occurred

Definition at line 57 of file hwbp.h.

◆ BPC_DRB

#define BPC_DRB   (1 << 1)

Data read breakpoint occurred

Definition at line 59 of file hwbp.h.

◆ BPC_IAB

#define BPC_IAB   (1 << 0)

Data instruction breakpoint occurred

Definition at line 61 of file hwbp.h.

Function Documentation

◆ InitBPC()

void InitBPC ( void )
extern

Initialise the Breakpoint controller

◆ SetInstructionBP()

void SetInstructionBP ( u32 addr,
u32 mask,
u32 options )
extern

Set an instruction BP

◆ SetDataAddrBP()

void SetDataAddrBP ( u32 addr,
u32 mask,
u32 options )
extern

Set a data address BP * Options is one or more of the BPC settings for data address Note you must set BPC_DRE and/or BPC_DWE in the options

◆ SetDataValueBP()

void SetDataValueBP ( u32 addr,
u32 mask,
u32 value,
u32 vmask,
u32 options )
extern

Set a data value BP

◆ GetBPC()

u32 GetBPC ( void )
extern

Get the BPC register

◆ SetBPC()

void SetBPC ( u32 bpc)
extern

Set the BPC register

◆ GetIAB()

u32 GetIAB ( void )
extern

Get the instruction address register

◆ SetIAB()

void SetIAB ( u32 val)
extern

Set the instruction address register

◆ GetIABM()

u32 GetIABM ( void )
extern

Get the instruction address mask register

◆ SetIABM()

void SetIABM ( u32 val)
extern

Set the instruction address mask register

◆ GetDAB()

u32 GetDAB ( void )
extern

Get the data address register

◆ SetDAB()

void SetDAB ( u32 val)
extern

Set the data address register

◆ GetDABM()

u32 GetDABM ( void )
extern

Get the data address register

◆ SetDABM()

void SetDABM ( u32 val)
extern

Set the data address mask register

◆ GetDVB()

u32 GetDVB ( void )
extern

Get the data value mask register

◆ SetDVB()

void SetDVB ( u32 val)
extern

Set the data value register

◆ GetDVBM()

u32 GetDVBM ( void )
extern

Get the data value mask register

◆ SetDVBM()

void SetDVBM ( u32 val)
extern

Set the data value mask register