diff options
author | Daniel Henrique Barboza <dbarboza@ventanamicro.com> | 2023-02-22 15:52:02 -0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-03-01 13:47:13 -0800 |
commit | 3fe40ef5a90d62e5695c18ec8aa517a0694ce7ed (patch) | |
tree | ca5ef13e1339742dee64a4332c5998818d01747e /target/riscv/cpu.c | |
parent | 6a3ffda2ba4f3d4895c8d45d35feb61ddbd3a4f5 (diff) | |
download | qemu-3fe40ef5a90d62e5695c18ec8aa517a0694ce7ed.zip qemu-3fe40ef5a90d62e5695c18ec8aa517a0694ce7ed.tar.gz qemu-3fe40ef5a90d62e5695c18ec8aa517a0694ce7ed.tar.bz2 |
target/riscv: remove RISCV_FEATURE_PMP
RISCV_FEATURE_PMP is being set via riscv_set_feature() by mirroring the
cpu->cfg.pmp flag. Use the flag instead.
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Message-ID: <20230222185205.355361-8-dbarboza@ventanamicro.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'target/riscv/cpu.c')
-rw-r--r-- | target/riscv/cpu.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 807a466..d321ad2 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -923,10 +923,6 @@ static void riscv_cpu_realize(DeviceState *dev, Error **errp) riscv_set_feature(env, RISCV_FEATURE_MMU); } - if (cpu->cfg.pmp) { - riscv_set_feature(env, RISCV_FEATURE_PMP); - } - if (cpu->cfg.epmp && !cpu->cfg.pmp) { /* * Enhanced PMP should only be available |