加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
riscv-cpuinfo.patch 931 Bytes
一键复制 编辑 原始数据 按行查看 历史
misaka00251 提交于 2024-07-02 15:02 . Upgrade to version 125
Index: chromium-124.0.6367.201/third_party/cpuinfo/BUILD.gn
===================================================================
--- chromium-124.0.6367.201.orig/third_party/cpuinfo/BUILD.gn
+++ chromium-124.0.6367.201/third_party/cpuinfo/BUILD.gn
@@ -123,6 +123,12 @@ source_set("cpu_specific") {
]
}
+ if (current_cpu == "riscv64") {
+ sources = [
+ "src/src/riscv/uarch.c",
+ ]
+ }
+
# Because "init.c" is reused again, but only has sources in the corresponding
# build config.
deps = [ ":x86_cache" ]
@@ -209,6 +215,14 @@ source_set("cpu_and_os_specific") {
}
}
+ if (is_linux && current_cpu == "riscv64") {
+ sources = [
+ "src/src/riscv/linux/init.c",
+ "src/src/riscv/linux/riscv-hw.c",
+ "src/src/riscv/linux/riscv-isa.c",
+ ]
+ }
+
if (is_android && (current_cpu == "x86" || current_cpu == "x64")) {
sources = [
"src/src/x86/linux/cpuinfo.c",
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化