DXLEN-1:0
dscratch0
读写可选的 Debug scratch 寄存器;调试器只有在 hartinfo 明确声明时才可写入,因为 Debug Module 可能在内部使用它。
这个字段控制什么
- - 可选的 Debug scratch 寄存器;调试器只有在 hartinfo 明确声明时才可写入,因为 Debug Module 可能在内部使用它。
dscratch0(地址 0x7B2)是 Debug 模式 scratch CSR 0,供调试模式保存临时上下文。
可选的 Debug scratch 寄存器;调试器只有在 hartinfo 明确声明时才可写入,因为 Debug Module 可能在内部使用它。
进入 Debug 模式后按 Debug Specification 读取 dscratch0。
只修改目标调试字段,保留未修改位和实现定义字段。
通过 resume、单步或调试模块行为验证设置是否生效。