OSDN Git Service

target/riscv: Disable the MMU correctly
authorAlistair Francis <alistair.francis@wdc.com>
Tue, 26 May 2020 23:06:02 +0000 (16:06 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 3 Jun 2020 16:11:51 +0000 (09:11 -0700)
commit8be6971b73da45e8ee9f8decd136ff054b5230ac
treebefdae38ead82ad7c111358d482acc637928fd53
parentf92d46ad07064d7b45ebb5f0e983af9b29af2ced
target/riscv: Disable the MMU correctly

Previously if we didn't enable the MMU it would be enabled in the
realize() function anyway. Let's ensure that if we don't want the MMU we
disable it. We also don't need to enable the MMU as it will be enabled
in realize() by default.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
target/riscv/cpu.c