All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/4] Fix some PMP implementations
@ 2020-07-25 15:03 Zong Li
  2020-07-25 15:03   ` Zong Li
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Zong Li @ 2020-07-25 15:03 UTC (permalink / raw)
  To: palmer, Alistair.Francis, bmeng.cn, sagark, kbastian, qemu-riscv,
	qemu-devel
  Cc: Zong Li

This patch set contains the fixes for wrong index of pmpcfg CSR on rv64,
and the pmp range in CSR function table. After 3rd version of this patch
series, we also fix the PMP issues such as wrong physical address
translation and ignoring PMP checking.

Changed in v5:
 - Pick the suggestion which was lost in last version.

Changed in v4:
 - Refine the implementation. Suggested by Bin Meng.
 - Add fix for PMP checking was ignored.

Changed in v3:
 - Refine the implementation. Suggested by Bin Meng.
 - Add fix for wrong pphysical address translation.

Changed in v2:
 - Move out the shifting operation from loop. Suggested by Bin Meng.

Zong Li (4):
  target/riscv: Fix the range of pmpcfg of CSR funcion table
  target/riscv/pmp.c: Fix the index offset on RV64
  target/riscv: Fix the translation of physical address
  target/riscv: Change the TLB page size depends on PMP entries.

 target/riscv/cpu_helper.c | 13 ++++++--
 target/riscv/csr.c        |  2 +-
 target/riscv/pmp.c        | 63 ++++++++++++++++++++++++++++++++++++++-
 target/riscv/pmp.h        |  2 ++
 4 files changed, 75 insertions(+), 5 deletions(-)

-- 
2.27.0



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-07-28  2:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-25 15:03 [PATCH v5 0/4] Fix some PMP implementations Zong Li
2020-07-25 15:03 ` [PATCH v5 1/4] target/riscv: Fix the range of pmpcfg of CSR funcion table Zong Li
2020-07-25 15:03   ` Zong Li
2020-07-25 15:03 ` [PATCH v5 2/4] target/riscv/pmp.c: Fix the index offset on RV64 Zong Li
2020-07-27  7:06   ` Bin Meng
2020-07-27  7:06     ` Bin Meng
2020-07-27 22:26   ` Alistair Francis
2020-07-27 22:26     ` Alistair Francis
2020-07-25 15:03 ` [PATCH v5 3/4] target/riscv: Fix the translation of physical address Zong Li
2020-07-27 22:39   ` Alistair Francis
2020-07-27 22:39     ` Alistair Francis
2020-07-28  2:32     ` Zong Li
2020-07-28  2:32       ` Zong Li
2020-07-25 15:03 ` [PATCH v5 4/4] target/riscv: Change the TLB page size depends on PMP entries Zong Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.