Skip to content

ARM, SM83: Avoid single stepping if CPU is halted or blocked#3602

Open
nuive wants to merge 1 commit intomgba-emu:masterfrom
nuive:halt-fix
Open

ARM, SM83: Avoid single stepping if CPU is halted or blocked#3602
nuive wants to merge 1 commit intomgba-emu:masterfrom
nuive:halt-fix

Conversation

@nuive
Copy link
Copy Markdown
Contributor

@nuive nuive commented Sep 29, 2025

Single step functions would run an instruction even if CPU was halted or blocked. This disrupted the order of events as well as synchronization between the different components. SIO even caused emulator crashes randomly.

@endrift
Copy link
Copy Markdown
Member

endrift commented Oct 30, 2025

Unfortunately, making single stepping always do something was an intentional semantic design choice. It is assumed that something will happen if you call step. I assume there are some callsites that still try to call step when the core is halted due to external concerns. I would try to root out where and why, and how to prevent that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants