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

AR: Clarify itrigger behavior. #901

Merged
merged 1 commit into from Oct 10, 2023
Merged

AR: Clarify itrigger behavior. #901

merged 1 commit into from Oct 10, 2023

Conversation

timsifive
Copy link
Contributor

Specifically, make clear that itrigger fires after the original exception has finished updating all the CSRs.

Hopefully resolves #890.

Copy link
Collaborator

@pdonahue-ventana pdonahue-ventana left a comment

Choose a reason for hiding this comment

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

I would say that the trigger fires after the trap. This says "when the trigger fires" we first do the trap behavior. It seems clearer to me to say that the trap happens and we do all the normal trap stuff then after that the trigger fires and we do all the normal trigger stuff.

@timsifive
Copy link
Contributor Author

Yes, I like this better. Thanks.

Copy link
Collaborator

@pdonahue-ventana pdonahue-ventana left a comment

Choose a reason for hiding this comment

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

The same update should probably be made for etrigger since it had pretty much the same language.

Specifically, make clear that itrigger fires *after* the original
exception has finished updating all the CSRs.

Hopefully resolves #890.
@timsifive
Copy link
Contributor Author

Made the same change for etrigger.

Copy link
Collaborator

@pdonahue-ventana pdonahue-ventana left a comment

Choose a reason for hiding this comment

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

👍

@timsifive timsifive merged commit 3a20826 into master Oct 10, 2023
1 check passed
@timsifive timsifive deleted the itrigger_det branch October 10, 2023 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

For interrupt and exception triggers with action = 0, what value for mcause?
2 participants