mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
UWP ARM: Shrink the JIT hack
This commit is contained in:
1 parent
29ad3180a0
commit
5ce7e5e109
2 files changed
+7
-5
No files matched your search
@@ -57,6 +57,7 @@ extern volatile CoreState coreState;
|
||||
|
||||
void ShowPC(u32 sp) {
|
||||
ERROR_LOG(JIT, "ShowPC : %08x ArmSP : %08x", currentMIPS->pc, sp);
|
||||
// Sleep(1);
|
||||
}
|
||||
|
||||
void DisassembleArm(const u8 *data, int size);
|
||||
|
||||
@@ -198,13 +198,14 @@ void ArmJit::CompileDelaySlot(int flags)
|
||||
void ArmJit::Compile(u32 em_address) {
|
||||
PROFILE_THIS_SCOPE("jitc");
|
||||
|
||||
// If I keep any of these, it works on UWP for ARM!
|
||||
#if PPSSPP_PLATFORM(UWP)
|
||||
INFO_LOG(JIT, "Compiling at %08x", em_address);
|
||||
#endif
|
||||
// Sleep(1);
|
||||
// INFO_LOG(JIT, "Compiling at %08x", em_address);
|
||||
// Unfortunately Microsoft forgot to expose FlushInstructionCache to UWP applications... even though they expose
|
||||
// the ability to generate code :( This will work great on x86 but on ARM we're out of luck.
|
||||
// the ability to generate code :( This works great on x86 but on ARM we're out of luck.
|
||||
// This seems to be enough to flush the instruction cache:
|
||||
// If this OutputDebugStringUTF8 is not called, we crash.
|
||||
OutputDebugStringUTF8("JITHACK");
|
||||
#endif
|
||||
|
||||
if (GetSpaceLeft() < 0x10000 || blocks.IsFull()) {
|
||||
ClearCache();
|
||||
|
||||
Reference in new issue
Block a user