From 7fbc085167a67603449871376d09b53bcba629a7 Mon Sep 17 00:00:00 2001 From: colby-nyce Date: Fri, 13 Dec 2024 12:27:33 -0600 Subject: [PATCH] Address PR feedback (#28) Co-authored-by: Colby Nyce --- arch/RegisterDefnsJSON.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/RegisterDefnsJSON.hpp b/arch/RegisterDefnsJSON.hpp index b6ac41a..aba0318 100644 --- a/arch/RegisterDefnsJSON.hpp +++ b/arch/RegisterDefnsJSON.hpp @@ -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); }