[PATCH] RISC-V: Update the rebuild-csr-xml.sh.
Nelson Chu
nelson.chu@sifive.com
Fri Jun 12 01:45:16 GMT 2020
Committed. Thanks.
Nelson
On Thu, Jun 11, 2020 at 10:07 PM Andrew Burgess
<andrew.burgess@embecosm.com> wrote:
>
> * Nelson Chu <nelson.chu@sifive.com> [2020-06-10 21:53:25 -0700]:
>
> > 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.
>
> LGTM.
>
> Thanks,
> Andrew
>
>
> > ---
> > gdb/features/riscv/rebuild-csr-xml.sh | 4 ++--
> > 1 file 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
> > --
> > 2.7.4
> >
More information about the Gdb-patches
mailing list