mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-07 12:16:24 +00:00
platform/nuttx: Fix dcache operation in os_dcache_flush (#4225)
Replace up_invalidate_dcache_all() with up_flush_dcache_all() in os_dcache_flush() to properly flush the data cache instead of just invalidating it. This ensures that any modified data in the cache is written back to memory before execution. Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
382aa9e6c3
commit
5bdbba0dbe
|
@ -118,7 +118,7 @@ os_dcache_flush()
|
|||
up_textheap_data_sync();
|
||||
#endif
|
||||
#ifndef CONFIG_BUILD_KERNEL
|
||||
up_invalidate_dcache_all();
|
||||
up_flush_dcache_all();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user