summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/regtools/lib/soc_desc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/regtools/lib/soc_desc.cpp b/utils/regtools/lib/soc_desc.cpp
index 3238c4de73..ef8aeb5a17 100644
--- a/utils/regtools/lib/soc_desc.cpp
+++ b/utils/regtools/lib/soc_desc.cpp
@@ -1511,7 +1511,7 @@ node_inst_t::node_inst_t()
bool node_inst_t::valid() const
{
- return is_root() || get() != 0;
+ return (is_root() && node().valid()) || get() != 0;
}
void node_inst_t::reset()