mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Fix cache invalidation on Blackberry.
This commit is contained in:
parent
84cc25a55a
commit
ca6d614185
@ -22,10 +22,15 @@
|
||||
#include <assert.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
// For cache flushing on Symbian/Blackberry
|
||||
#ifdef __SYMBIAN32__
|
||||
#include <e32std.h>
|
||||
#endif
|
||||
|
||||
#ifdef BLACKBERRY
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
namespace ArmGen
|
||||
{
|
||||
|
||||
@ -67,6 +72,8 @@ void ARMXEmitter::Flush()
|
||||
{
|
||||
#ifdef __SYMBIAN32__
|
||||
User::IMB_Range( startcode, code );
|
||||
#elif defined(BLACKBERRY)
|
||||
msync(startcode, code-startcode, MS_SYNC | MS_INVALIDATE_ICACHE);
|
||||
#else
|
||||
__builtin___clear_cache (startcode, code);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user