Skip to content

Commit 8181903

Browse files
rbradfordalistair23
authored andcommitted
disas/riscv: Add missing Sdtrig CSRs
This reflects the latest frozen version of the RISC-V Debug specification (1.0.0-rc4) which includes the Sdtrig extension. Signed-off-by: Rob Bradford <[email protected]> Acked-by: Alistair Francis <[email protected]> Message-ID: <[email protected]> Signed-off-by: Alistair Francis <[email protected]>
1 parent d30db4d commit 8181903

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

disas/riscv.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2438,9 +2438,11 @@ static const char *csr_name(int csrno)
24382438
case 0x07a1: return "tdata1";
24392439
case 0x07a2: return "tdata2";
24402440
case 0x07a3: return "tdata3";
2441+
case 0x07a4: return "tinfo";
24412442
case 0x07b0: return "dcsr";
24422443
case 0x07b1: return "dpc";
2443-
case 0x07b2: return "dscratch";
2444+
case 0x07b2: return "dscratch0";
2445+
case 0x07b3: return "dscratch1";
24442446
case 0x0b00: return "mcycle";
24452447
case 0x0b01: return "mtime";
24462448
case 0x0b02: return "minstret";

0 commit comments

Comments
 (0)