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

[bus] Return error if decode fails #2142

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

alees24
Copy link
Contributor

@alees24 alees24 commented Feb 15, 2024

Return an error signal to the host if an address request does not match any device.

Previously a decode failure would match against the first device, and in the Ibex Demo System that happens to be the SRAM; any attempt to read/write to an invalid address - including dereferencing of NULL pointers - hits the SRAM.

From a software perspective it is much more helpful to receive an immediate exception report with MCAUSE/MTVAL.

Return an error signal to the host if an address request
does not match any device.
Previously a decode failure would match against the first
device, which in the Ibex Demo System happens to be
the SRAM.
@alees24 alees24 requested review from rswarbrick and HU90m February 15, 2024 15:39
@alees24 alees24 added this pull request to the merge queue Feb 15, 2024
Merged via the queue into lowRISC:master with commit ea1a208 Feb 15, 2024
11 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