mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 12:57:13 -04:00
[rtl] Flush pipe on MSECCFG CSR write
Without this an instruction executed immediately after the MSECCFG write doesn't have the new MSECCFG setup applied to its execute permission.
This commit is contained in:
parent
fb32236a3f
commit
726eb97a88
1 changed files with 1 additions and 0 deletions
|
@ -522,6 +522,7 @@ module ibex_id_stage #(
|
|||
if (csr_op_en_o == 1'b1 && (csr_op_o == CSR_OP_WRITE || csr_op_o == CSR_OP_SET)) begin
|
||||
if (csr_num_e'(instr_rdata_i[31:20]) == CSR_MSTATUS ||
|
||||
csr_num_e'(instr_rdata_i[31:20]) == CSR_MIE ||
|
||||
csr_num_e'(instr_rdata_i[31:20]) == CSR_MSECCFG ||
|
||||
// To catch all PMPCFG/PMPADDR registers, get the shared top most 7 bits.
|
||||
instr_rdata_i[31:25] == 7'h1D) begin
|
||||
csr_pipe_flush = 1'b1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue