add gprs to PowerParser write_regs in p_atom_name
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 7 Jun 2020 11:55:41 +0000 (12:55 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 7 Jun 2020 11:55:41 +0000 (12:55 +0100)
src/soc/decoder/pseudo/parser.py

index 2f6d9375e1f3995fc0f487a4846bab68dc7496c3..3e84646ba6baa7b45dadbe9bd299c25377d81bd0 100644 (file)
@@ -613,6 +613,7 @@ class PowerParser:
             self.op_fields.add(name)
         if name in self.gprs:
             self.read_regs.add(name)  # add to list of regs to read
+            self.write_regs.add(name) # and add to list to write
         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