mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 11:24:27 +01:00
Make instruction cache invalidation (for us, jit cache invalidation) clearer
This commit is contained in:
1 parent
a49f4523cb
commit
9f90512ef6
26 files changed
+198
-135
No files matched your search
@@ -26,8 +26,6 @@
|
||||
#include "Core/HLE/sceKernelMemory.h"
|
||||
#include "Core/MIPS/MIPSCodeUtils.h"
|
||||
|
||||
HLEHelperThread::HLEHelperThread() : id_(0), entry_(0) {}
|
||||
|
||||
HLEHelperThread::HLEHelperThread(const char *threadName, const u32 instructions[], u32 instrCount, u32 prio, int stacksize) {
|
||||
u32 instrBytes = instrCount * sizeof(u32);
|
||||
u32 totalBytes = instrBytes + sizeof(u32) * 2;
|
||||
@@ -63,7 +61,7 @@ void HLEHelperThread::AllocEntry(u32 size) {
|
||||
entry_ = kernelMemory.Alloc(size, false, "HLEHelper");
|
||||
_dbg_assert_(Memory::IsValid4AlignedAddress(entry_)); // after AllocEntry.
|
||||
Memory::Memset(entry_, 0, size, "HLEHelperClear");
|
||||
currentMIPS->InvalidateICache(entry_, size);
|
||||
currentMIPS->InvalidateICacheRangeDeferred(entry_, size);
|
||||
}
|
||||
|
||||
void HLEHelperThread::Create(const char *threadName, u32 prio, int stacksize) {
|
||||
|
||||
Reference in new issue
Block a user