[jdk22u] RFR: 8324280: RISC-V: Incorrect implementation in VM_Version::parse_satp_mode

Gui Cao gcao at openjdk.org
Fri Jan 26 12:10:57 UTC 2024


Hi, The same issue also exists in the JDK22U: I can reproduce it locally and use this clean patch can fix that issue, So I would like to backport this to JDK22U. The parse_satp_mode function is used to parse SATP. Use SATP (Supervised Address Translation and Protection) mode at JVM startup and explicitly warn and stop early when sv57 is enabled [1]. Tier1 tested with fastdebug build using qemu systems. This is a risc-v specific change. Backport is clean, risk is low.

[1] https://github.com/openjdk/jdk/pull/11388

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

Commit messages:
 - Backport e7fdac9d5ce56d2f589df59a7fd2869e35ba2991

Changes: https://git.openjdk.org/jdk22u/pull/34/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk22u&pr=34&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8324280
  Stats: 5 lines in 1 file changed: 0 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk22u/pull/34.diff
  Fetch: git fetch https://git.openjdk.org/jdk22u.git pull/34/head:pull/34

PR: https://git.openjdk.org/jdk22u/pull/34


More information about the jdk-updates-dev mailing list