Skip to content

Conversation

@alees24
Copy link
Contributor

@alees24 alees24 commented Jul 25, 2025

Fix the disabling of interrupts in the _interrupt_set functions; these were previously incapable of clearing the mie|mstatus bit. Modify the interrupt timeout loop in plic_tests.hh accordingly.

Re-express mcycle 'wfiTimeout' check to be robust against counter wraparound (this takes only about 100 seconds of run time on the Sonata board at 40MHz).

@alees24 alees24 requested a review from AlexJones0 July 25, 2025 14:44
Fix the disabling of interrupts in the `_interrupt_set` functions;
these were previously incapable of clearing the mie|mstatus bit.
Modify the interrupt timeout loop in plic_tests.hh accordingly.

Re-express mcycle 'wfiTimeout' check to be robust against counter
wraparound (this takes only about 100 seconds of run time on the
Sonata board at 40MHz).
Copy link
Contributor

@AlexJones0 AlexJones0 left a comment

Choose a reason for hiding this comment

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

Thanks for fixing both these bugs! The wait avoiding the counter wraparound is also much nicer now.

@alees24 alees24 merged commit 89e60a6 into lowRISC:main Jul 25, 2025
3 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