diff --git a/common.gypi b/common.gypi index df1cf464134483..1ad3c30629f394 100644 --- a/common.gypi +++ b/common.gypi @@ -37,7 +37,7 @@ # Reset this number to 0 on major V8 upgrades. # Increment by one for each non-official patch applied to deps/v8. - 'v8_embedder_string': '-node.10', + 'v8_embedder_string': '-node.11', ##### V8 defaults for Node.js ##### diff --git a/deps/v8/src/codegen/riscv/cpu-riscv.cc b/deps/v8/src/codegen/riscv/cpu-riscv.cc index 613c54439a59fb..143602dfb663c7 100644 --- a/deps/v8/src/codegen/riscv/cpu-riscv.cc +++ b/deps/v8/src/codegen/riscv/cpu-riscv.cc @@ -15,16 +15,12 @@ namespace internal { void CpuFeatures::FlushICache(void* start, size_t size) { #if !defined(USE_SIMULATOR) char* end = reinterpret_cast(start) + size; - // The definition of this syscall is equal to - // SYSCALL_DEFINE3(riscv_flush_icache, uintptr_t, start, - // uintptr_t, end, uintptr_t, flags) - // The flag here is set to be SYS_RISCV_FLUSH_ICACHE_LOCAL, which is - // defined as 1 in the Linux kernel. // SYS_riscv_flush_icache is a symbolic constant used in user-space code to // 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. - syscall(__NR_riscv_flush_icache, start, end, 1); + // The flag set to zero will flush all cpu cores. + syscall(__NR_riscv_flush_icache, start, end, 0); #endif // !USE_SIMULATOR. }