Skip to content
Prev Previous commit
32X GDB stub commit
  • Loading branch information
Genos3 committed Jul 8, 2025
commit cb9cbb92bbef7006a62ad4140da1be75277f832a
2 changes: 1 addition & 1 deletion ares/md/m32x/m32x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ auto M32X::initDebugHooks() -> void {
switch (regIdx)
{
case 16: return hex(shm.regs.PC - 4, 8, '0');
case 17: return hex(shm.regs.PR - 4, 8, '0');
case 17: return hex(shm.regs.PR, 8, '0');
case 18: return hex(shm.regs.GBR, 8, '0');
case 19: return hex(shm.regs.VBR, 8, '0');
case 20: return hex(shm.regs.MACH, 8, '0');
Expand Down
5 changes: 4 additions & 1 deletion ares/md/m32x/sh7604.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ auto M32X::SH7604::main() -> void {
updateLoopCounter--;

if (!GDB::server.reportDelayedPC(regs.PC)) {
GDB::server.updateLoop();
if (!updateLoopCounter) {
GDB::server.updateLoop();
updateLoopCounter = 23000000 / 60 / 240;
}
return;
} else if (!updateLoopCounter) {
GDB::server.updateLoop();
Expand Down