Welcome to the RISC-V Port Project!
RISC-V is a free and open-source RISC instruction set architecture (ISA) designed originally at the University of California, Berkeley, and now
developed collaboratively under the sponsorship of RISC-V International. It is already supported by a wide range of language toolchains.
With the increasing availability of RISC-V hardware, a port of the JDK would be valuable. RISC-V ISA is actually a family of related ISAs of which
there are currently four base ISAs . Those base ISAs can be combined with a set of standard extensions. RV64G and RV32G are defined as
We have ported JDK to a new platform: Linux/RISC-V. This port supports the following subsystems:
- The template interpreter
- The C1 (client) JIT compiler
- The C2 (server) JIT compiler
- All current mainline GCs, including Z and Shenandoah
Currently, this port only support the RV64G configuration of RISC-V, which is the general-purpose 64-bit RISC-V ISA.
In addition, we have experimental support for RVB, RVC and RVV RISC-V ISA-extentions. These features need to be explicitly enabled respectively
through JVM options: -XX:+UseRVB, -XX:+UseRVC and -XX:+UseRVV. In the future we may consider supporting other RISC-V configurations such as,
for example, a general-purpose 32-bit configuration (RV32G).
We are building nightlies . Hotspot disassember is also available . And we've provided build instructions for reference . You can try RISC-V JDK
with QEMU User/System mode or hardwares like HiFive Unleashed/Unmatched board. Have fun and happy hacking!
masterbranch - synced automatically with the master branch of openjdk/jdk
riscv-port branch- for normal riscv-port project development purpose
Recent space activity