RISC-V: Update the rebuild-csr-xml.sh.
authorNelson Chu <nelson.chu@sifive.com>
Thu, 11 Jun 2020 01:42:40 +0000 (18:42 -0700)
committerNelson Chu <nelson.chu@sifive.com>
Fri, 12 Jun 2020 01:44:02 +0000 (09:44 +0800)
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.

gdb/ChangeLog
gdb/features/riscv/rebuild-csr-xml.sh

index 5ef6ee6aca4616d77268f680ebadbc70ffd187fb..c8597e637f4cba7e504606d26d2b6444dcea2f6a 100644 (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:
index 1adb18009d31020db631e4e1a09790b8f51d298b..bff79b0371fe8671a6509eea94583b74a58b88a6 100755 (executable)
@@ -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