Commit af3fc195 authored by Zong Li's avatar Zong Li Committed by Alistair Francis
Browse files

target/riscv: Change the TLB page size depends on PMP entries.



The minimum granularity of PMP is 4 bytes, it is small than 4KB page
size, therefore, the pmp checking would be ignored if its range doesn't
start from the alignment of one page. This patch detects the pmp entries
and sets the small page size to TLB if there is a PMP entry which cover
the page size.

Signed-off-by: default avatarZong Li <zong.li@sifive.com>
Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
Message-Id: <6b0bf48662ef26ab4c15381a08e78a74ebd7ca79.1595924470.git.zong.li@sifive.com>
Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
parent 9ef82119
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment