[v1,1/2] RISC-V: update docs for -mpriv-spec/--with-priv-spec for 1.12

Message ID 20220105212650.1432946-1-philipp.tomsich@vrull.eu
State New
Headers show
Series
  • [v1,1/2] RISC-V: update docs for -mpriv-spec/--with-priv-spec for 1.12
Related show

Commit Message

Philipp Tomsich Jan. 5, 2022, 9:26 p.m.
While support for the privileged spec was added in a63375ac337
("RISC-V: Hypervisor ext: support Privileged Spec 1.12"), the
documentation has not been updated.  Add 1.12 to the relevant
documentation.

References: a63375ac337 ("RISC-V: Hypervisor ext: support Privileged Spec 1.12")

gas/ChangeLog:

	* config/tc-riscv.c: Add 1.12 to the usage message.
	* configure: Regenerate.
	* configure.ac: Add 1.12 to the help/usage message.
	* po/fr.po: Same.
	* po/ru.po: Same.
	* po/uk.po: Same.
---

 gas/config/tc-riscv.c | 2 +-
 gas/configure         | 2 +-
 gas/configure.ac      | 2 +-
 gas/po/fr.po          | 4 ++--
 gas/po/ru.po          | 4 ++--
 gas/po/uk.po          | 4 ++--
 6 files changed, 9 insertions(+), 9 deletions(-)

-- 
2.33.1

Comments

Nelson Chu Jan. 6, 2022, 8:58 a.m. | #1
On Thu, Jan 6, 2022 at 5:26 AM Philipp Tomsich <philipp.tomsich@vrull.eu> wrote:
>

> While support for the privileged spec was added in a63375ac337

> ("RISC-V: Hypervisor ext: support Privileged Spec 1.12"), the

> documentation has not been updated.  Add 1.12 to the relevant

> documentation.

>

> References: a63375ac337 ("RISC-V: Hypervisor ext: support Privileged Spec 1.12")


Looks good to me, thanks.

> gas/ChangeLog:

>

>         * config/tc-riscv.c: Add 1.12 to the usage message.

>         * configure: Regenerate.

>         * configure.ac: Add 1.12 to the help/usage message.

>         * po/fr.po: Same.

>         * po/ru.po: Same.

>         * po/uk.po: Same.


I remember that all po files will be updated before release, so I am
not used to updating them :)  Anyway, updating them now should be OK.

> ---

>

>  gas/config/tc-riscv.c | 2 +-

>  gas/configure         | 2 +-

>  gas/configure.ac      | 2 +-

>  gas/po/fr.po          | 4 ++--

>  gas/po/ru.po          | 4 ++--

>  gas/po/uk.po          | 4 ++--

>  6 files changed, 9 insertions(+), 9 deletions(-)

>

> diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c

> index 5f8e1181baa..33046af707c 100644

> --- a/gas/config/tc-riscv.c

> +++ b/gas/config/tc-riscv.c

> @@ -4167,7 +4167,7 @@ RISC-V options:\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, 1.10, 1.11)\n\

> +  -mpriv-spec=PRIVspec        set the RISC-V privilege spec (1.9.1, 1.10, 1.11, 1.12)\n\

>    -mabi=ABI                   set the RISC-V ABI\n\

>    -mrelax                     enable relax (default)\n\

>    -mno-relax                  disable relax\n\

> diff --git a/gas/configure b/gas/configure

> index abe8a807257..65bd7c973de 100755

> --- a/gas/configure

> +++ b/gas/configure

> @@ -12473,7 +12473,7 @@ _ACEOF

>          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_isa_spec" >&5

>  $as_echo "$with_isa_spec" >&6; }

>

> -        # --with-priv-spec=[1.9|1.9.1|1.10|1.11].

> +        # --with-priv-spec=[1.9|1.9.1|1.10|1.11|1.12].

>          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-priv-spec" >&5

>  $as_echo_n "checking for default configuration of --with-priv-spec... " >&6; }

>          if test "x${with_priv_spec}" != x; then

> diff --git a/gas/configure.ac b/gas/configure.ac

> index dc7fd1fd742..4c178eb0a53 100644

> --- a/gas/configure.ac

> +++ b/gas/configure.ac

> @@ -617,7 +617,7 @@ changequote([,])dnl

>          fi

>          AC_MSG_RESULT($with_isa_spec)

>

> -        # --with-priv-spec=[1.9|1.9.1|1.10|1.11].

> +        # --with-priv-spec=[1.9|1.9.1|1.10|1.11|1.12].

>          AC_MSG_CHECKING(for default configuration of --with-priv-spec)

>          if test "x${with_priv_spec}" != x; then

>            AC_DEFINE_UNQUOTED(DEFAULT_RISCV_PRIV_SPEC, "$with_priv_spec",

> diff --git a/gas/po/fr.po b/gas/po/fr.po

> index bb0931ca8af..beefd4c2745 100644

> --- a/gas/po/fr.po

> +++ b/gas/po/fr.po

> @@ -15884,7 +15884,7 @@ msgid ""

>  "  -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"

> +"  -mpriv-spec=PRIVspec        set the RISC-V privilege spec (1.9, 1.9.1, 1.10, 1.11, 1.12)\n"

>  "  -mabi=ABI                   set the RISC-V ABI\n"

>  "  -mrelax                     enable relax (default)\n"

>  "  -mno-relax                  disable relax\n"

> @@ -15896,7 +15896,7 @@ msgstr ""

>  "  -fno-pic                    ne pas générer du code indépendant de la position (défaut)\n"

>  "  -march=ISA                  définir l'architecture RISC-V\n"

>  "  -misa-spec=ISAspec          définir la spécification de l'ISA RISC-V (2.2, 20190608, 20191213)\n"

> -"  -mpriv-spec=PRIVspec        définir la spécification de privilège RISC-V (1.9, 1.9.1, 1.10, 1.11)\n"

> +"  -mpriv-spec=PRIVspec        définir la spécification de privilège RISC-V (1.9, 1.9.1, 1.10, 1.11, 1.12)\n"

>  "  -mabi=ABI                   définir l'ABI RISC-V\n"

>  "  -mrelax                     activer la relaxation (défaut)\n"

>  "  -mno-relax                  désactiver la relaxation\n"

> diff --git a/gas/po/ru.po b/gas/po/ru.po

> index 3f4d4835a44..61f61f50259 100644

> --- a/gas/po/ru.po

> +++ b/gas/po/ru.po

> @@ -15966,7 +15966,7 @@ msgid ""

>  "  -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"

> +"  -mpriv-spec=PRIVspec        set the RISC-V privilege spec (1.9, 1.9.1, 1.10, 1.11, 1.12)\n"

>  "  -mabi=ABI                   set the RISC-V ABI\n"

>  "  -mrelax                     enable relax (default)\n"

>  "  -mno-relax                  disable relax\n"

> @@ -15982,7 +15982,7 @@ msgstr ""

>  "                 задать спецификацию ISA RISC-V (2.2, 20190608, 20191213)\n"

>  "  -mpriv-spec=PRIVspec\n"

>  "                 задать спецификацию привилегий RISC-V\n"

> -"                 (1.9, 1.9.1, 1.10, 1.11)\n"

> +"                 (1.9, 1.9.1, 1.10, 1.11, 1.12)\n"

>  "  -mabi=ABI      задать RISC-V ABI\n"

>  "  -mrelax        включить ослабление (по умолчанию)\n"

>  "  -mno-relax     выключить ослабление\n"

> diff --git a/gas/po/uk.po b/gas/po/uk.po

> index 927602536e2..0765b51a3e8 100644

> --- a/gas/po/uk.po

> +++ b/gas/po/uk.po

> @@ -15877,7 +15877,7 @@ msgid ""

>  "  -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"

> +"  -mpriv-spec=PRIVspec        set the RISC-V privilege spec (1.9, 1.9.1, 1.10, 1.11, 1.12)\n"

>  "  -mabi=ABI                   set the RISC-V ABI\n"

>  "  -mrelax                     enable relax (default)\n"

>  "  -mno-relax                  disable relax\n"

> @@ -15889,7 +15889,7 @@ msgstr ""

>  "  -fno-pic                    не створювати позиційно незалежного коду (типово)\n"

>  "  -march=ISA                  встановити архітектуру RISC-V\n"

>  "  -misa-spec=ISAspec          встановити специфікацію ISA RISC-V (2.2, 20190608, 20191213)\n"

> -"  -mpriv-spec=PRIVspec        встановити специфікацію прав доступу RISC-V (1.9, 1.9.1, 1.10, 1.11)\n"

> +"  -mpriv-spec=PRIVspec        встановити специфікацію прав доступу RISC-V (1.9, 1.9.1, 1.10, 1.11, 1.12)\n"

>  "  -mabi=ABI                   встановити ABI RISC-V\n"

>  "  -mrelax                     увімкнути оптимізацію (типова поведінка)\n"

>  "  -mno-relax                  вимкнути оптимізацію\n"

> --

> 2.33.1

>
Philipp Tomsich Jan. 6, 2022, 10:33 a.m. | #2
On Thu, 6 Jan 2022 at 09:58, Nelson Chu <nelson.chu@sifive.com> wrote:

> > gas/ChangeLog:

> >

> >         * config/tc-riscv.c: Add 1.12 to the usage message.

> >         * configure: Regenerate.

> >         * configure.ac: Add 1.12 to the help/usage message.

> >         * po/fr.po: Same.

> >         * po/ru.po: Same.

> >         * po/uk.po: Same.

>

> I remember that all po files will be updated before release, so I am

> not used to updating them :)  Anyway, updating them now should be OK.

>


Good point: this actually raises the question how the removed "1.9" (which
was ~ 2 releases ago) survived up until today in the .po-files…
We may want to keep an eye on these around future releases to make sure
that this assumption always holds.

I'll go ahead and apply these now.

Cheers,
Philipp.

Patch

diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c
index 5f8e1181baa..33046af707c 100644
--- a/gas/config/tc-riscv.c
+++ b/gas/config/tc-riscv.c
@@ -4167,7 +4167,7 @@  RISC-V options:\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, 1.10, 1.11)\n\
+  -mpriv-spec=PRIVspec        set the RISC-V privilege spec (1.9.1, 1.10, 1.11, 1.12)\n\
   -mabi=ABI                   set the RISC-V ABI\n\
   -mrelax                     enable relax (default)\n\
   -mno-relax                  disable relax\n\
diff --git a/gas/configure b/gas/configure
index abe8a807257..65bd7c973de 100755
--- a/gas/configure
+++ b/gas/configure
@@ -12473,7 +12473,7 @@  _ACEOF
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_isa_spec" >&5
 $as_echo "$with_isa_spec" >&6; }
 
-        # --with-priv-spec=[1.9|1.9.1|1.10|1.11].
+        # --with-priv-spec=[1.9|1.9.1|1.10|1.11|1.12].
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-priv-spec" >&5
 $as_echo_n "checking for default configuration of --with-priv-spec... " >&6; }
         if test "x${with_priv_spec}" != x; then
diff --git a/gas/configure.ac b/gas/configure.ac
index dc7fd1fd742..4c178eb0a53 100644
--- a/gas/configure.ac
+++ b/gas/configure.ac
@@ -617,7 +617,7 @@  changequote([,])dnl
         fi
         AC_MSG_RESULT($with_isa_spec)
 
-        # --with-priv-spec=[1.9|1.9.1|1.10|1.11].
+        # --with-priv-spec=[1.9|1.9.1|1.10|1.11|1.12].
         AC_MSG_CHECKING(for default configuration of --with-priv-spec)
         if test "x${with_priv_spec}" != x; then
           AC_DEFINE_UNQUOTED(DEFAULT_RISCV_PRIV_SPEC, "$with_priv_spec",
diff --git a/gas/po/fr.po b/gas/po/fr.po
index bb0931ca8af..beefd4c2745 100644
--- a/gas/po/fr.po
+++ b/gas/po/fr.po
@@ -15884,7 +15884,7 @@  msgid ""
 "  -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"
+"  -mpriv-spec=PRIVspec        set the RISC-V privilege spec (1.9, 1.9.1, 1.10, 1.11, 1.12)\n"
 "  -mabi=ABI                   set the RISC-V ABI\n"
 "  -mrelax                     enable relax (default)\n"
 "  -mno-relax                  disable relax\n"
@@ -15896,7 +15896,7 @@  msgstr ""
 "  -fno-pic                    ne pas générer du code indépendant de la position (défaut)\n"
 "  -march=ISA                  définir l'architecture RISC-V\n"
 "  -misa-spec=ISAspec          définir la spécification de l'ISA RISC-V (2.2, 20190608, 20191213)\n"
-"  -mpriv-spec=PRIVspec        définir la spécification de privilège RISC-V (1.9, 1.9.1, 1.10, 1.11)\n"
+"  -mpriv-spec=PRIVspec        définir la spécification de privilège RISC-V (1.9, 1.9.1, 1.10, 1.11, 1.12)\n"
 "  -mabi=ABI                   définir l'ABI RISC-V\n"
 "  -mrelax                     activer la relaxation (défaut)\n"
 "  -mno-relax                  désactiver la relaxation\n"
diff --git a/gas/po/ru.po b/gas/po/ru.po
index 3f4d4835a44..61f61f50259 100644
--- a/gas/po/ru.po
+++ b/gas/po/ru.po
@@ -15966,7 +15966,7 @@  msgid ""
 "  -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"
+"  -mpriv-spec=PRIVspec        set the RISC-V privilege spec (1.9, 1.9.1, 1.10, 1.11, 1.12)\n"
 "  -mabi=ABI                   set the RISC-V ABI\n"
 "  -mrelax                     enable relax (default)\n"
 "  -mno-relax                  disable relax\n"
@@ -15982,7 +15982,7 @@  msgstr ""
 "                 задать спецификацию ISA RISC-V (2.2, 20190608, 20191213)\n"
 "  -mpriv-spec=PRIVspec\n"
 "                 задать спецификацию привилегий RISC-V\n"
-"                 (1.9, 1.9.1, 1.10, 1.11)\n"
+"                 (1.9, 1.9.1, 1.10, 1.11, 1.12)\n"
 "  -mabi=ABI      задать RISC-V ABI\n"
 "  -mrelax        включить ослабление (по умолчанию)\n"
 "  -mno-relax     выключить ослабление\n"
diff --git a/gas/po/uk.po b/gas/po/uk.po
index 927602536e2..0765b51a3e8 100644
--- a/gas/po/uk.po
+++ b/gas/po/uk.po
@@ -15877,7 +15877,7 @@  msgid ""
 "  -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"
+"  -mpriv-spec=PRIVspec        set the RISC-V privilege spec (1.9, 1.9.1, 1.10, 1.11, 1.12)\n"
 "  -mabi=ABI                   set the RISC-V ABI\n"
 "  -mrelax                     enable relax (default)\n"
 "  -mno-relax                  disable relax\n"
@@ -15889,7 +15889,7 @@  msgstr ""
 "  -fno-pic                    не створювати позиційно незалежного коду (типово)\n"
 "  -march=ISA                  встановити архітектуру RISC-V\n"
 "  -misa-spec=ISAspec          встановити специфікацію ISA RISC-V (2.2, 20190608, 20191213)\n"
-"  -mpriv-spec=PRIVspec        встановити специфікацію прав доступу RISC-V (1.9, 1.9.1, 1.10, 1.11)\n"
+"  -mpriv-spec=PRIVspec        встановити специфікацію прав доступу RISC-V (1.9, 1.9.1, 1.10, 1.11, 1.12)\n"
 "  -mabi=ABI                   встановити ABI RISC-V\n"
 "  -mrelax                     увімкнути оптимізацію (типова поведінка)\n"
 "  -mno-relax                  вимкнути оптимізацію\n"