Skip to content

corrects trap state checking in memory operations (updated generator) - #65

Merged
eyck merged 1 commit into
mainfrom
bugfix/async_traps
Nov 23, 2026
Merged

eyck merged 1 commit into
mainfrom
bugfix/async_traps

Conversation

@EAlexJ

@EAlexJ EAlexJ commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

In case an interrupt arrived before a memory operation the instruction would not be retired but the NEXT_PC was already bumped. I made the decision that asynchronous traps only get checked after instructions retire, synchronous traps get taken immediately when they arise The alternative would have been to move the PC bump to after the instruction behavior

In case an interrupt arrived before a memory operation the instruction would not be retired but the NEXT_PC was already bumped.
I made the decision that asynchronous traps only get checked after instructions retire, synchronous traps get taken immediately when they arise
The alternative would have been to move the PC bump to after the instruction behavior

@eyck eyck left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eyck
eyck merged commit b29025a into main Nov 23, 2026
8 checks passed
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