Skip to content

Commit

Permalink
build-vm-qemu: force sv48 satp mode on riscv64
Browse files Browse the repository at this point in the history
This is needed for openjdk which does not support sv57.
  • Loading branch information
andreas-schwab committed Oct 16, 2024
1 parent 069bae0 commit 6cf6d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-vm-qemu
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6cf6d2d

Please sign in to comment.