]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/riscv: acpi: only create RHCT MMU entry for supported types
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Feb 2025 11:00:14 +0000 (12:00 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 May 2025 06:04:19 +0000 (08:04 +0200)
commit82c81c07e83670befc61333e0bdf3d810e581219
tree5714c002200ecf14cf00047db9472a6a16229fc3
parent7f2131c35c1781ca41c62dc26fd93282e1351323
hw/riscv: acpi: only create RHCT MMU entry for supported types

Do not create the RHCT MMU type entry for RV32 CPUs, since it
only has definitions for SV39/SV48/SV57.  Likewise, check that
satp_mode_max_from_map() will actually return a valid value, skipping
the MMU type entry if all MMU types were disabled on the command line.

Acked-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/riscv/virt-acpi-build.c