-
Notifications
You must be signed in to change notification settings - Fork 241
Add configuration option for reserved behavior pmpcfg with r=0, w=1
#1422
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
base: master
Are you sure you want to change the base?
Conversation
Timmmm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! LGTM, just a few minor naming tweaks.
Test Results2 115 tests 2 115 ✅ 17m 53s ⏱️ Results for commit 00aee87. ♻️ This comment has been updated with latest results. |
|
last commit,
|
pmundkur
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps rebase this while you're at it?
model/pmp/pmp_regs.sail
Outdated
| // 1. exit the simulation with a fatal error | ||
| // 2. R, W and X are all set to 0. | ||
| let cfg = if cfg[W] == 0b1 & cfg[R] == 0b0 then ( | ||
| match (config base.reserved_behavior.pmpcfg_write_only : PmpWriteOnlyReservedBehavior) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same suggestion as #1403: hoist this into a let in core/platform_config.sail.
1297d58 to
79e4f83
Compare
|
last commit, Move PmpWriteOnlyReservedBehavior from types.sail to platform_config.sail, and add the variable pmp_write_only_reserved_behavior in platform_config.sail. |
…sail, and add the variable pmp_write_only_reserved_behavior in platform_config.sail.
79e4f83 to
00aee87
Compare
pmundkur
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's some overlap with #1403 (e.g. in prelude/errors). so one or the other will need rebasing.
Add configuration option for reserved behavior pmpcfg with R=0 and W=1.
It allows two options: a fatal error that stops the simulation, or setting it to R=0, W=0, X=0 as the default choice.
See #775