From: Luke Kenneth Casson Leighton Date: Sun, 4 Sep 2022 10:10:48 +0000 (+0100) Subject: more comments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb790f9cb536e35b6ce9d44c70af1d4cf5f1ba43;p=openpower-isa.git more comments --- diff --git a/src/openpower/decoder/power_table.py b/src/openpower/decoder/power_table.py index c1fa52a6..9eb4016e 100644 --- a/src/openpower/decoder/power_table.py +++ b/src/openpower/decoder/power_table.py @@ -92,6 +92,7 @@ def do_table(fname, insns, section, divpoint): print (table_entries) # now got the table: print it out + # create the markdown header. first line: | |00|01|10|11| | table = [] line = [" "*6] for j in range(1<<(half)): @@ -99,9 +100,11 @@ def do_table(fname, insns, section, divpoint): line.append(maxme(maxnamelen, hdr)) line.append(" "*6) table.append("|" + "|".join(line) + "|") + # second line: |--|--|--|--|--|--| line = ["-"*6] + ["-"*maxnamelen] * (1<<(half)) + ["-"*6] table.append("|" + "|".join(line) + "|") + # now the rows, the row number goes into first and last column for i in range(1<<(bitlen-half)): hdr = binmaxed(6, i) line = [hdr]