summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/debugger/peripheralregisterhandler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/debugger/peripheralregisterhandler.cpp b/src/plugins/debugger/peripheralregisterhandler.cpp
index 57f69338db..018cbbc142 100644
--- a/src/plugins/debugger/peripheralregisterhandler.cpp
+++ b/src/plugins/debugger/peripheralregisterhandler.cpp
@@ -595,6 +595,12 @@ static void handleField(QXmlStreamReader &in, PeripheralRegister &reg)
in.skipCurrentElement();
}
}
+
+ // Inherit the field access from the register access if the filed
+ // has not the access rights description.
+ if (fld.access == PeripheralRegisterAccess::Unknown)
+ fld.access = reg.access;
+
reg.fields.push_back(fld);
}