[RISCV] Update debug scratch register names
authorPengxuan Zheng <pzheng@quicinc.com>
Thu, 23 Apr 2020 22:07:03 +0000 (15:07 -0700)
committerPengxuan Zheng <pzheng@quicinc.com>
Tue, 5 May 2020 15:46:07 +0000 (08:46 -0700)
commit85aff8a4e49d2bcd143ea1da5b42ced9e4cd2e39
tree5987df1a5f47fbfbd1d1c8c8b62423fe8430a3c7
parent32b19334da14bfa7ab30fe683a0e6a2d2a35e0dc
[RISCV] Update debug scratch register names

Summary:
The RISC-V debug register was named dscratch in a previous draft of the RISC-V
debug mode spec. The number of registers has been increased to 2 in the latest
ratified version of the debug mode spec and the registers were named dscratch0
and dscratch1. We still support using the old register name "dscratch", but it
would be disassembled as "dscratch0" with this change.

Reviewers: apazos, asb, lenary, luismarques

Reviewed By: asb

Subscribers: hiraditya, rbar, johnrusso, simoncook, sabuasal, niosHD, kito-cheng, shiva0217, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, s.egerton, sameer.abuasal, evandro, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78764
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/lib/Target/RISCV/RISCVSystemOperands.td
llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.h
llvm/test/MC/RISCV/machine-csr-names.s