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

configs: use single hartid #147

Merged
merged 2 commits into from
May 12, 2024
Merged

configs: use single hartid #147

merged 2 commits into from
May 12, 2024

Conversation

cyyself
Copy link
Member

@cyyself cyyself commented May 11, 2024

Before this commit, we use HartIds: Seq[Int] in L2Param. However, it will only contain one element since the code is copied from L3, and L2 is now private to a core, which confuses some developers and causes a bug [1]. To prevent it from happening again, we should use a single HartId here and refactor many of its consumers to use a single HartId.

[1] OpenXiangShan/XiangShan#2966 (comment)

Before this commit, we use HartIds: Seq[Int] in L2Param. However, it
only contain one element since the code is copied from L3, and L2 is now
private to a core, which confuses some developers and causes a bug [1].
To prevent it from happening again, we should use a single HartId here
and refactor many of its consumers to use a single HartId.

[1] OpenXiangShan/XiangShan#2966 (comment)

Signed-off-by: Yangyu Chen <[email protected]>
@Tang-Haojin
Copy link
Member

LGTM. Wait for HuanCun.

Signed-off-by: Yangyu Chen <[email protected]>
@cyyself cyyself force-pushed the tmp_use_single_hartid branch from 85cb1df to b6b0147 Compare May 11, 2024 13:14
@Ivyfeather Ivyfeather merged commit 2078c9f into master May 12, 2024
1 check passed
@Ivyfeather Ivyfeather deleted the tmp_use_single_hartid branch May 12, 2024 10:07
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.

4 participants