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

Do not allow dmiWrite to touch x0 #546

Merged
merged 2 commits into from
Dec 13, 2024
Merged

Conversation

colby-nyce
Copy link
Contributor

No description provided.

@@ -1081,7 +1081,9 @@ class RegisterBase : public TreeNode
template <typename T>
void dmiWrite(T val, index_type idx = 0)
{
dmiWrite_(&val, sizeof(val), sizeof(val) * idx);
if (getID() || getGroupNum()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't like the idea of including RISC-V behavior in Sparta. Could we add a bool class member called writable_ that we can set at construction time?

@colby-nyce colby-nyce merged commit e736f0d into master Dec 13, 2024
6 of 9 checks passed
@colby-nyce colby-nyce deleted the colby-nyce/atlas-support branch December 13, 2024 18:26
github-actions bot pushed a commit that referenced this pull request Dec 13, 2024
* Do not allow dmiWrite to touch x0

* Do not allow dmiWrite to touch x0 (address PR feedback) e736f0d
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