* [PATCH] RISC-V: Update the rebuild-csr-xml.sh.
@ 2020-06-11 4:53 Nelson Chu
2020-06-11 14:07 ` Andrew Burgess
0 siblings, 1 reply; 3+ messages in thread
From: Nelson Chu @ 2020-06-11 4:53 UTC (permalink / raw)
To: gdb-patches, andrew.burgess
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/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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] RISC-V: Update the rebuild-csr-xml.sh.
2020-06-11 4:53 [PATCH] RISC-V: Update the rebuild-csr-xml.sh Nelson Chu
@ 2020-06-11 14:07 ` Andrew Burgess
2020-06-12 1:45 ` Nelson Chu
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Burgess @ 2020-06-11 14:07 UTC (permalink / raw)
To: Nelson Chu; +Cc: gdb-patches
* 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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] RISC-V: Update the rebuild-csr-xml.sh.
2020-06-11 14:07 ` Andrew Burgess
@ 2020-06-12 1:45 ` Nelson Chu
0 siblings, 0 replies; 3+ messages in thread
From: Nelson Chu @ 2020-06-12 1:45 UTC (permalink / raw)
To: Andrew Burgess; +Cc: gdb-patches
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
> >
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-12 1:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11 4:53 [PATCH] RISC-V: Update the rebuild-csr-xml.sh Nelson Chu
2020-06-11 14:07 ` Andrew Burgess
2020-06-12 1:45 ` Nelson Chu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).