Skip setting a0 in the idle thread.

We don't need the param for our fake syscall.  This is safe since it's all
savestated.
This commit is contained in:
Unknown W. Brackets 2014-10-12 12:47:57 -07:00
parent 6fae78cd3f
commit 0f45c3516d

View File

@ -1148,10 +1148,8 @@ void __KernelThreadingInit()
// Yeah, this is straight out of JPCSP, I should be ashamed.
const static u32_le idleThreadCode[] = {
MIPS_MAKE_ADDIU(MIPS_REG_A0, MIPS_REG_ZERO, 0),
MIPS_MAKE_LUI(MIPS_REG_RA, 0x0800),
MIPS_MAKE_JR_RA(),
//MIPS_MAKE_SYSCALL("ThreadManForUser", "sceKernelDelayThread"),
MIPS_MAKE_SYSCALL("FakeSysCalls", "_sceKernelIdle"),
MIPS_MAKE_BREAK(0),
};