summary refs log tree commit diff stats
path: root/rust/qemu-api-macros/src
diff options
context:
space:
mode:
authorJay Chang <jay.chang@sifive.com>2025-06-06 15:25:25 +0800
committerAlistair Francis <alistair.francis@wdc.com>2025-07-04 21:09:48 +1000
commitcd633bea8b0d30f3418b0dd372116bf3e028e42f (patch)
tree9d1156116d67655b21f73a570e5534999e3ed722 /rust/qemu-api-macros/src
parentb0175841fa4f867b4b1219dba72c33392118dd43 (diff)
downloadfocaccia-qemu-cd633bea8b0d30f3418b0dd372116bf3e028e42f.tar.gz
focaccia-qemu-cd633bea8b0d30f3418b0dd372116bf3e028e42f.zip
target/riscv: Make PMP region count configurable
Previously, the number of PMP regions was hardcoded to 16 in QEMU.
This patch replaces the fixed value with a new `pmp_regions` field,
allowing platforms to configure the number of PMP regions.

If no specific value is provided, the default number of PMP regions
remains 16 to preserve the existing behavior.

A new CPU parameter num-pmp-regions has been introduced to the QEMU
command line. For example:

	-cpu rv64, g=true, c=true, pmp=true, num-pmp-regions=8

Signed-off-by: Jay Chang <jay.chang@sifive.com>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20250606072525.17313-3-jay.chang@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'rust/qemu-api-macros/src')
0 files changed, 0 insertions, 0 deletions