changeset 2519:0fae9d6a77c4 default tip

Fix sub cpu watchpoints
author Michael Pavone <pavone@retrodev.com>
date Sat, 05 Oct 2024 23:31:59 -0700
parents e9bc45dd2eed
children
files segacd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/segacd.c	Sat Oct 05 23:31:35 2024 -0700
+++ b/segacd.c	Sat Oct 05 23:31:59 2024 -0700
@@ -1177,7 +1177,7 @@
 
 	scd_peripherals_run(cd, context->cycles);
 	if (address) {
-		if (cd->enter_debugger) {
+		if (cd->enter_debugger || context->wp_hit) {
 			genesis_context *gen = cd->genesis;
 			cd->enter_debugger = 0;
 #ifndef IS_LIB