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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11, 17, 18, 19
    • Fix Version/s: 19
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      19
    • Resolved In Build:
      b20
    • CPU:
      riscv
    • OS:
      linux

      Description

      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/

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: