target/riscv: Drop stray '+' in pmp()
PATCH 1/1 target/riscv: Drop stray '+' in pmp()
Remove an unintended leading '+' left in target/riscv/csr.c (pmp()).
---
This patch fixes a stray '+' character that was accidentally introduced in the PMP (Physical Memory Protection) CSR handling code in target/riscv/csr.c.
The issue was introduced in commit cd633bea8b0 as part of the PMP region count configurable feature and causes a syntax error that prevents compilation.
--- target/riscv/csr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/riscv/csr.c +1 -1
@@ -743,7 +743,7 @@ static RISCVException pmp(CPURISCVState *env, int csrno) {if (riscv_cpu_cfg (env)->pmp) {int max_pmpcfg = (env->priv_ver >=PRIV_VERSION_1_12_0 ) ? -+CSR_PMPCFG15 :CSR_PMPCFG3 ; +CSR_PMPCFG15 :CSR_PMPCFG3 ;if (csrno <= max_pmpcfg) {uint32_t reg_index = csrno -CSR_PMPCFG0 ;
---
base-commit: 0fc482b73d8e085d1375b4e17b0647fd2e6fe8f0
change-id: 20251225-stray-d48679fda4a0
Best regards,
Signature · 1 line
TANG Tiancheng <[email protected]>
Quoted 12 lines · TANG Tiancheng
Remove an unintended leading '+' left in
target/riscv/csr.c(pmp()).Fixes cd633bea8b0Signed-off-by TANG Tiancheng <[email protected]>---
This patch fixes a stray '+' character that was accidentally introduced in the PMP (Physical Memory Protection) CSR handling code intarget/riscv/csr.c.The issue was introduced in commit
cd633bea8b0as part of the PMP region count configurable feature and causes a syntax error that prevents compilation.
Quoted 5 lines
Fixes cd633bea8b0--- target/riscv/csr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 8 lines · TANG Tiancheng
Remove an unintended leading '+' left in
target/riscv/csr.c(pmp()).Fixes cd633bea8b0Signed-off-by TANG Tiancheng <[email protected]>---
This patch fixes a stray '+' character that was accidentally introduced in the PMP (Physical Memory Protection) CSR handling code intarget/riscv/csr.c.
Quoted 7 lines
The issue was introduced in commit
cd633bea8b0as part of the PMP region count configurable feature and causes a syntax error that prevents compilation.Fixes cd633bea8b0---
Quoted 22 lines
target/riscv/csr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)target/riscv/csr.c +1
-2@@ -743,7 +743,7 @@ static RISCVException pmp(CPURISCVState *env, int csrno) {if (riscv_cpu_cfg (env)->pmp) {int max_pmpcfg = (env->priv_ver >=PRIV_VERSION_1_12_0 ) ? -+CSR_PMPCFG15 :CSR_PMPCFG3 ; +CSR_PMPCFG15 :CSR_PMPCFG3 ;if (csrno <= max_pmpcfg) {uint32_t reg_index = csrno -CSR_PMPCFG0 ; ---base-commit:
0fc482b73d8e085d1375b4e17b0647fd2e6fe8f0
change-id: 20251225-stray-d48679fda4a0Best regards,