]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/file.cpp
Fix to M68K core vs. DSP thread sync problem.
[virtualjaguar] / src / file.cpp
index dff0c55a062154366ee50b68191c0ebdfb397a3f..ac81a06dd2d1b1409cc855c86b4cde52fc8ea576 100644 (file)
@@ -223,6 +223,11 @@ WriteLog("FILE: Cartridge run address is reported as $%X...\n", jaguarRunAddress
                        memcpy(jagMemSpace + loadAddress, buffer + 0x2E, jaguarROMSize - 0x2E);
                        delete[] buffer;
                        jaguarRunAddress = runAddress;
+
+// Hmm. Is this kludge necessary?
+SET32(jaguarMainRAM, 0x10, 0x00001000);                // Set Exception #4 (Illegal Instruction)
+SET16(jaguarMainRAM, 0x1000, 0x60FE);          // Here: bra Here
+
                        return true;
 //             }
 //             else // Special WTFOMGBBQ type here...