summaryrefslogtreecommitdiffstats
path: root/tester/covoar/Target_riscv.cc
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-10-20 10:11:34 -0400
committerJoel Sherrill <joel@rtems.org>2021-12-10 11:05:16 -0600
commit361e30450c5a6c8c3c18bac041ac1afc15f76d02 (patch)
tree0ed34757e7453aa74a80d01a56697630128827ac /tester/covoar/Target_riscv.cc
parentTargetFactory.cc: Convert to C++ (diff)
downloadrtems-tools-361e30450c5a6c8c3c18bac041ac1afc15f76d02.tar.bz2
Target: Convert to C++
Diffstat (limited to 'tester/covoar/Target_riscv.cc')
-rw-r--r--tester/covoar/Target_riscv.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tester/covoar/Target_riscv.cc b/tester/covoar/Target_riscv.cc
index 13c81c5..d0b5a8e 100644
--- a/tester/covoar/Target_riscv.cc
+++ b/tester/covoar/Target_riscv.cc
@@ -62,11 +62,11 @@ namespace Target {
}
bool Target_riscv::isNopLine(
- const char* const line,
- int& size
+ const std::string& line,
+ int& size
)
{
- if (!strcmp( &line[strlen(line)-3], "nop")){
+ if ( line.substr( line.length() - 3 ) == "nop" ) {
size = 4;
return true;
}