[riscv-port-jdk11u:riscv-port] Integrated: 8297697: RISC-V: Add support for SATP mode detection

Gui Cao gcao at openjdk.org
Wed Apr 10 01:45:13 UTC 2024


On Mon, 8 Apr 2024 17:15:28 GMT, Gui Cao <gcao at openjdk.org> wrote:

> Hi,
> Please review this backport to riscv-port-jdk11u.
> Backport of [JDK-8297697](https://bugs.openjdk.org/browse/JDK-8297697), and [JDK-8301067](https://bugs.openjdk.org/browse/JDK-8301067). JDK-8301067 only modifies the log description information introduced by JDK-8297697.
> 
> After this patch, If it is an unsupported satp.mode , the message will be as follows:
> 
> root at qemuriscv64:~/jdk/bin# ./java -version
> Error occurred during initialization of VM
> Unsupported satp mode: sv57
> 
> root at qemuriscv64:~/jdk/bin# cat /proc/cpuinfo
> processor       : 0
> hart            : 0
> isa             : rv64imafdch_zicbom_zicboz_zicntr_zicsr_zifencei_zihintpause_zihpm_zba_zbb_zbs_sstc
> mmu             : sv57
> mvendorid       : 0x0
> marchid         : 0x0
> mimpid          : 0x0
> 
> 
> Testing:
> 
> - [ ] Run tier1 tests on SOPHON SG2042 (release)

This pull request has now been integrated.

Changeset: e14708aa
Author:    Gui Cao <gcao at openjdk.org>
Committer: Fei Yang <fyang at openjdk.org>
URL:       https://git.openjdk.org/riscv-port-jdk11u/commit/e14708aa1d51d277c2ebf0afdb67ff4dfdef7bd3
Stats:     41 lines in 3 files changed: 40 ins; 0 del; 1 mod

8297697: RISC-V: Add support for SATP mode detection
8301067: RISC-V: better error message when reporting unsupported satp modes

Reviewed-by: fyang, fjiang
Backport-of: f49acd52594be3ec1e9682bda3ad69970dfd750d

-------------

PR: https://git.openjdk.org/riscv-port-jdk11u/pull/19


More information about the riscv-port-dev mailing list