Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#769] Fix msp430 entering/exiting Interrupt handlers #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peroxyacyl
Copy link

@peroxyacyl peroxyacyl commented Mar 18, 2025

This PR fixes renode/renode#769

Description

To support 20-bit extension of PC, MSP430X does following:

  • When entering the interrupt handlers, it pushes the higher 4bits of SP with SR contents.
  • When exiting the interrupt handlers, it pops two words for the SR (12bits) and PC(20bits)

The current implementation loses the higher 4bits in PC of the original context.
Screenshot 2025-03-18 at 12 03 36

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.

MSP430X: Issues on Entering/Exiting Interrupt handlers
1 participant