Skip to contentSkip to conversation

disas/riscv: Fix the typo of inverted order of pmpaddr13 and pmpaddr14

PATCH In review Alvin Chang 2 participants 2 messages Sep 7, 2023 – Sep 19, 2023 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 disas/riscv: Fix the typo of inverted order of pmpaddr13 and pmpaddr14

Fix the inverted order of pmpaddr13 and pmpaddr14 in csr_name().

---
 disas/riscv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
disas/riscv.c +2 -2
index 3873a69157..8e89e1d115 100644
@@ -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";
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Alvin Chang

Fix the inverted order of pmpaddr13 and pmpaddr14 in csr_name().

Alistair

Quoted 23 lines
---
 disas/riscv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
disas/riscv.c +2 -3
index 3873a69157..8e89e1d115 100644
@@ -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";
--

2.34.1