[Libre-soc-dev] v3.1B prefix

Alexandre Oliva oliva at gnu.org
Mon Dec 7 08:31:15 GMT 2020


On Dec  5, 2020, Luke Kenneth Casson Leighton <lkcl at lkcl.net> wrote:

> actually alexander do you want to see what the numbers look like for just 10bit?

Oops, I forgot to mention this in my earlier reply:

Use this patchlet to disregard the 16-bit and 16-imm encodings, and
use exclusively 10- and 32-bit ones instead.

diff --git a/openpower/sv/comp16-v1-skel.py b/openpower/sv/comp16-v1-skel.py
index 62627472..70bcd20b 100644
--- a/openpower/sv/comp16-v1-skel.py
+++ b/openpower/sv/comp16-v1-skel.py
@@ -496,6 +496,7 @@ for line in sys.stdin:
     if opcode in copcond:
         nexti = copcond[opcode](opcode,
                                [mapop(op) for op in operands.split(',')])
+        if nexti < 3: nexti = 0
     else:
         nexti = 0
 
@@ -562,7 +563,7 @@ for line in sys.stdin:
         # 10-bit might as well be encoded as 16-bit, to make room for
         # a single-insn uncompressed insn afterwards.
         if nexti is 3:
-            nexti = 1
+            # nexti = 1
             comment = '16-bit, vs 10-bit'
     else:
         raise "unknown mode for previious insn"

-- 
Alexandre Oliva, happy hacker  https://FSFLA.org/blogs/lxo/
   Free Software Activist         GNU Toolchain Engineer
        Vim, Vi, Voltei pro Emacs -- GNUlius Caesar



More information about the Libre-soc-dev mailing list