Skip to content

require polling of dmactive low as well as dmactive high transitions - #566

Merged
Tim Newsome (timsifive) merged 1 commit into
riscv:masterfrom
benscotstaveley:poll_for_dmactive_low
Oct 16, 2020
Merged

require polling of dmactive low as well as dmactive high transitions#566
Tim Newsome (timsifive) merged 1 commit into
riscv:masterfrom
benscotstaveley:poll_for_dmactive_low

Conversation

@benscotstaveley

Copy link
Copy Markdown
Contributor

This proposed spec change would allow a DM time to deactivate gracefully by requiring a debugger to poll after writing 0 to dmcontrol.dmactive. Currently the spec only states that a debugger should poll after writing 1 to this bit.

Prior discussion can be found in my post to the tech-debug mailing list on 2020.10.13, Subject "How to reliably inform debugger of completion of DM inactivation?".

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks, this change looks good to me!

@timsifive Tim Newsome (timsifive) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. I'll merge it tomorrow unless there are more comments.

This change is backwards-incompatible, but it's a trivial change for debuggers that allows some hardware implementations to be simplified a little.

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.

3 participants