mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-03-27 14:22:41 +01:00
libretro, fix apple os builds
This commit is contained in:
@@ -211,6 +211,16 @@ void cache_flush_d_inval_i(void *start, void *end)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef __MACH__
|
||||
/* calls to this may be generated by the compiler, but it's missing in libc? */
|
||||
void __clear_cache(void *start, void *end)
|
||||
{
|
||||
size_t len = (char *)end - (char *)start;
|
||||
sys_dcache_flush(start, len);
|
||||
sys_icache_invalidate(start, len);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
/* mmap() replacement for Windows
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user