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

Fix Interrupt/Hart Mapping and BOOM Hart 0 Default #278

Merged
merged 1 commit into from
Jun 10, 2019

Conversation

abejgonzalez
Copy link
Contributor

Fixes a bug where assigning hartId of 0 to BOOM would not match with that the interrupts would be assigned in the PLIC and CLINT. This was due to the ordering of the connectInterrupts function.

Additionally, have the WithRenumberHarts have BOOM harts be ordered before Rocket harts.

@abejgonzalez
Copy link
Contributor Author

Im pretty sure this is a bug with the RocketSubsystem. I assume they don't allow cores to arbitrarily change their hartId which will break the CLINT interrupt mapping.

Checking as we speak.

@abejgonzalez
Copy link
Contributor Author

I can confirm that this issue also does present itself in Rocket.

@abejgonzalez
Copy link
Contributor Author

Since this will apply to things in project-template... any thoughts @colinschmidt (are there some rocket-chip people I should add?)

Copy link
Collaborator

@colinschmidt colinschmidt left a comment

Choose a reason for hiding this comment

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

LGTM. We could probably upstream the sort by hartID thing but it wouldn't help project-template anyways so its probably not worth it. Unless you have a simple config that renumbers harts and breaks rocket-chip.

@jerryz123 jerryz123 merged commit b2eed81 into master Jun 10, 2019
@abejgonzalez abejgonzalez deleted the order-interrupt-connections branch June 10, 2019 21:02
jerryz123 pushed a commit that referenced this pull request Mar 11, 2021
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.

None yet

4 participants