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>
  • Loading branch information
gagachang authored and alistair23 committed Oct 12, 2023
1 parent 8633951 commit cffa995
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 cffa995

Please sign in to comment.