From 8891d85f75d025f7a3225fcb0bd02298034a645b Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 13 Feb 2017 18:18:05 +0300 Subject: [PATCH] Hack for 0x0 --- rpcs3/Emu/Cell/SPUThread.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/rpcs3/Emu/Cell/SPUThread.cpp b/rpcs3/Emu/Cell/SPUThread.cpp index 0c453fa533..eed0006a14 100644 --- a/rpcs3/Emu/Cell/SPUThread.cpp +++ b/rpcs3/Emu/Cell/SPUThread.cpp @@ -1058,6 +1058,22 @@ bool SPUThread::stop_and_signal(u32 code) switch (code) { + case 0x000: + { + // Hack: wait for an instruction become available + while (vm::ps3::read32(offset + pc) == 0) + { + if (test(state) && check_state()) + { + return false; + } + + thread_ctrl::wait_for(1000); + } + + return false; + } + case 0x001: { thread_ctrl::wait_for(1000); // hack