diff options
author | Alvin Chang <vivahavey@gmail.com> | 2023-09-07 16:45:00 +0800 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2023-10-12 11:53:47 +1000 |
commit | cffa9954908830276c93b430681f66cc0e599aef (patch) | |
tree | a5c26e7d732082bb546f0fa81d7d7896a481f313 /disas | |
parent | 8633951530cc923f1e7a6cd250f670f24c0ed817 (diff) | |
download | qemu-cffa9954908830276c93b430681f66cc0e599aef.zip qemu-cffa9954908830276c93b430681f66cc0e599aef.tar.gz qemu-cffa9954908830276c93b430681f66cc0e599aef.tar.bz2 |
disas/riscv: Fix the typo of inverted order of pmpaddr13 and pmpaddr14
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>
Diffstat (limited to 'disas')
-rw-r--r-- | disas/riscv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/disas/riscv.c b/disas/riscv.c index 3873a69..8e89e1d 100644 --- a/disas/riscv.c +++ b/disas/riscv.c @@ -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"; |