riscv64: op_const_4 implementation

Minimal asm to start HelloWorld until we hit the next opcode
(nterp_op_new_array) with SIGILL.

Test: Run ART test 001-HelloWorld 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

  # Test Nterp (first revert 2547153 in local build)
  art/test.py --target -r --no-prebuild --ndebug --no-image \
    --64 001-HelloWorld
  # SIGILL in nterp_op_new_array

Change-Id: I0600394428eb1a1f16b9390f80faea5c3f893141
2 files changed