qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 08/11] target/cris: Mark static arrays const


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 08/11] target/cris: Mark static arrays const
Date: Mon, 21 Jun 2021 22:04:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1

On 6/20/21 11:32 PM, Richard Henderson wrote:
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>  target/cris/translate.c         | 19 ++++++++++---------
>  target/cris/translate_v10.c.inc |  6 +++---
>  2 files changed, 13 insertions(+), 12 deletions(-)

>  #if DISAS_CRIS
>  static const char *cc_name(int cc)
>  {
> -    static const char *cc_names[16] = {
> +    static const char * const cc_names[16] = {

char [2]?

>          "cc", "cs", "ne", "eq", "vc", "vs", "pl", "mi",
>          "ls", "hi", "ge", "lt", "gt", "le", "a", "p"
>      };

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]