add CA/CA32 to write regs fields in parser
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 8 Jun 2020 14:59:31 +0000 (15:59 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 8 Jun 2020 14:59:31 +0000 (15:59 +0100)
src/soc/decoder/pseudo/parser.py

index d2466eac3320d2d175b90bb769e39d2b5d6b88db..ed63184dbeb4a233e2617efea9e8e6317844f786 100644 (file)
@@ -611,6 +611,8 @@ class PowerParser:
         name = p[1]
         if name in self.available_op_fields:
             self.op_fields.add(name)
+        if name in ['CA', 'CA32']:
+            self.write_regs.add(name)
         if name in ['CR', 'LR', 'CTR', 'TAR', 'FPSCR', 'MSR']:
             self.special_regs.add(name)
             self.write_regs.add(name) # and add to list to write