On PontusV, flush icache locally will have a cache sync
delay between different HARTs. This will cause SIGILL when
running WASM program(JetStream 2.2 gcc-loops-wasm).
Call flush all can fix it.
Change-Id: Ifb5230653b008043600aeec2744bb7cdbec83f2f
// identify the flush_icache system call, while __NR_riscv_flush_icache is the
// corresponding system call number used in the kernel to dispatch the system
// call.
+#ifdef TIZEN_TV_RISCV64
+ // local flush will cause illegal instruction coredump when run wasm program on PontusV.
+ syscall(__NR_riscv_flush_icache, start, end, 0);
+#else
syscall(__NR_riscv_flush_icache, start, end, 1);
+#endif // TIZEN_TV_RISCV64
#endif // !USE_SIMULATOR.
}