diff mbox series

[2/2] disas/riscv: Add missing Sdtrig CSRs

Message ID 20250206153410.236636-3-rbradford@rivosinc.com (mailing list archive)
State New
Headers show
Series disas/riscv: Add missing Sdtrig CSRs | expand

Commit Message

Rob Bradford Feb. 6, 2025, 3:34 p.m. UTC
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 <rbradford@rivosinc.com>
---
 disas/riscv.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Alistair Francis Feb. 10, 2025, 12:56 a.m. UTC | #1
On Fri, Feb 7, 2025 at 1:35 AM Rob Bradford <rbradford@rivosinc.com> wrote:
>
> 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 <rbradford@rivosinc.com>

Acked-by: Alistair Francis <alistair.francis@wdc.com>

Alistair

> ---
>  disas/riscv.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/disas/riscv.c b/disas/riscv.c
> index 305dd40ac4..85cd2a9c2a 100644
> --- a/disas/riscv.c
> +++ b/disas/riscv.c
> @@ -2438,9 +2438,11 @@ static const char *csr_name(int csrno)
>      case 0x07a1: return "tdata1";
>      case 0x07a2: return "tdata2";
>      case 0x07a3: return "tdata3";
> +    case 0x07a4: return "tinfo";
>      case 0x07b0: return "dcsr";
>      case 0x07b1: return "dpc";
> -    case 0x07b2: return "dscratch";
> +    case 0x07b2: return "dscratch0";
> +    case 0x07b3: return "dscratch1";
>      case 0x0b00: return "mcycle";
>      case 0x0b01: return "mtime";
>      case 0x0b02: return "minstret";
> --
> 2.48.1
>
>
diff mbox series

Patch

diff --git a/disas/riscv.c b/disas/riscv.c
index 305dd40ac4..85cd2a9c2a 100644
--- a/disas/riscv.c
+++ b/disas/riscv.c
@@ -2438,9 +2438,11 @@  static const char *csr_name(int csrno)
     case 0x07a1: return "tdata1";
     case 0x07a2: return "tdata2";
     case 0x07a3: return "tdata3";
+    case 0x07a4: return "tinfo";
     case 0x07b0: return "dcsr";
     case 0x07b1: return "dpc";
-    case 0x07b2: return "dscratch";
+    case 0x07b2: return "dscratch0";
+    case 0x07b3: return "dscratch1";
     case 0x0b00: return "mcycle";
     case 0x0b01: return "mtime";
     case 0x0b02: return "minstret";