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

fixed infinite loops in InterruptsM tests #435

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

Conversation

HamzaYusufJamal
Copy link
Contributor

No description provided.

@davidharrishmc
Copy link
Collaborator

I don’t think this has been adequately tested yet. The methods of clearing interrupts arent’ right. See Figure 89 about interrupt sources.

For example, Line 115 and 116 are not right. Csrc sip, 32 only works if sip is implemented, which requires the S extension, which is not present in a processor with only machine mode. Csrc mip, 32 clears STIP, not mtimer.

MEIP and SEIP are also dependent on the PLIC. WALLY-init-lib needs to clear both of these interrupt sources at the PLIC.

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