-
Notifications
You must be signed in to change notification settings - Fork 49
Document bank's set, get, unmapped_get -- SIMICS-23287
#404
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: main
Are you sure you want to change the base?
Conversation
|
actually, im curious just how |
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.
Pull request overview
This PR adds documentation for three bank methods (set, get, and unmapped_get) that were previously undocumented, and clarifies the return behavior of unmapped_read. These methods provide simpler variants for inquiry-type accesses to banks in the SIMICS device modeling language.
- Enhanced
unmapped_readdocumentation to specify its return type and behavior when overridden - Added documentation for
set()method used for inquiry write accesses - Added documentation for
get()andunmapped_get()methods used for inquiry read accesses
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
2ceffbc to
744030a
Compare
744030a to
551e1fd
Compare
|
@mandolaerik ping |
| </dt><dd> | ||
| A simpler variant of `read()` used exclusively for inquiry read accesses to | ||
| the bank. Unlike `read`, `get()` unconditionally operates over an entire | ||
| range of bytes (hence `size` rather than `enabled_bytes`) and does not have an |
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.
consider something like , ..., or , ...; also, instead of (...) (and same thing in set). Parentheses are generally harmful for text flow, so it's good to avoid them if that's easy.
| `aux` parameter. Unlike `set()`, invocations to `get()` may throw, in | ||
| particular when some part of the access is not covered by mapped registers. |
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.
it could be worth mentioning something about the semantics of an exception, which for many years was not obvious to me. An exception indicates that some part of the accessed bytes is not mapped, and this is used by Simics in inspection commands such as x/examine-memory..
mandolaerik
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.
Comments are optional.
No description provided.