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

🐛 [rtl/core] fix bug in mip CSR clear/acknowledge #280

Merged
merged 4 commits into from
Feb 24, 2022
Merged

Conversation

stnolting
Copy link
Owner

This PR fixes a bug that has been introduced in version 1.6.4.6 / PR #236: to clear a pending interrupt application software has to write ZERO (and not one!) to the according mip bit (according to the RISC-V privilege architecture specifications). Hence, the acknowledge/clear mask needs to be inverted.

software has to write ZERO to clear the according pending interrupt
@stnolting stnolting added bug Something isn't working risc-v compliance Modification to comply with official RISC-V specs. HW hardware-related labels Feb 24, 2022
@stnolting stnolting self-assigned this Feb 24, 2022
bit needs to be CLEARED and not set
🐛 fix mip CSR write access (set ZERO to clear pending IRQ)
@stnolting stnolting changed the title 🐛 [rtl/core] fix mip CSR clear/acknowledge 🐛 [rtl/core] fix bug in mip CSR clear/acknowledge Feb 24, 2022
@stnolting stnolting marked this pull request as ready for review February 24, 2022 04:49
@stnolting stnolting merged commit a0b8230 into main Feb 24, 2022
@stnolting stnolting deleted the fix_mip_csr_bug branch February 24, 2022 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working HW hardware-related risc-v compliance Modification to comply with official RISC-V specs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant