Support for a 128-bit satp. This is a bit more involved than necessary
because we took the opportunity to increase the page size to 16kB, and
change the page table geometry, which makes the page walk a bit more
parametrizable (variables instead of defines).
Note that is anyway a necessary step for the merging of the 32-bit and
64-bit riscv versions in a single executable.
Signed-off-by: Frédéric Pétrot<frederic.petrot@univ-grenoble-alpes.fr>
Co-authored-by: Fabien Portas<fabien.portas@grenoble-inp.org>
---
target/riscv/cpu-param.h | 9 +++-
target/riscv/cpu_bits.h | 10 ++++
target/riscv/cpu_helper.c | 54 ++++++++++++++------
target/riscv/csr.c | 105 ++++++++++++++++++++++++++++++++------
4 files changed, 144 insertions(+), 34 deletions(-)