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

[cosim] Update comment on set_mip in Cosim interface #2256

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion dv/cosim/cosim.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,15 @@ class Cosim {

// Set the value of MIP.
//
// At the next call of `step`, the MIP value will take effect (i.e. if it's a
// Two versions of MIP must be supplied the `pre_mip` and the `post_mip`. The
// `pre_mip` is the value of MIP that is used to determine if an interrupt is
// pending. The `post_mip` is the value of MIP that the next instruction
// executed (which will be the first instruction of the interrupt vector when
// an interrupt ir triggered) observes. These will be different in the case
// where an interrupt is raised triggering an interrupt handler but then
// drops before the first instruction of the handler has executed.
//
// At the next call of `step`, the MIP values will take effect (i.e. if it's a
// new interrupt that is enabled it will step straight to that handler).
virtual void set_mip(uint32_t pre_mip, uint32_t post_mip) = 0;

Expand Down
Loading