forked from felixonmars/archriscv-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Drop previous V8 patch, backport https://chromium-review.googlesource.com/c/chromium/src/+/4974179 to fix missing GN variables - Add riscv64 in process.arch. Upstreamed to denoland/deno#23016 - Existing crate version bumps upstreamed to denoland/deno#23015
- Loading branch information
Showing
4 changed files
with
57 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
From 34f5fb0edf50013307a722d24556cdae45aa3346 Mon Sep 17 00:00:00 2001 | ||
From: Lu Yahan <yahan@iscas.ac.cn> | ||
Date: Mon, 30 Oct 2023 17:57:30 +0000 | ||
Subject: [PATCH] [riscv] Add riscv B extension compilation flag | ||
|
||
Change-Id: I1a7077338016c12cc4279a6c1d28074732803571 | ||
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4974179 | ||
Reviewed-by: Dirk Pranke <dpranke@google.com> | ||
Commit-Queue: Dirk Pranke <dpranke@google.com> | ||
Auto-Submit: Yahan Lu <yahan@iscas.ac.cn> | ||
Cr-Commit-Position: refs/heads/main@{#1217051} | ||
--- | ||
|
||
diff --git a/build/config/riscv.gni b/build/config/riscv.gni | ||
index 5a78490..595b461 100644 | ||
--- a/build/config/riscv.gni | ||
+++ b/build/config/riscv.gni | ||
@@ -16,5 +16,16 @@ | ||
# 512 | ||
# 1024 | ||
riscv_rvv_vlen = 128 | ||
+ | ||
+ # RISCV profile compilation flag. Possible values are: | ||
+ # rv64gc | ||
+ # rvau22 | ||
+ riscv_profile = "rv64gc" | ||
+ | ||
+ # RISCV B extension compilation flag. | ||
+ # See https://github.com/riscv/riscv-bitmanip/blob/main/bitmanip/bitmanip.adoc#colophon | ||
+ riscv_use_zba = false | ||
+ riscv_use_zbb = false | ||
+ riscv_use_zbs = false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/ext/node/polyfills/_process/process.ts b/ext/node/polyfills/_process/process.ts | ||
index 6dfb897ddb..45688791c2 100644 | ||
--- a/ext/node/polyfills/_process/process.ts | ||
+++ b/ext/node/polyfills/_process/process.ts | ||
@@ -19,6 +19,8 @@ export function arch(): string { | ||
return "x64"; | ||
} else if (core.build.arch == "aarch64") { | ||
return "arm64"; | ||
+ } else if (core.build.arch == "riscv64gc") { | ||
+ return "riscv64"; | ||
} else { | ||
throw Error("unreachable"); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters