commit | 79d407280ca0d7553b1f29a9533f64664b8ecb65 | [log] [tgz] |
---|---|---|
author | Alex Richardson <alexrichardson@google.com> | Mon Feb 27 16:58:44 2023 +0000 |
committer | Alex Richardson <alexrichardson@google.com> | Thu Mar 09 09:38:32 2023 +0000 |
tree | 0e56c69312be1a0622d93bfd39297cc92aee2437 | |
parent | 54e06f88c25a2284e4cd053a27bb868b1260fe19 [diff] |
arch-riscv: Fix invalid std::map access The CSRData map uses a RISC-V CSR number as the key rather than one of the MISCREG_* enumerators. Use MiscRegNames[] instead to stringify the argument for the debug message. Change-Id: I2533bc29d148d3b34c01022eeaeedf64c39a99b9 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/68759 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>