mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-22 21:17:59 -04:00
[RTL] Prevent CSR write on any illegal CSR reason
Debug register access sets illegal_csr if not in debug mode but CSR write still went ahead. This modifies the CSR write to ensure that anything that results in an illegal CSR instruction being signalled will prevent a CSR write.
This commit is contained in:
parent
bbb688a2aa
commit
2bc785e7d9
1 changed files with 1 additions and 1 deletions
|
@ -552,7 +552,7 @@ module ibex_cs_registers #(
|
|||
end
|
||||
|
||||
// only write CSRs during one clock cycle
|
||||
assign csr_we_int = csr_wreq & ~illegal_csr_priv & instr_new_id_i;
|
||||
assign csr_we_int = csr_wreq & ~illegal_csr_insn_o & instr_new_id_i;
|
||||
|
||||
assign csr_rdata_o = csr_rdata_int;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue