From 8838bbf1f5ff911e2663f14ed18660b1c26a010d Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Fri, 23 Jun 2023 14:41:35 +0000 Subject: riscv64: Enable JNI compiler. Implement the required `WriteCIE()`, fix a bug in the `art_jni_dlsym_lookup_critical_stub`, fix reference loads to be zero-extended and enable the JNI compiler for riscv64. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Test: run-gtests.sh Test: testrunner.py --target --64 --ndebug --prebuild --no-prebuild -t 178 Test: # Edit `run-test` to disable checker, then testrunner.py --target --64 --ndebug --cdex-none --optimizing # 7 tests fail (pre-existing failures): 004-StackWalk, 137-cfi, # 2042-reference-processing, 597-deopt-busy-loop, 629-vdex-speed, # 638-checker-inline-cache-intrinsic and 661-oat-writer-layout. Test: aosp_cf_riscv64_phone-userdebug boots without crashes. Bug: 283082089 Change-Id: Ifd47098b7428919b601dd22a130ad1bd51ae516d --- compiler/driver/compiler_options.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'compiler/driver/compiler_options.h') diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index c8a41ce24b..74d081d29e 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -115,9 +115,7 @@ class CompilerOptions final { } bool IsAnyCompilationEnabled() const { - return CompilerFilter::IsAnyCompilationEnabled(compiler_filter_) && - // TODO(riscv64): remove this when we have compiler support for RISC-V - GetInstructionSet() != InstructionSet::kRiscv64; + return CompilerFilter::IsAnyCompilationEnabled(compiler_filter_); } size_t GetHugeMethodThreshold() const { -- cgit v1.2.3-59-g8ed1b