mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
HLE: Reset ll/sc link on any syscall.
This seems to happen from any syscall, which makes sense. The bit isn't cleared on an sc, but a thread switch doesn't need to occur.
This commit is contained in:
1 parent
df2462b1d9
commit
f0d4267c5e
1 file changed
+3
@@ -540,6 +540,9 @@ void HLEReturnFromMipsCall() {
|
||||
const static u32 deadbeefRegs[12] = {0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF};
|
||||
inline static void SetDeadbeefRegs()
|
||||
{
|
||||
// Not exactly the same, but any time a syscall happens, it should clear ll.
|
||||
currentMIPS->llBit = 0;
|
||||
|
||||
if (g_Config.bSkipDeadbeefFilling)
|
||||
return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user