From: Nelson Chu <nelson.chu@sifive.com>
To: Binutils <binutils@sourceware.org>, gdb-patches@sourceware.org
Cc: Palmer Dabbelt <palmer@dabbelt.com>,
Kito Cheng <kito.cheng@sifive.com>, Jim Wilson <jimw@sifive.com>,
Andrew Waterman <andrew@sifive.com>,
Andrew Burgess <andrew.burgess@embecosm.com>,
Alex Bradbury <asb@lowrisc.org>,
Maxim Blinov <maxim.blinov@embecosm.com>
Subject: Re: [PATCH v2 9/9] RISC-V: Add documents and --help for the new GAS and OBJDUMP options.
Date: Tue, 19 May 2020 17:08:32 +0800 [thread overview]
Message-ID: <CAJYME4E2o40vTRkoU_3soGW6_MyqxZJTrnz5Gi4rOYpLMzurVw@mail.gmail.com> (raw)
In-Reply-To: <1588733747-18787-10-git-send-email-nelson.chu@sifive.com>
PING :)
On Wed, May 6, 2020 at 10:56 AM Nelson Chu <nelson.chu@sifive.com> wrote:
>
> gas/
> * config/tc-riscv.c (md_show_usage): Add descriptions about
> the new GAS options.
> * doc/c-riscv.texi: Likewise.
>
> opcodes/
> * riscv-dis.c (print_riscv_disassembler_options): Add description
> about the new OBJDUMP option.
> ---
> gas/config/tc-riscv.c | 18 ++++++++++--------
> gas/doc/c-riscv.texi | 16 ++++++++++++++++
> opcodes/riscv-dis.c | 10 +++++++---
> 3 files changed, 33 insertions(+), 11 deletions(-)
>
> diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c
> index 6e30a06..b08339c 100644
> --- a/gas/config/tc-riscv.c
> +++ b/gas/config/tc-riscv.c
> @@ -3469,14 +3469,16 @@ md_show_usage (FILE *stream)
> {
> fprintf (stream, _("\
> RISC-V options:\n\
> - -fpic generate position-independent code\n\
> - -fno-pic don't generate position-independent code (default)\n\
> - -march=ISA set the RISC-V architecture\n\
> - -mabi=ABI set the RISC-V ABI\n\
> - -mrelax enable relax (default)\n\
> - -mno-relax disable relax\n\
> - -march-attr generate RISC-V arch attribute\n\
> - -mno-arch-attr don't generate RISC-V arch attribute\n\
> + -fpic generate position-independent code\n\
> + -fno-pic don't generate position-independent code (default)\n\
> + -march=ISA set the RISC-V architecture\n\
> + -misa-spec=ISAspec set the RISC-V ISA spec (2.2, 20190608, 20191213)\n\
> + -mpriv-spec=PRIVspec set the RISC-V privilege spec (1.9, 1.9.1, 1.10, 1.11)\n\
> + -mabi=ABI set the RISC-V ABI\n\
> + -mrelax enable relax (default)\n\
> + -mno-relax disable relax\n\
> + -march-attr generate RISC-V arch attribute\n\
> + -mno-arch-attr don't generate RISC-V arch attribute\n\
> "));
> }
>
> diff --git a/gas/doc/c-riscv.texi b/gas/doc/c-riscv.texi
> index 488cf56..bf942c3 100644
> --- a/gas/doc/c-riscv.texi
> +++ b/gas/doc/c-riscv.texi
> @@ -42,6 +42,22 @@ Don't generate position-independent code (default)
> @cindex @samp{-march=ISA} option, RISC-V
> @item -march=ISA
> Select the base isa, as specified by ISA. For example -march=rv32ima.
> +If this option and the architecture attributes aren’t set, then assembler
> +will check the default configure setting --with-arch=ISA.
> +
> +@cindex @samp{-misa-spec=ISAspec} option, RISC-V
> +@item -misa-spec=ISAspec
> +Select the default isa spec version. If the version of ISA isn't set
> +by -march, then assembler helps to set the version according to
> +the default chosen spec. If this option isn't set, then assembler will
> +check the default configure setting --with-isa-spec=ISAspec.
> +
> +@cindex @samp{-mpriv-spec=PRIVspec} option, RISC-V
> +@item -mpriv-spec=PRIVspec
> +Select the privileged spec version. We can decide whether the CSR is valid or
> +not according to the chosen spec. If this option and the privilege attributes
> +aren't set, then assembler will check the default configure setting
> +--with-priv-spec=PRIVspec.
>
> @cindex @samp{-mabi=ABI} option, RISC-V
> @item -mabi=ABI
> diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c
> index c5a0d36..f1f20c6 100644
> --- a/opcodes/riscv-dis.c
> +++ b/opcodes/riscv-dis.c
> @@ -603,11 +603,15 @@ The following RISC-V-specific disassembler options are supported for use\n\
> with the -M switch (multiple options should be separated by commas):\n"));
>
> fprintf (stream, _("\n\
> - numeric Print numeric register names, rather than ABI names.\n"));
> + numeric Print numeric register names, rather than ABI names.\n"));
>
> fprintf (stream, _("\n\
> - no-aliases Disassemble only into canonical instructions, rather\n\
> - than into pseudoinstructions.\n"));
> + no-aliases Disassemble only into canonical instructions, rather\n\
> + than into pseudoinstructions.\n"));
> +
> + fprintf (stream, _("\n\
> + priv-spec=PRIV Print the CSR according to the chosen privilege spec\n\
> + (1.9, 1.9.1, 1.10, 1.11).\n"));
>
> fprintf (stream, _("\n"));
> }
> --
> 2.7.4
>
next prev parent reply other threads:[~2020-05-19 9:08 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-06 2:55 [PATCH v2 0/9] RISC-V: Support version controling for ISA standard extensions and CSR Nelson Chu
2020-05-06 2:55 ` [PATCH v2 1/9] RISC-V: Remove the redundant gas test file Nelson Chu
2020-05-19 9:07 ` Nelson Chu
2020-05-06 2:55 ` [PATCH v2 2/9] RISC-V: Forgot to update the priv-reg-fail-read-only-01 test case Nelson Chu
2020-05-19 9:07 ` Nelson Chu
2020-05-06 2:55 ` [PATCH v2 3/9] RISC-V: Support GAS option -misa-spec to set ISA versions Nelson Chu
2020-05-19 9:07 ` Nelson Chu
2020-05-06 2:55 ` [PATCH v2 4/9] RISC-V: Support configure options to set ISA versions by default Nelson Chu
2020-05-19 9:07 ` Nelson Chu
2020-05-06 2:55 ` [PATCH v2 5/9] RISC-V: Support version checking for CSR according to privilege spec version Nelson Chu
2020-05-19 9:08 ` Nelson Chu
2020-05-06 2:55 ` [PATCH v2 6/9] RISC-V: Support configure option to choose the " Nelson Chu
2020-05-19 9:08 ` Nelson Chu
2020-05-06 2:55 ` [PATCH v2 7/9] RISC-V: Make privilege spec attributes workable Nelson Chu
2020-05-19 9:08 ` Nelson Chu
2020-05-06 2:55 ` [PATCH v2 8/9] RISC-V: Disassembler dumps the CSR according to the chosen privilege spec Nelson Chu
2020-05-19 9:08 ` Nelson Chu
2020-05-06 2:55 ` [PATCH v2 9/9] RISC-V: Add documents and --help for the new GAS and OBJDUMP options Nelson Chu
2020-05-19 9:08 ` Nelson Chu [this message]
2020-05-19 9:07 ` [PATCH v2 0/9] RISC-V: Support version controling for ISA standard extensions and CSR Nelson Chu
2020-05-20 16:27 ` Nick Clifton
2020-05-21 2:38 ` Nelson Chu
2020-05-21 7:29 ` Nick Clifton
2020-05-21 9:11 ` Nelson Chu
[not found] ` <CAFyWVaZy9e9aRTRKqzfiJGMBXDYFGOShikWio56PwzjG22ODkA@mail.gmail.com>
[not found] ` <CAJYME4FFQSU-Z4LrGp5-GuaOkyntu2gLApO-PQ2Jvg1a6J6q_Q@mail.gmail.com>
2020-06-01 21:35 ` Jim Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJYME4E2o40vTRkoU_3soGW6_MyqxZJTrnz5Gi4rOYpLMzurVw@mail.gmail.com \
--to=nelson.chu@sifive.com \
--cc=andrew.burgess@embecosm.com \
--cc=andrew@sifive.com \
--cc=asb@lowrisc.org \
--cc=binutils@sourceware.org \
--cc=gdb-patches@sourceware.org \
--cc=jimw@sifive.com \
--cc=kito.cheng@sifive.com \
--cc=maxim.blinov@embecosm.com \
--cc=palmer@dabbelt.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox