diff options
Diffstat (limited to 'rts/sm/Storage.c')
-rw-r--r-- | rts/sm/Storage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/sm/Storage.c b/rts/sm/Storage.c index afb171b568..7174425e04 100644 --- a/rts/sm/Storage.c +++ b/rts/sm/Storage.c @@ -1168,7 +1168,7 @@ calcNeeded (rtsBool force_major, memcount *blocks_needed) should be modified to use allocateExec instead of VirtualAlloc. ------------------------------------------------------------------------- */ -#if defined(arm_HOST_ARCH) && defined(ios_HOST_OS) +#if (defined(arm_HOST_ARCH) || defined(aarch64_HOST_ARCH)) && defined(ios_HOST_OS) void sys_icache_invalidate(void *start, size_t len); #endif @@ -1180,7 +1180,7 @@ void flushExec (W_ len, AdjustorExecutable exec_addr) /* x86 doesn't need to do anything, so just suppress some warnings. */ (void)len; (void)exec_addr; -#elif defined(arm_HOST_ARCH) && defined(ios_HOST_OS) +#elif (defined(arm_HOST_ARCH) || defined(aarch64_HOST_ARCH)) && defined(ios_HOST_OS) /* On iOS we need to use the special 'sys_icache_invalidate' call. */ sys_icache_invalidate(exec_addr, ((unsigned char*)exec_addr)+len); #elif defined(__GNUC__) |