summaryrefslogtreecommitdiff
path: root/build/codegen.go
diff options
context:
space:
mode:
author Ulya Trafimovich <skvadrik@google.com> 2023-01-26 12:25:22 +0000
committer Ulya Trofimovich <skvadrik@google.com> 2023-02-21 14:04:16 +0000
commit4184f23701a64e9902ffced803968fcc5601764b (patch)
tree46ada9c7c2d3f504979e35f9101842004c7e5e72 /build/codegen.go
parent5e8ca6af1ef27c4d3e504052c3edec079433e7eb (diff)
riscv64: add initial support for ART.
The only supported mode is the switch interpreter. JNI transitions are not implemented yet (not even generic JNI trampoline), therefore it is impossible to run even a simple hello world test (because it requires loading Java libraries and initializing classes in them, many of which call native methods). The only passing ART test is 000-nop. Test: run ART test 000-nop on a Linux RISC-V VM: lunch aosp_riscv64-userdebug export ART_TEST_SSH_USER=ubuntu export ART_TEST_SSH_HOST=localhost export ART_TEST_SSH_PORT=10001 export ART_TEST_ON_VM=true . art/tools/buildbot-utils.sh art/tools/buildbot-build.sh --target # Create, boot and configure the VM. art/tools/buildbot-vm.sh create art/tools/buildbot-vm.sh boot art/tools/buildbot-vm.sh setup-ssh # password: 'ubuntu' art/tools/buildbot-cleanup-device.sh art/tools/buildbot-setup-device.sh art/tools/buildbot-sync.sh art/test.py --target -r --no-prebuild --ndebug --no-image \ --64 --interpreter 000-nop Co-authored-by: Lifang Xia <lifang_xia@linux.alibaba.com> Change-Id: Iac267525527901b74e863cb8c72ddcf0789e8a5d
Diffstat (limited to 'build/codegen.go')
-rw-r--r--build/codegen.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/codegen.go b/build/codegen.go
index 66569becf9..3cc51a8e1f 100644
--- a/build/codegen.go
+++ b/build/codegen.go
@@ -218,6 +218,8 @@ func defaultDeviceCodegenArches(ctx android.LoadHookContext) []string {
arches[s] = true
if s == "arm64" {
arches["arm"] = true
+ } else if s == "riscv64" {
+ arches["riscv64"] = true
} else if s == "x86_64" {
arches["x86"] = true
}