RISC-V: Hardwire satp to 0 for no-mmu case
commit33e3bc8d77b6ce95e622bdc0fce622d35b7ee56c
authorMichael Clark <mjc@sifive.com>
Mon, 5 Mar 2018 20:48:41 +0000 (6 09:48 +1300)
committerMichael Clark <mjc@sifive.com>
Sat, 5 May 2018 22:39:38 +0000 (6 10:39 +1200)
tree8156f6516347fdc27a08bf4f84115e300b6bc157
parent79f86934267135080e13e02b52c74371220d8e06
RISC-V: Hardwire satp to 0 for no-mmu case

satp is WARL so it should not trap on illegal writes, rather
it can be hardwired to zero and silently ignore illegal writes.

It seems the RISC-V WARL behaviour is preferred to having to
trap overhead versus simply reading back the value and checking
if the write took (saves hundreds of cycles and more complex
trap handling code).

Cc: Sagar Karandikar <sagark@eecs.berkeley.edu>
Cc: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: Alistair Francis <Alistair.Francis@wdc.com>
Signed-off-by: Michael Clark <mjc@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/op_helper.c