From 768a90de103755fa995c9f4e23e1f498e763aff2 Mon Sep 17 00:00:00 2001 From: JanLJL Date: Thu, 7 Jan 2021 12:40:16 +0100 Subject: [PATCH] cover kernel with only unknown instructions --- osaca/frontend.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osaca/frontend.py b/osaca/frontend.py index 580d82b..07baaef 100755 --- a/osaca/frontend.py +++ b/osaca/frontend.py @@ -278,6 +278,9 @@ class Frontend(object): else: # lcd_sum already calculated before tp_sum = ArchSemantics.get_throughput_sum(kernel) + # if ALL instructions are unknown, take a line of 0s + if not tp_sum: + tp_sum = kernel[0]['port_pressure'] cp_sum = sum([x['latency_cp'] for x in cp_kernel]) s += ( lineno_filler