mirror of
https://github.com/digarok/gsplus.git
synced 2024-10-31 15:05:55 +00:00
set page protection for temporary breakpoints.
This commit is contained in:
parent
e07f0a99e7
commit
027689aea5
@ -32,6 +32,9 @@ extern word32 g_mp_breakpoints[];
|
||||
extern int g_num_bp_breakpoints;
|
||||
extern word32 g_bp_breakpoints[];
|
||||
|
||||
extern int g_num_tp_breakpoints;
|
||||
extern word32 g_tp_breakpoints[];
|
||||
|
||||
|
||||
extern Page_info page_info_rd_wr[];
|
||||
|
||||
@ -273,6 +276,14 @@ void fixup_brks() {
|
||||
/* why IO_TMP? */
|
||||
}
|
||||
|
||||
for (i = 0; i < g_num_tp_breakpoints; ++i) {
|
||||
page = (g_tp_breakpoints[i] >> 8) & 0xffff;
|
||||
val = GET_PAGE_INFO_RD(page);
|
||||
val = (Pg_info)((ptrdiff_t)val | BANK_BREAK);
|
||||
SET_PAGE_INFO_RD(page, val);
|
||||
/* why IO_TMP? */
|
||||
}
|
||||
|
||||
for (i = 0; i < g_num_mp_breakpoints; ++i) {
|
||||
page = (g_mp_breakpoints[i] >> 8) & 0xffff;
|
||||
val = GET_PAGE_INFO_WR(page);
|
||||
|
Loading…
Reference in New Issue
Block a user