Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8284949

riscv: Add Zero support for the 32-bit RISC-V architecture

XMLWordPrintable

    • 19
    • b20
    • riscv
    • linux

      On behalf of Junfeng Xie (xiejunfeng3@huawei.com)

      This patch adds Zero support for the 32-bit RISC-V architecture.

      RV32 only has no `SYS_futex` syscall, so we add SYS_futex -> SYS_futex_time64 aliasing to make it work. [1]

      It has been successfully cross-compiled and java -version looks good:

      $ qemu-riscv32 -L /path/to/riscv32/sysroot /path/to/riscv-port/openjdk-19-internal/bin/java --version
      openjdk 19-internal 2022-09-20
      OpenJDK Runtime Environment (build 19-internal-adhoc.xiejunfeng.riscv-port)
      OpenJDK Zero VM (build 19-internal-adhoc.xiejunfeng.riscv-port, interpreted mode)

      [1] https://patchwork.sourceware.org/patch/37316/

            fjiang Feilong Jiang
            fjiang Feilong Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: