summaryrefslogtreecommitdiffstats
path: root/tester/covoar/Target_riscv.cc
diff options
context:
space:
mode:
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;
}