From 633e291cfc9129ca28643b3a6fcb72294d2ef767 Mon Sep 17 00:00:00 2001 From: Feilong Jiang Date: Tue, 31 Jan 2023 07:15:37 +0000 Subject: [PATCH] 8301067: RISC-V: better error message when reporting unsupported satp modes Reviewed-by: fyang, yadongwang --- src/hotspot/cpu/riscv/vm_version_riscv.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hotspot/cpu/riscv/vm_version_riscv.cpp b/src/hotspot/cpu/riscv/vm_version_riscv.cpp index ae210a79dab..26a13913e70 100644 --- a/src/hotspot/cpu/riscv/vm_version_riscv.cpp +++ b/src/hotspot/cpu/riscv/vm_version_riscv.cpp @@ -39,7 +39,9 @@ void VM_Version::initialize() { // check if satp.mode is supported, currently supports up to SV48(RV64) if (get_satp_mode() > VM_SV48) { - vm_exit_during_initialization(err_msg("Unsupported satp mode: %s", _vm_mode)); + vm_exit_during_initialization( + err_msg("Unsupported satp mode: %s. Only satp modes up to sv48 are supported for now.", + _vm_mode)); } // https://github.com/riscv/riscv-profiles/blob/main/profiles.adoc#rva20-profiles