--- a/src/sh4/sh4core.c Mon Dec 26 10:47:10 2005 +0000 +++ b/src/sh4/sh4core.c Mon Dec 26 11:47:15 2005 +0000 @@ -1,5 +1,5 @@ /** - * $Id: sh4core.c,v 1.15 2005-12-26 10:47:10 nkeynes Exp $ + * $Id: sh4core.c,v 1.16 2005-12-26 11:47:15 nkeynes Exp $ * * SH4 emulation core, and parent module for all the SH4 peripheral * modules. @@ -90,6 +90,44 @@ SCIF_reset(); } +static struct breakpoint_struct sh4_breakpoints[MAX_BREAKPOINTS]; +static int sh4_breakpoint_count = 0; + +void sh4_set_breakpoint( uint32_t pc, int type ) +{ + sh4_breakpoints[sh4_breakpoint_count].address = pc; + sh4_breakpoints[sh4_breakpoint_count].type = type; + sh4_breakpoint_count++; +} + +gboolean sh4_clear_breakpoint( uint32_t pc, int type ) +{ + int i; + + for( i=0; i