changeset b91e4bec7a76 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=b91e4bec7a76
description:
        CPU: O3-PipeView.py doesn't display the end of timelines.
        Insts' timeline that stretches over multiple lines doesn't always get 
printed.

diffstat:

 util/o3-pipeview.py |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r fd9a83e5178a -r b91e4bec7a76 util/o3-pipeview.py
--- a/util/o3-pipeview.py       Fri Sep 07 14:20:53 2012 -0500
+++ b/util/o3-pipeview.py       Fri Sep 07 14:20:53 2012 -0500
@@ -133,7 +133,13 @@
     # Print
     time_width = width * cycle_time
     base_tick = (inst['fetch'] / time_width) * time_width
-    num_lines = ((inst['retire'] - inst['fetch']) / time_width) + 1
+    # Timeline shorter then time_width is printed in compact form where
+    # the print continues at the start of the same line.
+    if ((inst['retire'] - inst['fetch']) < time_width):
+        num_lines = 1 # compact form
+    else:
+        num_lines = ((inst['retire'] - base_tick) / time_width) + 1
+
     curr_color = termcap.Normal
     for i in range(num_lines):
         start_tick = base_tick + i * time_width
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to