Skip to content

Commit 6f420e7

Browse files
committed
[JDK-8348174] Adapt JDK-8334717: Add JVMCI support for APX EGPRs
1 parent 39d7479 commit 6f420e7

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

espresso/src/com.oracle.truffle.espresso.jvmci/src/com/oracle/truffle/espresso/jvmci/EspressoJVMCIRuntime.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ private static TargetDescription getHostTarget() {
7676
case "x86_64":
7777
EnumSet<AMD64.CPUFeature> x8664v2 = EnumSet.of(AMD64.CPUFeature.CMOV, AMD64.CPUFeature.CX8, AMD64.CPUFeature.FXSR, AMD64.CPUFeature.MMX, AMD64.CPUFeature.SSE, AMD64.CPUFeature.SSE2,
7878
AMD64.CPUFeature.POPCNT, AMD64.CPUFeature.SSE3, AMD64.CPUFeature.SSE4_1, AMD64.CPUFeature.SSE4_2, AMD64.CPUFeature.SSSE3);
79-
arch = new AMD64(x8664v2, EnumSet.of(AMD64.Flag.UseCountLeadingZerosInstruction, AMD64.Flag.UseCountTrailingZerosInstruction));
79+
arch = new AMD64(x8664v2);
8080
break;
8181
case "aarch64":
8282
case "arm64":
83-
arch = new AArch64(EnumSet.of(AArch64.CPUFeature.FP), EnumSet.noneOf(AArch64.Flag.class));
83+
arch = new AArch64(EnumSet.of(AArch64.CPUFeature.FP));
8484
break;
8585
default:
8686
throw JVMCIError.unimplemented(archString);

web-image/src/com.oracle.svm.hosted.webimage/src/com/oracle/svm/hosted/webimage/codegen/WebImageNoRegisterConfig.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@
2929

3030
import jdk.vm.ci.code.CallingConvention;
3131
import jdk.vm.ci.code.Register;
32-
import jdk.vm.ci.code.RegisterArray;
3332
import jdk.vm.ci.code.RegisterAttributes;
3433
import jdk.vm.ci.code.ValueKindFactory;
3534
import jdk.vm.ci.meta.JavaKind;
3635
import jdk.vm.ci.meta.JavaType;
3736
import jdk.vm.ci.meta.PlatformKind;
3837

38+
import java.util.List;
39+
3940
public class WebImageNoRegisterConfig implements SubstrateRegisterConfig {
4041
@Override
4142
public Register getReturnRegister(JavaKind kind) {
@@ -48,32 +49,32 @@ public CallingConvention getCallingConvention(CallingConvention.Type type, JavaT
4849
}
4950

5051
@Override
51-
public RegisterArray getCallingConventionRegisters(CallingConvention.Type type, JavaKind kind) {
52+
public List<Register> getCallingConventionRegisters(CallingConvention.Type type, JavaKind kind) {
5253
throw VMError.shouldNotReachHereAtRuntime();
5354
}
5455

5556
@Override
56-
public RegisterArray getAllocatableRegisters() {
57+
public List<Register> getAllocatableRegisters() {
5758
throw VMError.shouldNotReachHereAtRuntime();
5859
}
5960

6061
@Override
61-
public RegisterArray filterAllocatableRegisters(PlatformKind kind, RegisterArray registers) {
62+
public List<Register> filterAllocatableRegisters(PlatformKind kind, List<Register> registers) {
6263
throw VMError.shouldNotReachHereAtRuntime();
6364
}
6465

6566
@Override
66-
public RegisterArray getCallerSaveRegisters() {
67+
public List<Register> getCallerSaveRegisters() {
6768
throw VMError.shouldNotReachHereAtRuntime();
6869
}
6970

7071
@Override
71-
public RegisterArray getCalleeSaveRegisters() {
72+
public List<Register> getCalleeSaveRegisters() {
7273
throw VMError.shouldNotReachHereAtRuntime();
7374
}
7475

7576
@Override
76-
public RegisterAttributes[] getAttributesMap() {
77+
public List<RegisterAttributes> getAttributesMap() {
7778
throw VMError.shouldNotReachHereAtRuntime();
7879
}
7980

0 commit comments

Comments
 (0)