From 6131bcdbb08a8d8fd07171860adb0980de0c5132 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 27 Feb 2020 07:12:50 -0500 Subject: [PATCH] Verilator_gantt: Fix CPU count in report. --- bin/verilator_gantt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/verilator_gantt b/bin/verilator_gantt index 252b98c9a..574d01567 100755 --- a/bin/verilator_gantt +++ b/bin/verilator_gantt @@ -123,13 +123,13 @@ sub report { } my $nthreads = scalar keys %Threads; - $Global{cpus}{cpu_time} = {}; + $Global{cpus} = {}; foreach my $thread (keys %Threads) { # Make potentially multiple characters per column foreach my $start (keys %{$Threads{$thread}}) { my $cpu = $Threads{$thread}{$start}{cpu}; my $elapsed = $Threads{$thread}{$start}{end} - $start; - $Global{cpus}{cpu_time}{$cpu} += $elapsed; + $Global{cpus}{$cpu}{cpu_time} += $elapsed; } }