Skip to content

Commit

Permalink
scripts/vm-util: Fix reasonable RISC-V CPU by default
Browse files Browse the repository at this point in the history
  • Loading branch information
avdgrinten committed Nov 23, 2024
1 parent 5bb9541 commit 21b281d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/vm-util.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def do_qemu(args):
qemu_args += ["-serial", "stdio"]
elif args.arch == "riscv64":
# Use the virt machine and -kernel, similar to aarch64.
qemu_args += ["-machine", "virt"]
qemu_args += ["-machine", "virt,acpi=off"]
qemu_args += ["-serial", "stdio"]
if not args.uefi:
qemu_args += ["-kernel", "system-root/usr/managarm/bin/eir-virt"]
Expand All @@ -199,7 +199,8 @@ def do_qemu(args):
cpu_model = "cortex-a72"
else:
assert args.arch == "riscv64"
cpu_model = "rv64"
cpu_model = "rva22s64"
cpu_extras = ["sv48=on", "svadu=on", "svade=off"]

if cpu_extras:
qemu_args += ["-cpu", cpu_model + "," + ",".join(cpu_extras)]
Expand Down

0 comments on commit 21b281d

Please sign in to comment.