LinuxLists
Users
About
wang_yang (
[email protected]
)
Number of posts: 2 (2 per day)
First post: 2023-07-26 08:21:10
Last post: 2023-07-26 09:30:11
Date
List
Subject
2023-07-26 09:30:11
linux-kernel
[PATCH] RISC-V: Use GCC __builtin_prefetch() to implement prefetch(). GCC's __builtin_prefetch() was introduced a long time ago, all supported GCC versions have it.So this patch is to use it for implementing the prefetch. RISC-V Cache Management Operation instructions has been supported by GCC last year.you can refer to https://github.com/gcc-mirror/gcc/commit/3df3ca9014f94fe4af07444fea19b4ab29ba8e73 It is worth noting that CPU based on RISC-V should support Zicbop extension. This has been already done on other architectures (see the commit: https://github.com/torvalds/linux/commit/0453fb3c528c5eb3483441a466b24a4cb409eec5).
2023-07-26 08:21:10
linux-kernel
[PATCH] RISC-V: Use GCC __builtin_prefetch() to implement prefetch()