diff options
author | Alex White <alex.white@oarcorp.com> | 2021-02-24 16:53:43 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-03-30 13:15:58 -0500 |
commit | e5c985eba0822b9c1356c85617ea687cfdac379b (patch) | |
tree | cc12abe5b8fb9acf3027b10e19d89aaa032be124 /tester/covoar/CoverageMapBase.cc | |
parent | tester: Add coverage variants for a few BSPs (diff) | |
download | rtems-tools-e5c985eba0822b9c1356c85617ea687cfdac379b.tar.bz2 |
covoar: Fix NOP execution marking
Some NOP instructions were not being marked as executed because they
are located at the end of uncovered ranges. This has been fixed.
Diffstat (limited to 'tester/covoar/CoverageMapBase.cc')
-rw-r--r-- | tester/covoar/CoverageMapBase.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tester/covoar/CoverageMapBase.cc b/tester/covoar/CoverageMapBase.cc index ad0080d..6ca5cf7 100644 --- a/tester/covoar/CoverageMapBase.cc +++ b/tester/covoar/CoverageMapBase.cc @@ -142,6 +142,11 @@ namespace Coverage { return size; } + uint32_t CoverageMapBase::getSizeOfRange( size_t index ) const + { + return Ranges.at(index).size(); + } + bool CoverageMapBase::getBeginningOfInstruction( uint32_t address, uint32_t* beginning @@ -178,6 +183,11 @@ namespace Coverage { return Ranges.front().lowAddress; } + uint32_t CoverageMapBase::getLowAddressOfRange( size_t index ) const + { + return Ranges.at(index).lowAddress; + } + bool CoverageMapBase::getRange( uint32_t address, AddressRange& range ) const { for ( auto r : Ranges ) { |