Make dcsr.halt writable
This commit is contained in:
parent
8516e38eb2
commit
4cd77cef10
@ -501,6 +501,7 @@ class CSRFile(implicit p: Parameters) extends CoreModule()(p)
|
|||||||
if (usingDebug) {
|
if (usingDebug) {
|
||||||
when (decoded_addr(CSRs.dcsr)) {
|
when (decoded_addr(CSRs.dcsr)) {
|
||||||
val new_dcsr = new DCSR().fromBits(wdata)
|
val new_dcsr = new DCSR().fromBits(wdata)
|
||||||
|
reg_dcsr.halt := new_dcsr.halt
|
||||||
reg_dcsr.ebreakm := new_dcsr.ebreakm
|
reg_dcsr.ebreakm := new_dcsr.ebreakm
|
||||||
if (usingVM) reg_dcsr.ebreaks := new_dcsr.ebreaks
|
if (usingVM) reg_dcsr.ebreaks := new_dcsr.ebreaks
|
||||||
if (usingUser) reg_dcsr.ebreaku := new_dcsr.ebreaku
|
if (usingUser) reg_dcsr.ebreaku := new_dcsr.ebreaku
|
||||||
|
Loading…
Reference in New Issue
Block a user