aboutsummaryrefslogtreecommitdiff
path: root/os-posix.c
diff options
context:
space:
mode:
authorZong Li <zong.li@sifive.com>2020-07-28 16:26:16 +0800
committerAlistair Francis <alistair.francis@wdc.com>2020-08-21 22:37:55 -0700
commit9ef82119b10d996cef63af679af5c1a7a85e6c19 (patch)
tree4acfa382f3bb0c52fe5b7a6c73a95c1b00a97c1e /os-posix.c
parenta52ea3e7d2a498e36a399b6ae39b5623e3864fce (diff)
downloadqemu-9ef82119b10d996cef63af679af5c1a7a85e6c19.zip
qemu-9ef82119b10d996cef63af679af5c1a7a85e6c19.tar.gz
qemu-9ef82119b10d996cef63af679af5c1a7a85e6c19.tar.bz2
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: Zong Li <zong.li@sifive.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <370a983d0f9e8a9a927b9bb8af5e7bc84b1bf9b1.1595924470.git.zong.li@sifive.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'os-posix.c')
0 files changed, 0 insertions, 0 deletions