summaryrefslogtreecommitdiff
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()
1511 1511
1512bool node_inst_t::valid() const 1512bool node_inst_t::valid() const
1513{ 1513{
1514 return is_root() || get() != 0; 1514 return (is_root() && node().valid()) || get() != 0;
1515} 1515}
1516 1516
1517void node_inst_t::reset() 1517void node_inst_t::reset()