We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e20194 commit 5d8fe5dCopy full SHA for 5d8fe5d
core/shared/platform/nuttx/nuttx_platform.c
@@ -10,6 +10,8 @@
10
#include <nuttx/arch.h>
11
#endif
12
13
+#include <nuttx/cache.h>
14
+
15
int
16
bh_platform_init()
17
{
@@ -115,11 +117,14 @@ os_dcache_flush()
115
117
&& defined(CONFIG_ARCH_HAVE_TEXT_HEAP_SEPARATE_DATA_ADDRESS)
116
118
up_textheap_data_sync();
119
120
+ up_invalidate_dcache_all();
121
}
122
123
void
124
os_icache_flush(void *start, size_t len)
-{}
125
+{
126
+ up_invalidate_icache((uintptr_t)start, (uintptr_t)start + len);
127
+}
128
129
#if (WASM_MEM_DUAL_BUS_MIRROR != 0)
130
void *
0 commit comments