sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
hwbp.h File Reference
#include <tamtypes.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_BED

#define BPC_BED   (1 << 15)

Breakpoint exception enable

Definition at line 55 of file hwbp.h.

◆ BPC_DKE

#define BPC_DKE   (1 << 19)

Control of data breakpoint in kernel mode

Definition at line 45 of file hwbp.h.

◆ BPC_DRB

#define BPC_DRB   (1 << 1)

Data read breakpoint occurred

Definition at line 60 of file hwbp.h.

◆ BPC_DRE

#define BPC_DRE   (1 << 30)

Data address (read) breakpoint enable

Definition at line 25 of file hwbp.h.

◆ BPC_DSE

#define BPC_DSE   (1 << 20)

Control of data breakpoint in supervisor mode

Definition at line 43 of file hwbp.h.

◆ BPC_DTE

#define BPC_DTE   (1 << 16)

Control of data trigger signal

Definition at line 52 of file hwbp.h.

◆ BPC_DUE

#define BPC_DUE   (1 << 21)

Control of data breakpoint in user mode

Definition at line 41 of file hwbp.h.

◆ BPC_DVE

#define BPC_DVE   (1 << 28)

Data value breakpoint enable

Definition at line 29 of file hwbp.h.

◆ BPC_DWB

#define BPC_DWB   (1 << 2)

Data write breakpoint occurred

Definition at line 58 of file hwbp.h.

◆ BPC_DWE

#define BPC_DWE   (1 << 29)

Data address (write) breakpoint enable

Definition at line 27 of file hwbp.h.

◆ BPC_DXE

#define BPC_DXE   (1 << 18)

Control of data breakpoint in level 1 exception mode

Definition at line 47 of file hwbp.h.

◆ BPC_IAB

#define BPC_IAB   (1 << 0)

Data instruction breakpoint occurred

Definition at line 62 of file hwbp.h.

◆ BPC_IAE

#define BPC_IAE   (1 << 31)

Instruction address breakpoint enable

Definition at line 23 of file hwbp.h.

◆ BPC_IKE

#define BPC_IKE   (1 << 24)

Control of instruction breakpoint in kernel mode

Definition at line 36 of file hwbp.h.

◆ BPC_ISE

#define BPC_ISE   (1 << 25)

Control of instruction breakpoint in supervisor mode

Definition at line 34 of file hwbp.h.

◆ BPC_ITE

#define BPC_ITE   (1 << 17)

Control of instruction trigger signal

Definition at line 50 of file hwbp.h.

◆ BPC_IUE

#define BPC_IUE   (1 << 26)

Control of instruction breakpoint in user mode

Definition at line 32 of file hwbp.h.

◆ BPC_IXE

#define BPC_IXE   (1 << 23)

Control of instruction breakpoint in level 1 exception mode

Definition at line 38 of file hwbp.h.

Function Documentation

◆ GetBPC()

u32 GetBPC ( void )
extern

Get the BPC register

◆ GetDAB()

u32 GetDAB ( void )
extern

Get the data address register

◆ GetDABM()

u32 GetDABM ( void )
extern

Get the data address register

◆ GetDVB()

u32 GetDVB ( void )
extern

Get the data value mask register

◆ GetDVBM()

u32 GetDVBM ( void )
extern

Get the data value mask register

◆ GetIAB()

u32 GetIAB ( void )
extern

Get the instruction address register

◆ GetIABM()

u32 GetIABM ( void )
extern

Get the instruction address mask register

◆ InitBPC()

void InitBPC ( void )
extern

Initialise the Breakpoint controller

◆ SetBPC()

void SetBPC ( u32 bpc)
extern

Set the BPC register

◆ SetDAB()

void SetDAB ( u32 val)
extern

Set the data address register

◆ SetDABM()

void SetDABM ( u32 val)
extern

Set the data address mask register

◆ 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

◆ SetDVB()

void SetDVB ( u32 val)
extern

Set the data value register

◆ SetDVBM()

void SetDVBM ( u32 val)
extern

Set the data value mask register

◆ SetIAB()

void SetIAB ( u32 val)
extern

Set the instruction address register

◆ SetIABM()

void SetIABM ( u32 val)
extern

Set the instruction address mask register

◆ SetInstructionBP()

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

Set an instruction BP