From dd5ddc52598c43e3943620bcb1641e60609b1497 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 30 Jun 2022 12:33:47 +0100 Subject: [PATCH] do CSV isatables explicitly in sv_analysis.py for pandoc to pick up --- src/openpower/sv/sv_analysis.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/openpower/sv/sv_analysis.py b/src/openpower/sv/sv_analysis.py index 2522942c..b0acc256 100644 --- a/src/openpower/sv/sv_analysis.py +++ b/src/openpower/sv/sv_analysis.py @@ -707,16 +707,22 @@ def process_csvs(format): # now write out the csv files for value, csv in svp64.items(): if value == '-': + continue from time import sleep print ("WARNING, filename '-' should NOT exist. instrs missing") print ("TODO: fix this (and put in the bugreport number here)") sleep(2) - continue # print out svp64 tables by category print("## %s" % value) print('') - print('[[!table format=csv file="openpower/isatables/%s.csv"]]' % - value) + cols = csvcols + ['out2'] + print(tformat(cols)) + print(tformat([" - "] * (len(cols)))) + for d in csv: + row = [] + for k in cols: + row.append(d[k]) + print(tformat(row)) print('') #csvcols = ['insn', 'Ptype', 'Etype', '0', '1', '2', '3'] -- 2.30.2