Skip to content

Conversation

@lwaern-intel
Copy link
Contributor

No description provided.

@lwaern-intel
Copy link
Contributor Author

actually, im curious just how poorly very-extremely-good copilot will handle this

@lwaern-intel lwaern-intel requested a review from Copilot December 10, 2025 12:16
Copy link

Copilot AI left a 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_read documentation to specify its return type and behavior when overridden
  • Added documentation for set() method used for inquiry write accesses
  • Added documentation for get() and unmapped_get() methods used for inquiry read accesses

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lwaern-intel
Copy link
Contributor Author

@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
Copy link
Contributor

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.

Comment on lines +1836 to +1837
`aux` parameter. Unlike `set()`, invocations to `get()` may throw, in
particular when some part of the access is not covered by mapped registers.
Copy link
Contributor

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..

Copy link
Contributor

@mandolaerik mandolaerik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments are optional.

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