Integrated: 8324280: RISC-V: Incorrect implementation in VM_Version::parse_satp_mode
MaxXing
duke at openjdk.org
Thu Jan 25 03:13:36 UTC 2024
On Mon, 22 Jan 2024 08:39:28 GMT, MaxXing <duke at openjdk.org> wrote:
> Currently, method `VM_Version::os_uarch_additional_features` uses `fgets` to read the contents of `/proc/cpuinfo`, then calls `parse_satp_mode` with a string with the leading "mmu" and whitespaces removed, like ": sv39\n". However, `parse_satp_mode` compares this string directly to "sv39", which always fails and returns `VM_MBARE`.
This pull request has now been integrated.
Changeset: e7fdac9d
Author: MaxXSoft <xingqizheng.xqz at alibaba-inc.com>
Committer: Fei Yang <fyang at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/e7fdac9d5ce56d2f589df59a7fd2869e35ba2991
Stats: 5 lines in 1 file changed: 0 ins; 0 del; 5 mod
8324280: RISC-V: Incorrect implementation in VM_Version::parse_satp_mode
Reviewed-by: rehn, fyang
-------------
PR: https://git.openjdk.org/jdk/pull/17513
More information about the hotspot-runtime-dev
mailing list