Get working mcrf in caller.py
[soc.git] / src / soc / decoder / isa / condition.patch
diff --git a/src/soc/decoder/isa/condition.patch b/src/soc/decoder/isa/condition.patch
new file mode 100644 (file)
index 0000000..a5e38d8
--- /dev/null
@@ -0,0 +1,11 @@
+--- condition.py.orig  2020-05-16 09:37:19.676855312 -0400
++++ condition.py       2020-05-16 09:37:24.643575782 -0400
+@@ -51,7 +51,7 @@
+     @inject()
+     def op_mcrf(self, CR):
+-        CR[4 * BF + 32:4 * BF + 35 + 1] = CR[4 * BFA + 32:4 * BFA + 35 + 1]
++        CR.si[4 * BF + 32:4 * BF + 35 + 1] = CR.si[4 * BFA + 32:4 * BFA + 35 + 1]
+         return (CR,)
+     condition_instrs = {}