Skip to content

Commit 4c3ad5d

Browse files
committed
[ot] target/riscv: csr: remove duplicate predicate check
Signed-off-by: James Wainwright <james.wainwright@lowrisc.org>
1 parent 7b15379 commit 4c3ad5d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

target/riscv/csr.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5630,11 +5630,6 @@ static inline RISCVException riscv_csrrw_check(CPURISCVState *env,
56305630
return RISCV_EXCP_ILLEGAL_INST;
56315631
}
56325632

5633-
/* ensure CSR is implemented by checking predicate */
5634-
if (!csr_ops[csrno].predicate) {
5635-
return RISCV_EXCP_ILLEGAL_INST;
5636-
}
5637-
56385633
/* privileged spec version check */
56395634
if (env->priv_ver < csr_min_priv) {
56405635
return RISCV_EXCP_ILLEGAL_INST;

0 commit comments

Comments
 (0)