mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 04:47:25 -04:00
Mask LSB of mepc
CSR to 0 for writes initiated by software
This commit is contained in:
parent
07214f626d
commit
2967113edd
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ module ibex_cs_registers #(
|
|||
end
|
||||
|
||||
// mepc: exception program counter
|
||||
CSR_MEPC: if (csr_we_int) mepc_n = csr_wdata_int;
|
||||
CSR_MEPC: if (csr_we_int) mepc_n = {csr_wdata_int[31:1], 1'b0};
|
||||
|
||||
// mcause
|
||||
CSR_MCAUSE: if (csr_we_int) mcause_n = {csr_wdata_int[31], csr_wdata_int[4:0]};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue