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

FESVR: Can't read a DM register when DMACTIVE=0 #392

Merged
merged 1 commit into from
Feb 11, 2020

Conversation

mwachs5
Copy link
Contributor

@mwachs5 mwachs5 commented Feb 10, 2020

As noted in discussion in chipsalliance/rocket-chip#2205, its not really allowed by the debug spec to read Debug Module DMI registers when DMACTIVE is 0. OpenOCD was fixed a while ago (riscv-collab/riscv-openocd@906635c) to not do this. FESVR has never been fixed.

This PR does not set DMACTIVE to 0 even when resuming a hart. This shouldn't have any actual impact on the performance since having DMACTIVE=1 doesn't necessarily do anything to the hart's execution (though it may prevent clock gating or other low-power mechanisms).

@aswaterman aswaterman merged commit ab141b8 into master Feb 11, 2020
@aswaterman aswaterman deleted the fesvr-no-dm-when-dmactive-0 branch February 11, 2020 02:45
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.

3 participants