Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v20.x backport] deps: V8: backport 9ab40592f697 #56782

Open
wants to merge 1 commit into
base: v20.x-staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,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.25',
'v8_embedder_string': '-node.26',

##### V8 defaults for Node.js #####

Expand Down
12 changes: 6 additions & 6 deletions deps/v8/src/codegen/riscv/cpu-riscv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ namespace internal {
void CpuFeatures::FlushICache(void* start, size_t size) {
#if !defined(USE_SIMULATOR)
char* end = reinterpret_cast<char*>(start) + size;
// The definition of this syscall is
// 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.
syscall(SYS_riscv_flush_icache, start, end, 1);
// 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.
// The flag set to zero will flush all cpu cores.
syscall(__NR_riscv_flush_icache, start, end, 0);
#endif // !USE_SIMULATOR.
}

Expand Down
Loading