[Libre-soc-bugs] [Bug 578] python-based svp64 "generator" class

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Jan 22 20:04:59 GMT 2021


https://bugs.libre-soc.org/show_bug.cgi?id=578

--- Comment #5 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
this should *literally* be all that's needed:

    from soc.decoder.pseudo.pagereader import ISA

    isa = ISA()
    print (isa.instr["cmp"].regs

that's it.  confirmed.

diff --git a/src/soc/decoder/pseudo/pagereader.py
b/src/soc/decoder/pseudo/pagereader.py
index 8583bf4b..a5d05cc5 100644
--- a/src/soc/decoder/pseudo/pagereader.py
+++ b/src/soc/decoder/pseudo/pagereader.py
@@ -284,3 +284,5 @@ class ISA:
 if __name__ == '__main__':
     isa = ISA()
     isa.pprint_ops()
+    # example on how to access cmp regs:
+    print ("cmp regs:", isa.instr["cmp"].regs)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list