riscv64: Do not use nterp for methods in compact dex.
Test: buildbot-build.sh --target
Bug: 283082047
Change-Id: I14e8a59ef17544a2799640efbaaed2974d86146d
diff --git a/runtime/nterp_helpers.cc b/runtime/nterp_helpers.cc
index d368109..bcedc35 100644
--- a/runtime/nterp_helpers.cc
+++ b/runtime/nterp_helpers.cc
@@ -235,6 +235,9 @@
return false;
}
if (isa == InstructionSet::kRiscv64) {
+ if (method->GetDexFile()->IsCompactDexFile()) {
+ return false; // Riscv64 nterp does not support compact dex yet.
+ }
if (method->DexInstructionData().TriesSize() != 0u) {
return false; // Riscv64 nterp does not support exception handling yet.
}