Skip to content

Commit

Permalink
disas/riscv: Fix the typo of inverted order of pmpaddr13 and pmpaddr14
Browse files Browse the repository at this point in the history
Fix the inverted order of pmpaddr13 and pmpaddr14 in csr_name().

Signed-off-by: Alvin Chang <alvinga@andestech.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20230907084500.328-1-alvinga@andestech.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
(cherry picked from commit cffa995)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
gagachang authored and Michael Tokarev committed Oct 13, 2023
1 parent 2e42ba0 commit a8c0d82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disas/riscv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2116,8 +2116,8 @@ static const char *csr_name(int csrno)
case 0x03ba: return "pmpaddr10";
case 0x03bb: return "pmpaddr11";
case 0x03bc: return "pmpaddr12";
case 0x03bd: return "pmpaddr14";
case 0x03be: return "pmpaddr13";
case 0x03bd: return "pmpaddr13";
case 0x03be: return "pmpaddr14";
case 0x03bf: return "pmpaddr15";
case 0x0780: return "mtohost";
case 0x0781: return "mfromhost";
Expand Down

0 comments on commit a8c0d82

Please sign in to comment.