diff options
author | Jay Chang <jay.chang@sifive.com> | 2025-06-06 15:25:25 +0800 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2025-07-04 21:09:48 +1000 |
commit | cd633bea8b0d30f3418b0dd372116bf3e028e42f (patch) | |
tree | 9d1156116d67655b21f73a570e5534999e3ed722 /scripts/qapi/source.py | |
parent | b0175841fa4f867b4b1219dba72c33392118dd43 (diff) | |
download | qemu-cd633bea8b0d30f3418b0dd372116bf3e028e42f.zip qemu-cd633bea8b0d30f3418b0dd372116bf3e028e42f.tar.gz qemu-cd633bea8b0d30f3418b0dd372116bf3e028e42f.tar.bz2 |
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 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions