From 17d0df4995356a75565598ca14248559090589ea Mon Sep 17 00:00:00 2001 From: James Wainwright Date: Mon, 19 Jan 2026 14:29:33 +0000 Subject: [PATCH] [ot] target/riscv: csr: remove duplicate predicate check Signed-off-by: James Wainwright --- target/riscv/csr.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/target/riscv/csr.c b/target/riscv/csr.c index ff78a443de39c..be147d1eef034 100644 --- a/target/riscv/csr.c +++ b/target/riscv/csr.c @@ -5630,11 +5630,6 @@ static inline RISCVException riscv_csrrw_check(CPURISCVState *env, return RISCV_EXCP_ILLEGAL_INST; } - /* ensure CSR is implemented by checking predicate */ - if (!csr_ops[csrno].predicate) { - return RISCV_EXCP_ILLEGAL_INST; - } - /* privileged spec version check */ if (env->priv_ver < csr_min_priv) { return RISCV_EXCP_ILLEGAL_INST;