Skip to content

Commit

Permalink
Merge pull request #1880 from riscv-software-src/fix-xdebugver
Browse files Browse the repository at this point in the history
Set dcsr.xdebugver to 4, as it ought to be
  • Loading branch information
aswaterman authored Dec 17, 2024
2 parents a2dcf1f + 0fea35d commit dc09460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv/csrs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dc09460

Please sign in to comment.