Prevent non-debug writes to CTA

This commit is contained in:
2024-12-23 09:56:54 -06:00
parent 18b2c589e6
commit d802d39d8d
2 changed files with 10 additions and 4 deletions
+6 -4
View File
@@ -481,10 +481,12 @@ static void vipWriteIO(
break;
case 0x5F830>>1: /* CTA */
if ((mask & 0xFF00) == 0)
sim->vip.cta.cta_r = value >> 8;
if ((mask & 0x00FF) == 0)
sim->vip.cta.cta_l = value;
if (debug) {
if ((mask & 0xFF00) == 0)
sim->vip.cta.cta_r = value >> 8;
if ((mask & 0x00FF) == 0)
sim->vip.cta.cta_l = value;
}
break;
case 0x5F842>>1: /* XPCTRL */