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

Reviewed-by: fyang, yadongwang
This commit is contained in:
Feilong Jiang 2023-01-31 07:15:37 +00:00 committed by Fei Yang
parent 4b0e259d16
commit 633e291cfc

View File

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