Skip to content

Conversation

@romancardenas
Copy link
Contributor

Minor change that simplifies the assembly code.

At the beginning of the runtime, we assume that, in S-mode, the hart ID is provided by the previous bootload via a0. This is not true in M-mode. This PR copies mhartid to a0 at the beginning of runtime, allowing the rest of the code to be the same in both S-mode and M-mode.

@romancardenas romancardenas requested a review from a team as a code owner June 24, 2025 06:11
Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

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

Makes sense to me, thanks!

@romancardenas romancardenas added this pull request to the merge queue Jun 24, 2025
Merged via the queue into master with commit de91ee2 Jun 24, 2025
138 checks passed
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