Tidying
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Targets::RiscV
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RiscV::deactivate() {
|
void RiscV::deactivate() {
|
||||||
// TODO: Is this "tidy-up" code better placed in the TC? Review after v1.1.0.
|
// TODO: Is this "tidy-up" code better placed in the TC? Review after v2.0.0.
|
||||||
|
|
||||||
if (this->getExecutionState() != TargetExecutionState::STOPPED) {
|
if (this->getExecutionState() != TargetExecutionState::STOPPED) {
|
||||||
this->stop();
|
this->stop();
|
||||||
|
|||||||
@@ -647,8 +647,8 @@ namespace Targets::TargetDescription
|
|||||||
StringService::toUint32(TargetDescriptionFile::getAttribute(xmlElement, "size")),
|
StringService::toUint32(TargetDescriptionFile::getAttribute(xmlElement, "size")),
|
||||||
TargetDescriptionFile::getAttribute(xmlElement, "executable") == "1",
|
TargetDescriptionFile::getAttribute(xmlElement, "executable") == "1",
|
||||||
TargetMemoryAccess{
|
TargetMemoryAccess{
|
||||||
accessString.has_value() ? accessString->find('R') != std::string::npos : true,
|
!accessString.has_value() || accessString->find('R') != std::string::npos,
|
||||||
accessString.has_value() ? accessString->find('W') != std::string::npos : true
|
!accessString.has_value() || accessString->find('W') != std::string::npos
|
||||||
},
|
},
|
||||||
pageSize.has_value()
|
pageSize.has_value()
|
||||||
? std::optional{StringService::toUint32(*pageSize)}
|
? std::optional{StringService::toUint32(*pageSize)}
|
||||||
|
|||||||
Reference in New Issue
Block a user