aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-open-bfd.c
diff options
context:
space:
mode:
authorPatrick O'Neill <patrick@rivosinc.com>2022-01-21 09:22:00 -0800
committerNelson Chu <nelson.chu@sifive.com>2022-02-23 19:08:19 +0800
commitdf0a549ebdae74ef9d233243b869d424e6a33c73 (patch)
treefacbdc06b1ed441bc71c04fbe96367e9a0a4a01c /libctf/ctf-open-bfd.c
parentcebc89b9328eab994f6b0314c263f94e7949a553 (diff)
downloadgdb-df0a549ebdae74ef9d233243b869d424e6a33c73.zip
gdb-df0a549ebdae74ef9d233243b869d424e6a33c73.tar.gz
gdb-df0a549ebdae74ef9d233243b869d424e6a33c73.tar.bz2
RISC-V: PR28733, add missing extension info to 'invalid CSR' error
Currently we report errors as "invalid CSR 'fscr' for the current ISA" when the instruction isn't valid. This patch expands that error message to include the missing extension information. For example, now the error message would be "invalid CSR 'fscr' for the current ISA, CSR 'fscr' needs 'f' extension". Signed-off-by: Patrick O'Neill <patrick@rivosinc.com> gas/ pr 28733 * config/tc-riscv.c (riscv_csr_address): Report more details when the CSR is invalid. * testsuite/gas/riscv/csr-version-1p10.l: Updated detailed errors. * testsuite/gas/riscv/csr-version-1p11.l: Likewise. * testsuite/gas/riscv/csr-version-1p12.l: Likewise. * testsuite/gas/riscv/csr-version-1p9p1.l: Likewise.
Diffstat (limited to 'libctf/ctf-open-bfd.c')
0 files changed, 0 insertions, 0 deletions