mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-25 09:09:49 +00:00
Cache flushing for iOS
This commit is contained in:
parent
466f114fe4
commit
743014a293
@ -22,11 +22,16 @@
|
||||
#include <assert.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
// For cache flushing on Symbian/Blackberry
|
||||
// For cache flushing on Symbian/iOS/Blackberry
|
||||
#ifdef __SYMBIAN32__
|
||||
#include <e32std.h>
|
||||
#endif
|
||||
|
||||
#ifdef IOS
|
||||
#include <libkern/OSCacheControl.h>
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
#ifdef BLACKBERRY
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
@ -185,13 +190,13 @@ void ARMXEmitter::FlushIcache()
|
||||
void ARMXEmitter::FlushIcacheSection(u8 *start, u8 *end)
|
||||
{
|
||||
#ifdef __SYMBIAN32__
|
||||
User::IMB_Range( start, end);
|
||||
User::IMB_Range(start, end);
|
||||
#elif defined(BLACKBERRY)
|
||||
msync(start, end - start, MS_SYNC | MS_INVALIDATE_ICACHE);
|
||||
#else
|
||||
#ifndef _WIN32
|
||||
__builtin___clear_cache (start, end);
|
||||
#endif
|
||||
#elif defined(IOS)
|
||||
sys_cache_control(kCacheFunctionPrepareForExecution, start, end - start);
|
||||
#elif !defined(_WIN32)
|
||||
__builtin___clear_cache(start, end);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user