summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng Shao <astrohavoc@gmail.com>2022-10-23 16:42:56 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-11-11 00:26:55 -0500
commit631af3cc8c2bbab512d9df74a33b65ff6d2e4e1f (patch)
tree79d16dc7508cc86c764f8a36d839b5ec6f623268
parent15138746a772fce1052cf117293594019c917a90 (diff)
downloadhaskell-631af3cc8c2bbab512d9df74a33b65ff6d2e4e1f.tar.gz
rts: make flushExec a no-op on wasm32
This patch makes flushExec a no-op on wasm32, since there's no such thing as executable memory on wasm32 in the first place.
-rw-r--r--rts/sm/Storage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/sm/Storage.c b/rts/sm/Storage.c
index 1e801b8dfc..896b408ff9 100644
--- a/rts/sm/Storage.c
+++ b/rts/sm/Storage.c
@@ -1783,6 +1783,7 @@ void flushExec (W_ len, AdjustorExecutable exec_addr)
#elif (defined(arm_HOST_ARCH) || defined(aarch64_HOST_ARCH)) && (defined(ios_HOST_OS) || defined(darwin_HOST_OS))
/* On iOS we need to use the special 'sys_icache_invalidate' call. */
sys_icache_invalidate(exec_addr, len);
+#elif defined(wasm32_HOST_ARCH)
#elif defined(__clang__)
unsigned char* begin = (unsigned char*)exec_addr;
unsigned char* end = begin + len;