summaryrefslogtreecommitdiffstats
path: root/utils/regtools/lib/soc_desc.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/regtools/lib/soc_desc.hpp')
-rw-r--r--utils/regtools/lib/soc_desc.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/regtools/lib/soc_desc.hpp b/utils/regtools/lib/soc_desc.hpp
index 4aa8c975ac..1b4985529c 100644
--- a/utils/regtools/lib/soc_desc.hpp
+++ b/utils/regtools/lib/soc_desc.hpp
@@ -47,7 +47,7 @@
#define SOCDESC_VERSION_MAJOR 1
#define SOCDESC_VERSION_MINOR 1
-#define SOCDESC_VERSION_REV 0
+#define SOCDESC_VERSION_REV 1
#define SOCDESC_VERSION__(maj,min,rev) #maj"."#min"."#rev
#define SOCDESC_VERSION_(maj,min,rev) SOCDESC_VERSION__(maj,min,rev)
@@ -101,6 +101,8 @@ struct soc_reg_field_t
std::string desc; /// human description
unsigned first_bit, last_bit; /// bit range of the field
+ soc_reg_field_t():first_bit(0), last_bit(31) {}
+
soc_word_t bitmask() const
{
// WARNING beware of the case where first_bit=0 and last_bit=31