From d9c652367d84ec23e182f7634314fa0d414278ea Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 22 Jan 2021 20:04:31 +0000 Subject: [PATCH] add example on how to access regs list for cmp --- src/soc/decoder/pseudo/pagereader.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2