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

[sw/lib] restore previous registers in neorv32_xirq_get_num function to avoid side effects #1057

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

donlon
Copy link
Collaborator

@donlon donlon commented Oct 14, 2024

Hi,
The neorv32_xirq_get_num function didn't restore previous CSR_MIE and NEORV32_XIRQ->EIE register and could cause unexpected side effects. So these registers are now saved before writing test bits and then restored finally.

neorv32_xirq_get_num didn't restore previous CSR_MIE and
NEORV32_XIRQ->EIE register and could cause unexpected side effect. So we save them before writing test bits and then restore them finally.
@stnolting stnolting added the SW Software-related label Oct 14, 2024
@stnolting
Copy link
Owner

Good point - thanks for the update!

@stnolting stnolting merged commit 3e139ff into stnolting:main Oct 14, 2024
4 checks passed
@donlon donlon deleted the xirq-restore branch October 18, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SW Software-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants