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

Gui Cao gcao at openjdk.org
Tue Apr 9 08:50:43 UTC 2024


> 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)

Gui Cao has updated the pull request incrementally with one additional commit since the last revision:

  8301067: RISC-V: better error message when reporting unsupported satp modes

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

Changes:
  - all: https://git.openjdk.org/riscv-port-jdk11u/pull/19/files
  - new: https://git.openjdk.org/riscv-port-jdk11u/pull/19/files/856643f1..12dc1c74

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=riscv-port-jdk11u&pr=19&range=01
 - incr: https://webrevs.openjdk.org/?repo=riscv-port-jdk11u&pr=19&range=00-01

  Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/riscv-port-jdk11u/pull/19.diff
  Fetch: git fetch https://git.openjdk.org/riscv-port-jdk11u.git pull/19/head:pull/19

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


More information about the riscv-port-dev mailing list