Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
cnyce committed Dec 13, 2024
1 parent 90d120f commit 9ff7292
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/RegisterDefnsJSON.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,13 @@ namespace atlas
constexpr sparta::RegisterBase::Definition::HintsT hints = 0;
constexpr sparta::RegisterBase::Definition::RegDomainT regdomain = 0;

const bool writable = id != 0 || group_num != 0;

sparta::RegisterBase::Definition defn = {
id, name, group_num, group, group_idx,
desc, bytes, field_defns, bank_membership, aliases,
subset_of, subset_offset, initial_value, hints, regdomain};
subset_of, subset_offset, initial_value, hints, regdomain,
writable};

register_defns_.push_back(defn);
}
Expand Down

0 comments on commit 9ff7292

Please sign in to comment.