Skip to content

Stopcount only applies to hart-local counters.#405

Merged
Tim Newsome (timsifive) merged 2 commits into
masterfrom
stopcount
Dec 12, 2018
Merged

Stopcount only applies to hart-local counters.#405
Tim Newsome (timsifive) merged 2 commits into
masterfrom
stopcount

Conversation

@timsifive

Copy link
Copy Markdown
Contributor

The cycle counter is global across all harts in a core, so shouldn't
stop in multi-hart cores.

This change is not 100% backwards compatible. A testsuite testing 0.13
might check that cycle stops while halted with stopcount=1, and this
change would break that.
I think it's compatible enough, however, since halting cycle on a
multi-hart core with not all harts halted is even more broken.

Fixes #388

The cycle counter is global across all harts in a core, so shouldn't
stop in multi-hart cores.

This change is not 100% backwards compatible. A testsuite testing 0.13
might check that cycle stops while halted with stopcount=1, and this
change would break that.
I think it's compatible enough, however, since halting cycle on a
multi-hart core with not all harts halted is even more broken.

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.

The change looks good.

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