target/riscv/tcg: set 'mmu' with 'satp' in cpu_set_profile()
authorDaniel Henrique Barboza <dbarboza@ventanamicro.com>
Thu, 15 Feb 2024 22:39:50 +0000 (19:39 -0300)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 8 Mar 2024 06:28:14 +0000 (16:28 +1000)
commit4f6473ad6853e6a1a2fa4ed35d6331cc16949ad5
tree69690004e5b9ea6e97ee9d152c21652104b6cb52
parenta3432cf227908f8169bfc45caa900ef29e757440
target/riscv/tcg: set 'mmu' with 'satp' in cpu_set_profile()

Recent changes in options handling removed the 'mmu' default the bare
CPUs had, meaning that we must enable 'mmu' by hand when using the
rva22s64 profile CPU.

Given that this profile is setting a satp mode, it already implies that
we need a 'mmu'. Enable the 'mmu' in this case.

Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20240215223955.969568-2-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/tcg/tcg-cpu.c