arch-riscv: added TLB and page table walker.
authorNils Asmussen <nils.asmussen@barkhauseninstitut.org>
Sat, 21 Mar 2020 09:55:20 +0000 (10:55 +0100)
committerNils Asmussen <nils.asmussen@barkhauseninstitut.org>
Wed, 29 Apr 2020 11:41:55 +0000 (11:41 +0000)
commit2527c6c9da9b6585495a5b8dd0ca05fdaeb57f21
tree6502558bce0399e1cda2be3be1e5a00cbd9f7380
parentf8926cd56f01e588b6306733880c6c2e64390b2b
arch-riscv: added TLB and page table walker.

That is, RISC-V has now a TLB and page table walker for Sv39 paging
according to the privileged ISA 1.11.

Both the TLB and PT walker are based on x86 (the code duplication of the
page table walkers will be reduced by a separate commit).

Change-Id: I5e29683bdd40c0d32c06e4d75a8382bf313f2086
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25647
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/riscv/RiscvTLB.py
src/arch/riscv/SConscript
src/arch/riscv/bare_metal/fs_workload.cc
src/arch/riscv/pagetable.cc
src/arch/riscv/pagetable.hh
src/arch/riscv/pagetable_walker.cc [new file with mode: 0644]
src/arch/riscv/pagetable_walker.hh [new file with mode: 0644]
src/arch/riscv/tlb.cc
src/arch/riscv/tlb.hh