34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
Link:
|
|
Subject: define e2k
|
|
Bug: 111656
|
|
Tags: e2k
|
|
|
|
diff -rupN a/core/src/main/java/org/jruby/ext/ffi/Platform.java b/core/src/main/java/org/jruby/ext/ffi/Platform.java
|
|
--- a/core/src/main/java/org/jruby/ext/ffi/Platform.java 2022-04-28 01:15:02.754166540 +0300
|
|
+++ b/core/src/main/java/org/jruby/ext/ffi/Platform.java 2022-04-28 01:17:35.936611766 +0300
|
|
@@ -92,6 +92,7 @@ public class Platform {
|
|
S390X,
|
|
ARM,
|
|
AARCH64,
|
|
+ E2K,
|
|
UNKNOWN;
|
|
@Override
|
|
public String toString() { return name().toLowerCase(LOCALE); }
|
|
@@ -155,6 +156,8 @@ public class Platform {
|
|
return CPU.ARM;
|
|
} else if ("aarch64".equals(archString)) {
|
|
return CPU.AARCH64;
|
|
+ } else if ("e2k".equals(archString)) {
|
|
+ return CPU.E2K;
|
|
} else if ("universal".equals(archString)) {
|
|
// OS X OpenJDK7 builds report "universal" right now
|
|
String bits = SafePropertyAccessor.getProperty("sun.arch.data.model");
|
|
@@ -214,6 +217,7 @@ public class Platform {
|
|
case SPARCV9:
|
|
case S390X:
|
|
case AARCH64:
|
|
+ case E2K:
|
|
dataModel = 64;
|
|
break;
|
|
default:
|