Support real iOS devices with a device build of the Monero library
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#include <libkern/OSCacheControl.h>
|
||||
#include <stddef.h>
|
||||
|
||||
// randomx (pulled in by monero's proof-of-work code) calls the compiler-rt
|
||||
// builtin __clear_cache from its AArch64 JIT. libSystem exports it on macOS and
|
||||
// the simulator, but not on iOS devices, so provide the same implementation
|
||||
// compiler-rt uses on Darwin.
|
||||
void __clear_cache(void *start, void *end) {
|
||||
sys_icache_invalidate(start, (size_t)((char *)end - (char *)start));
|
||||
}
|
||||
Reference in New Issue
Block a user