From 6cf6d2d5199cf6694688aba0da3f32fd16e75981 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 16 Oct 2024 10:33:44 +0200 Subject: [PATCH] build-vm-qemu: force sv48 satp mode on riscv64 This is needed for openjdk which does not support sv57. --- build-vm-qemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-vm-qemu b/build-vm-qemu index 9c5f550ab..c212d20c3 100644 --- a/build-vm-qemu +++ b/build-vm-qemu @@ -66,7 +66,7 @@ vm_startup_qemu() { riscv64) qemu_bin="/usr/bin/qemu-system-riscv64" qemu_console=${qemu_console:-ttyS0} - qemu_cpu="-cpu rv64" + qemu_cpu="-cpu rv64,sv48=on" qemu_options="$qemu_options -M virt -bios" if test -f /usr/share/qemu/opensbi-riscv64-generic-fw_dynamic.bin; then qemu_options="$qemu_options /usr/share/qemu/opensbi-riscv64-generic-fw_dynamic.bin"