Revert "comment out mfcr in sv_analysis.py for now"
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 5 Aug 2022 23:56:47 +0000 (00:56 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 5 Aug 2022 23:56:47 +0000 (00:56 +0100)
This reverts commit 241092bc55fbab8e1eb15fd6954fc6a7c4699ccf.

src/openpower/sv/sv_analysis.py

index 06b4d8eb3f62331849289c081afb4eb003af6658..0f00dd74db378b87d066432a0cbc2442482f1524 100644 (file)
@@ -600,10 +600,9 @@ def process_csvs(format):
                 elif name == 'CRio' and insn_name == 'mcrf':
                     res['0'] = 'd:BF'  # BFA: Rdest1_EXTRA3
                     res['1'] = 's:BFA'  # BFA: Rsrc1_EXTRA3
-                # bodged: need to define what "CR" is
-                # XXX elif 'mfcr' in insn_name or 'mfocrf' in insn_name:
-                # XXX    res['0'] = 'd:RT'  # RT: Rdest1_EXTRA3
-                # XXX    res['1'] = 's:CR'  # CR: Rsrc1_EXTRA3
+                elif 'mfcr' in insn_name or 'mfocrf' in insn_name:
+                    res['0'] = 'd:RT'  # RT: Rdest1_EXTRA3
+                    res['1'] = 's:CR'  # CR: Rsrc1_EXTRA3
                 elif insn_name == 'setb':
                     res['0'] = 'd:RT'  # RT: Rdest1_EXTRA3
                     res['1'] = 's:BFA'  # BFA: Rsrc1_EXTRA3