13 #define SYS_DBG_PPU_NUM_GPR 32 15 #define SYS_DBG_PPU_NUM_FPR 32 17 #define SYS_DBG_PPU_NUM_VR 32 19 #define SYS_DBG_PPU_VR_WIDTH 16 22 #define SYS_DBG_SPU_NUM_GPR 128 24 #define SYS_DBG_SPU_NUM_MFC_CQ_SR 96 26 #define SYS_DBG_SPU_GPR_WIDTH 16 28 #define SYS_DBG_SPU_NUM_MB 4 37 PPU_THREAD_STATUS_IDLE,
38 PPU_THREAD_STATUS_RUNNABLE,
39 PPU_THREAD_STATUS_ONPROC,
40 PPU_THREAD_STATUS_SLEEP,
41 PPU_THREAD_STATUS_STOP,
42 PPU_THREAD_STATUS_ZOMBIE,
43 PPU_THREAD_STATUS_DELETED,
44 PPU_THREAD_STATUS_UNKNOWN
50 SPU_THREAD_GROUP_STATUS_NOTINITIALIZED,
51 SPU_THREAD_GROUP_STATUS_INITIALIZED,
52 SPU_THREAD_GROUP_STATUS_READY,
53 SPU_THREAD_GROUP_STATUS_WAITING,
54 SPU_THREAD_GROUP_STATUS_SUSPENDED,
55 SPU_THREAD_GROUP_STATUS_WAITING_AND_SUSPENDED,
56 SPU_THREAD_GROUP_STATUS_RUNNING,
57 SPU_THREAD_GROUP_STATUS_STOPPED,
58 SPU_THREAD_GROUP_STATUS_UNKNOWN,
#define SYS_DBG_PPU_VR_WIDTH
size (in bytes) of a PPU VR register
Definition: dbg.h:19
u64 fpr[SYS_DBG_PPU_NUM_FPR]
FPR registers.
Definition: dbg.h:96
u32 pc
PC register.
Definition: dbg.h:95
s32 sysDbgReadSPUThreadContext(u32 thread_id, sys_dbg_spu_thread_context_t *context)
Read a SPU thread context.
s32 sysDbgGetSPUThreadGroupName(u32 group_id, char *name)
Get SPU thread group name.
s32 sysDbgGetGetSPUThreadGroupStatus(u32 group_id, sys_dbg_spu_thread_group_status_t *status)
Get SPU thread group status.
u32 mb_stat
MB status register.
Definition: dbg.h:111
s32 sysDbgGetPPUThreadIds(sys_ppu_thread_t *ids, u64 *num_ids, u64 *num_all_ids)
Get the list of PPU thread ids.
#define SYS_DBG_PPU_NUM_GPR
number of PPU GPR registers
Definition: dbg.h:13
PPU thread context.
Definition: dbg.h:88
u32 spu_status
SPU status.
Definition: dbg.h:109
s32 sysDbgSetStacksizePPUExceptionHandler(size_t stacksize)
Set stack size of PPU thread exception handler.
u64 gpr[SYS_DBG_PPU_NUM_GPR]
GPR registers.
Definition: dbg.h:90
u32 cr
CR register.
Definition: dbg.h:91
struct _sys_dbg_ppu_thread_context sys_dbg_ppu_thread_context_t
PPU thread context.
s32 sysDbgRegisterPPUExceptionHandler(dbg_exception_handler_t handler, u64 flags)
Register a PPU exception handler.
s32 sysDbgGetSPUThreadGroupIds(u32 *group_ids, u64 *num_ids, u64 *num_all_ids)
Get the list of SPU thread group ids.
s32 sysDbgFinalizePPUExceptionHandler()
s32 sysDbgGetSPUThreadName(u32 thread_id, char *name)
Get SPU thread name.
#define SYS_DBG_SPU_NUM_MB
number of SPU inbound MB entries
Definition: dbg.h:28
u64 mfc_cq_sr[SYS_DBG_SPU_NUM_MFC_CQ_SR]
MFC CQ SR registers.
Definition: dbg.h:115
sys_dbg_spu_thread_group_status_t
Possible statuses for PPU thread groups.
Definition: dbg.h:48
#define SYS_DBG_SPU_NUM_GPR
number of SPU GPR registers
Definition: dbg.h:22
Event queue management functions.
sys_dbg_ppu_thread_status_t
Possible statuses for PPU threads.
Definition: dbg.h:35
u32 ctr
CTR register.
Definition: dbg.h:94
u32 decrementer
Decrementer register.
Definition: dbg.h:114
u32 fpscr
FPSCR register.
Definition: dbg.h:97
u32 npc
NPC register.
Definition: dbg.h:106
s32 sysDbgGetSPUThreadIds(u32 group_id, u32 *thread_ids, u64 *num_ids, u64 *num_all_ids)
Get the list of SPU thread ids in a SPU thread group.
u32 srr0
SRR0 register.
Definition: dbg.h:108
void(* dbg_exception_handler_t)(u64 cause, sys_ppu_thread_t tid, u64 dar)
Function pointer to a PPU exception handler.
Definition: dbg.h:119
u64 spu_cfg
SPU config.
Definition: dbg.h:110
u32 ppu_mb
outbound MB register
Definition: dbg.h:112
SPU thread context.
Definition: dbg.h:103
struct _sys_dbg_spu_thread_context sys_dbg_spu_thread_context_t
SPU thread context.
sys_dbg_vr_t vscr
VSCR register.
Definition: dbg.h:99
u32 xer
XER register.
Definition: dbg.h:92
u32 spu_mb[SYS_DBG_SPU_NUM_MB]
inbound MB queue
Definition: dbg.h:113
s32 sysDbgUnregisterPPUExceptionHandler()
Unregister the PPU thread exception handler.
#define SYS_DBG_PPU_NUM_VR
number of PPU VR registers
Definition: dbg.h:17
#define SYS_DBG_SPU_NUM_MFC_CQ_SR
number of SPU MFC/CQ/SR registers
Definition: dbg.h:24
s32 sysDbgGetPPUThreadStatus(sys_ppu_thread_t id, sys_dbg_ppu_thread_status_t *status)
Get PPU thread status.
sys_dbg_vr_t vr[SYS_DBG_PPU_NUM_VR]
VR registers.
Definition: dbg.h:98
#define SYS_DBG_SPU_GPR_WIDTH
size (in bytes) of a SPU GPR register
Definition: dbg.h:26
sys_dbg_spu_gpr_t gpr[SYS_DBG_SPU_NUM_GPR]
GPR registers.
Definition: dbg.h:105
s32 sysDbgReadPPUThreadContext(sys_ppu_thread_t id, sys_dbg_ppu_thread_context_t *context)
Read a PPU thread context.
s32 sysDbgGetPPUThreadName(sys_ppu_thread_t id, char *name)
Get PPU thread name.
u32 lr
LR register.
Definition: dbg.h:93
s32 sysDbgInitializePPUExceptionHandler(s32 prio)
Initialization of the PPU thread exception handler.
contents of a SPU GPR register
Definition: dbg.h:75
#define SYS_DBG_PPU_NUM_FPR
number of PPU FPR registers
Definition: dbg.h:15
u32 fpscr
FPSCR register.
Definition: dbg.h:107
contents of a PPU VR register
Definition: dbg.h:62