[rtems-tools commit] covoar/TargetBase: Fix QEMU branch info

Joel Sherrill joel at rtems.org
Tue Mar 30 18:20:47 UTC 2021


Module:    rtems-tools
Branch:    master
Commit:    e80fd3e75b25627b6b2be2c1c820895319a91f34
Changeset: http://git.rtems.org/rtems-tools/commit/?id=e80fd3e75b25627b6b2be2c1c820895319a91f34

Author:    Alex White <alex.white at oarcorp.com>
Date:      Wed Feb 24 16:03:44 2021 -0600

covoar/TargetBase: Fix QEMU branch info

The taken/not taken bit was being interpreted incorrectly. This led
to branches being marked "always taken" when they were never taken.
This has been fixed.

---

 tester/covoar/TargetBase.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tester/covoar/TargetBase.cc b/tester/covoar/TargetBase.cc
index 4474fad..c11129b 100644
--- a/tester/covoar/TargetBase.cc
+++ b/tester/covoar/TargetBase.cc
@@ -130,12 +130,12 @@ namespace Target {
 
   uint8_t TargetBase::qemuTakenBit(void)
   {
-    return TRACE_OP_BR0;
+    return TRACE_OP_BR1;
   }
 
   uint8_t TargetBase::qemuNotTakenBit(void)
   {
-    return TRACE_OP_BR1;
+    return TRACE_OP_BR0;
   }
 
 }



More information about the vc mailing list