Projects
Mega:23.03
jffi
_service:tar_scm:Add-support-for-riscv64.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:Add-support-for-riscv64.patch of Package jffi
commit ea30e748f7fb066f958ff064bcde7574dd1c6e68 Author: Manuel A. Fernandez Montecelo <mafm@debian.org> Date: Fri Dec 9 08:19:34 2022 -0500 Add support for riscv64 diff --git a/src/main/java/com/kenai/jffi/Platform.java b/src/main/java/com/kenai/jffi/Platform.java index 8447369..50f77da 100644 --- a/src/main/java/com/kenai/jffi/Platform.java +++ b/src/main/java/com/kenai/jffi/Platform.java @@ -100,6 +100,8 @@ public abstract class Platform { ARM(32), /** AARCH64 */ AARCH64(64), + /** RISCV64 */ + RISCV64(64), /** Unknown CPU */ UNKNOWN(64); @@ -230,6 +232,8 @@ public abstract class Platform { } else if (Util.equalsIgnoreCase("aarch64", archString, LOCALE)) { return CPU.AARCH64; + } else if (Util.equalsIgnoreCase("riscv64", archString, LOCALE)) { + return CPU.RISCV64; } diff --git a/src/main/java/com/kenai/jffi/internal/StubLoader.java b/src/main/java/com/kenai/jffi/internal/StubLoader.java index 9b81e83..fe16563 100644 --- a/src/main/java/com/kenai/jffi/internal/StubLoader.java +++ b/src/main/java/com/kenai/jffi/internal/StubLoader.java @@ -122,6 +122,8 @@ public class StubLoader { ARM, /** AArch64 */ AARCH64, + /** RISC-V 64-bit little endian */ + RISCV64, /** Unknown CPU */ UNKNOWN; @@ -184,6 +186,8 @@ public class StubLoader { return CPU.ARM; } else if (Util.equalsIgnoreCase("aarch64", archString, LOCALE)) { return CPU.AARCH64; + } else if (Util.equalsIgnoreCase("riscv64", archString, LOCALE)) { + return CPU.RISCV64; } // Try to find by lookup up in the CPU list
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2