mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
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:
parent
d8af286fff
commit
453c733fcf
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user