diff --git a/riscv/csrs.cc b/riscv/csrs.cc index 83b9a4425..0e2e3e12d 100644 --- a/riscv/csrs.cc +++ b/riscv/csrs.cc @@ -1359,7 +1359,7 @@ void dcsr_csr_t::verify_permissions(insn_t insn, bool write) const { reg_t dcsr_csr_t::read() const noexcept { reg_t result = 0; - result = set_field(result, DCSR_XDEBUGVER, 1); + result = set_field(result, DCSR_XDEBUGVER, 4); result = set_field(result, DCSR_EBREAKM, ebreakm); result = set_field(result, DCSR_EBREAKS, ebreaks); result = set_field(result, DCSR_EBREAKU, ebreaku);