Make Memory::Memcpy() execute memchecks directly.

This makes it easier to handle breakpoints in HLE.
This commit is contained in:
Unknown W. Brackets committed 2015-04-05 18:09:20 -07:00
1 parent d43368f4ca
commit 2450724be2
32 files changed
+132 -86

No files matched your search

+2 -2
View File
@@ -28,7 +28,7 @@
#include "Core/MIPS/MIPSCodeUtils.h"
#include "Core/MIPS/MIPS.h"
#include "Core/CoreTiming.h"
#include "Core/MemMap.h"
#include "Core/MemMapHelpers.h"
#include "Core/Reporting.h"
#include "Common/ChunkFile.h"
@@ -2198,7 +2198,7 @@ int __KernelStartThread(SceUID threadToStartID, int argSize, u32 argBlockPtr, bo
// Now copy argument to stack.
if (!forceArgs && Memory::IsValidAddress(argBlockPtr))
Memory::Memcpy(sp, Memory::GetPointer(argBlockPtr), argSize);
Memory::Memcpy(sp, argBlockPtr, argSize);
// On the PSP, there's an extra 64 bytes of stack eaten after the args.
// This could be stack overflow safety, or just stack eaten by the kernel entry func.