Skip to content

Commit dc09460

Browse files
authored
Merge pull request #1880 from riscv-software-src/fix-xdebugver
Set dcsr.xdebugver to 4, as it ought to be
2 parents a2dcf1f + 0fea35d commit dc09460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv/csrs.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ void dcsr_csr_t::verify_permissions(insn_t insn, bool write) const {
13591359

13601360
reg_t dcsr_csr_t::read() const noexcept {
13611361
reg_t result = 0;
1362-
result = set_field(result, DCSR_XDEBUGVER, 1);
1362+
result = set_field(result, DCSR_XDEBUGVER, 4);
13631363
result = set_field(result, DCSR_EBREAKM, ebreakm);
13641364
result = set_field(result, DCSR_EBREAKS, ebreaks);
13651365
result = set_field(result, DCSR_EBREAKU, ebreaku);

0 commit comments

Comments
 (0)