correct table header
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 3 Sep 2022 18:32:34 +0000 (19:32 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 3 Sep 2022 18:32:34 +0000 (19:32 +0100)
src/openpower/decoder/power_table.py

index 59f32005b22c37777fa62091041560d6c500d2e4..c87af159bfd9ef7ab415aad1c651d078271eff51 100644 (file)
@@ -96,7 +96,7 @@ def do_table(fname, insns, section, divpoint):
         line.append(maxme(maxnamelen, hdr))
     line.append(" "*half)
     table.append("|" + "|".join(line) + "|")
-    line = ["-"*half] + ["-"*maxnamelen] * (1<<(bitlen-half)) + ["-"*half]
+    line = ["-"*half] + ["-"*maxnamelen] * (1<<(half)) + ["-"*half]
     table.append("|" + "|".join(line) + "|")
 
     for i in range(1<<(bitlen-half)):