]> localhost Git - WindEmu.git/commitdiff
workaround TRealXMultiply branching to invalid instruction origin/HEAD origin/master
authorAsh Wolf <ninji@wuffs.org>
Thu, 26 Dec 2019 01:58:07 +0000 (01:58 +0000)
committerAsh Wolf <ninji@wuffs.org>
Thu, 26 Dec 2019 01:58:07 +0000 (01:58 +0000)
WindCore/arm710.cpp

index 5d804d3d9e6c3589177c4a09259419274adb5a23..eaa6a015939ddd49e5d8849ebb956797ae691c2b 100644 (file)
@@ -365,6 +365,7 @@ uint32_t ARM710::execDataProcessing(bool I, uint32_t Opcode, bool S, uint32_t Rn
                if (Rd == 15) {
                        // Writing to PC
                        // Special things occur here!
+                       GPRs[Rd] &= ~3; // TODO is this really necessary??
                        prefetchCount = 0;
                        if (S && isPrivileged()) {
                                // We SHOULD be privileged