Skip to content
Snippets Groups Projects
Commit 9ef82119 authored by Zong Li's avatar Zong Li Committed by Alistair Francis
Browse files

target/riscv: Fix the translation of physical address


The real physical address should add the 12 bits page offset. It also
causes the PMP wrong checking due to the minimum granularity of PMP is
4 byte, but we always get the physical address which is 4KB alignment,
that means, we always use the start address of the page to check PMP for
all addresses which in the same page.

Signed-off-by: default avatarZong Li <zong.li@sifive.com>
Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
Message-Id: <370a983d0f9e8a9a927b9bb8af5e7bc84b1bf9b1.1595924470.git.zong.li@sifive.com>
Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
parent a52ea3e7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment