Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5c9a397

Browse filesBrowse files
luyahankxxt
authored andcommitted
deps: V8: backport 9ab40592f697
Original commit message: [riscv] Flush icache in both local and remote harts Fix the I-Cache flush flag according to the implementation of flush_icache_mm in Linux kernel. Change-Id: I6e6b1f56c377c2c0a629e170737bfac6c357ce8d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6080611 Commit-Queue: Yahan Lu (LuYahan) <yahan@iscas.ac.cn> Reviewed-by: Ji Qiu <qiuji@iscas.ac.cn> Cr-Commit-Position: refs/heads/main@{#97673} Refs: v8/v8@9ab4059 PR-URL: #56781 Backport-PR-URL: #56782 Co-authored-by: kxxt <rsworktech@outlook.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent 8342233 commit 5c9a397
Copy full SHA for 5c9a397

File tree

Expand file treeCollapse file tree

2 files changed

+7
-7
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-7
lines changed

‎common.gypi

Copy file name to clipboardExpand all lines: common.gypi
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.25',
39+
'v8_embedder_string': '-node.26',
4040

4141
##### V8 defaults for Node.js #####
4242

‎deps/v8/src/codegen/riscv/cpu-riscv.cc

Copy file name to clipboardExpand all lines: deps/v8/src/codegen/riscv/cpu-riscv.cc
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ namespace internal {
1515
void CpuFeatures::FlushICache(void* start, size_t size) {
1616
#if !defined(USE_SIMULATOR)
1717
char* end = reinterpret_cast<char*>(start) + size;
18-
// The definition of this syscall is
19-
// SYSCALL_DEFINE3(riscv_flush_icache, uintptr_t, start,
20-
// uintptr_t, end, uintptr_t, flags)
21-
// The flag here is set to be SYS_RISCV_FLUSH_ICACHE_LOCAL, which is
22-
// defined as 1 in the Linux kernel.
23-
syscall(SYS_riscv_flush_icache, start, end, 1);
18+
// SYS_riscv_flush_icache is a symbolic constant used in user-space code to
19+
// identify the flush_icache system call, while __NR_riscv_flush_icache is the
20+
// corresponding system call number used in the kernel to dispatch the system
21+
// call.
22+
// The flag set to zero will flush all cpu cores.
23+
syscall(__NR_riscv_flush_icache, start, end, 0);
2424
#endif // !USE_SIMULATOR.
2525
}
2626

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.