revert register reordering in ISACaller
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 18 May 2021 11:49:45 +0000 (12:49 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 18 May 2021 11:49:45 +0000 (12:49 +0100)
src/openpower/decoder/isa/caller.py

index 2efb0ea20fecc40f88c8864187d5da62c78c36b4..28400e643efefff5cb65a8b816ab728167c2e603 100644 (file)
@@ -52,6 +52,8 @@ special_sprs = {
 
 
 REG_SORT_ORDER = {
+    # TODO (lkcl): adjust other registers that should be in a particular order
+    # probably CA, CA32, and CR
     "FRT": 0,
     "FRA": 0,
     "FRB": 0,
@@ -62,16 +64,15 @@ REG_SORT_ORDER = {
     "RB": 0,
     "RC": 0,
     "RS": 0,
-
-    "LR": 1,
-    "CTR": 1,
-    "TAR": 1,
-    "MSR": 1,
-    "SVSTATE": 1,
-
-    "CR": 4,
-    "CA": 5,
-    "CA32": 6,
+    "CR": 0,
+    "LR": 0,
+    "CTR": 0,
+    "TAR": 0,
+    "MSR": 0,
+    "SVSTATE": 0,
+
+    "CA": 0,
+    "CA32": 0,
 
     "overflow": 7, # should definitely be last
 }