riscv: Correctly set the device-tree entry 'mmu-type'
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Fri, 3 Mar 2023 13:12:52 +0000 (14:12 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 6 Mar 2023 16:09:44 +0000 (08:09 -0800)
commited9eb206942e31abbc593a4bfe8bb97f5fb5d551
tree7e78004debb5b48d5cf28e637a3551a33049ba90
parent6df3747a2745534c86db8e8f2ffdb1b8a66e5e84
riscv: Correctly set the device-tree entry 'mmu-type'

The 'mmu-type' should reflect what the hardware is capable of so use the
new satp_mode field in RISCVCPUConfig to do that.

Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Message-ID: <20230303131252.892893-6-alexghiti@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
hw/riscv/virt.c