summaryrefslogtreecommitdiffstats
path: root/tester/covoar/Target_i386.cc
diff options
context:
space:
mode:
authorAlex White <alex.white@oarcorp.com>2021-02-24 15:38:22 -0600
committerJoel Sherrill <joel@rtems.org>2021-03-30 13:15:58 -0500
commitd046b2dea6f446cbda863a80fe39208d8820fa60 (patch)
treeaf530c362450a8a13ee7695d8992a493d90b6c5e /tester/covoar/Target_i386.cc
parentcovoar: Fix NOP execution marking (diff)
downloadrtems-tools-d046b2dea6f446cbda863a80fe39208d8820fa60.tar.bz2
covoar/Target_i386: Add NOP patterns
A couple of NOP patterns found with the pc686 BSP were not detected. This has been fixed.
Diffstat (limited to 'tester/covoar/Target_i386.cc')
-rw-r--r--tester/covoar/Target_i386.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/tester/covoar/Target_i386.cc b/tester/covoar/Target_i386.cc
index e0c9c0f..4567c1e 100644
--- a/tester/covoar/Target_i386.cc
+++ b/tester/covoar/Target_i386.cc
@@ -87,6 +87,15 @@ namespace Target {
size = 3;
return true;
}
+ if (!strncmp( &line[strlen(line)-28], "lea 0x0(%esi,%eiz,1),%esi", 28)) {
+ // Could be 4 or 7 bytes of padding.
+ if (!strncmp( &line[strlen(line)-32], "00", 2)) {
+ size = 7;
+ } else {
+ size = 4;
+ }
+ return true;
+ }
return false;
}