diff options
author | Nelson Chu <nelson.chu@sifive.com> | 2020-06-10 18:42:40 -0700 |
---|---|---|
committer | Nelson Chu <nelson.chu@sifive.com> | 2020-06-12 09:44:02 +0800 |
commit | 453c733fcf74893b5907f935283976c11cd46ad5 (patch) | |
tree | 05f75bbd4f6f377d8c35b8889141915e29efa1e9 /gdb/features/riscv | |
parent | d8af286fffa664a4399be2f4f157d2425c50acf1 (diff) | |
download | gdb-453c733fcf74893b5907f935283976c11cd46ad5.zip gdb-453c733fcf74893b5907f935283976c11cd46ad5.tar.gz gdb-453c733fcf74893b5907f935283976c11cd46ad5.tar.bz2 |
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.
Diffstat (limited to 'gdb/features/riscv')
-rwxr-xr-x | gdb/features/riscv/rebuild-csr-xml.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/features/riscv/rebuild-csr-xml.sh b/gdb/features/riscv/rebuild-csr-xml.sh index 1adb180..bff79b0 100755 --- a/gdb/features/riscv/rebuild-csr-xml.sh +++ b/gdb/features/riscv/rebuild-csr-xml.sh @@ -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 |