diff options
author | Zong Li | 2020-07-28 10:26:17 +0200 |
---|---|---|
committer | Alistair Francis | 2020-08-22 07:37:55 +0200 |
commit | af3fc195e3c8e98b62eca3e4ee927f1965381dc3 (patch) | |
tree | 22c7f1ea1203cb96659676c19143af376b5fcf08 /hw/intc/ioapic.c | |
parent | target/riscv: Fix the translation of physical address (diff) | |
download | qemu-af3fc195e3c8e98b62eca3e4ee927f1965381dc3.tar.gz qemu-af3fc195e3c8e98b62eca3e4ee927f1965381dc3.tar.xz qemu-af3fc195e3c8e98b62eca3e4ee927f1965381dc3.zip |
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: Zong Li <zong.li@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <6b0bf48662ef26ab4c15381a08e78a74ebd7ca79.1595924470.git.zong.li@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/intc/ioapic.c')
0 files changed, 0 insertions, 0 deletions