RISC-V: Update the rebuild-csr-xml.sh.

We add new arguments defined and aborted verisons for DECLARE_CSR to
support privileged versions controling in binutils.  Therefore, the
rebuild-csr-xml.sh should be updated, too.

	gdb/
	* features/riscv/rebuild-csr-xml.sh: Updated.
This commit is contained in:
Nelson Chu 2020-06-10 18:42:40 -07:00
parent d8af286fff
commit 453c733fcf
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2020-06-12 Nelson Chu <nelson.chu@sifive.com>
* features/riscv/rebuild-csr-xml.sh: Updated.
2020-06-11 Tom Tromey <tom@tromey.com>
PR gdb/18318:

View File

@ -22,12 +22,12 @@ EOF
if [ "$bitsize" = "64" ]; then
grep "^DECLARE_CSR(" ${RISCV_OPC_FILE} \
| sed /CSR_CLASS_.*_32/d \
| sed -e "s!DECLARE_CSR(\(.*\), .*, .*! <reg name=\"\1\" bitsize=\"$bitsize\"/>!"
| sed -e "s!DECLARE_CSR(\(.*\), .*, .*, .*, .*! <reg name=\"\1\" bitsize=\"$bitsize\"/>!"
echo "</feature>"
else
grep "^DECLARE_CSR(" ${RISCV_OPC_FILE} \
| sed -e "s!DECLARE_CSR(\(.*\), .*, .*! <reg name=\"\1\" bitsize=\"$bitsize\"/>!"
| sed -e "s!DECLARE_CSR(\(.*\), .*, .*, .*, .*! <reg name=\"\1\" bitsize=\"$bitsize\"/>!"
echo "</feature>"
fi