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

dm_mem: Clear state of hart upon ndmreset #140

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

andreaskurth
Copy link
Contributor

@andreaskurth andreaskurth commented Sep 28, 2022

As described in #118, the debug module currently considers a halted hart that is being reset with ndmreset to remain halted. However, after a reset, the hart is no longer halted.

This PR feeds ndmreset into dm_mem, where it clears the state of the hart and sets it to neither halted nor resuming.

As described in pulp-platform#118, the debug module currently considers a hart that
is being reset with `ndmreset` to be halted.  However, after a reset,
the hart is no longer halted.

This commit feeds `ndmreset` into `dm_mem`, where it clears the state of
the hart and sets it to neither halted nor resuming.

Signed-off-by: Andreas Kurth <adk@lowrisc.org>
Copy link
Collaborator

@bluewww bluewww left a comment

Choose a reason for hiding this comment

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

lgtm. ndmreset is definitely still iffy but this is definitely and improvement. Passes tests

@bluewww bluewww merged commit de508e7 into pulp-platform:master Oct 4, 2022
@andreaskurth andreaskurth deleted the dm_mem-ndmreset branch October 11, 2022 16:21
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