disas/riscv: Fix the typo of inverted order of pmpaddr13 and pmpaddr14
authorAlvin Chang <vivahavey@gmail.com>
Thu, 7 Sep 2023 08:45:00 +0000 (16:45 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 12 Oct 2023 01:53:47 +0000 (11:53 +1000)
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>
disas/riscv.c

index 3873a69157697cd01aa591a9c5f27cd4da5a3ee0..8e89e1d1157e43dd966ddb33eccf93fee06086f1 100644 (file)
@@ -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";