[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>
- [PATCH v2 00/11] target/cris: Convert to TranslatorOps, Richard Henderson, 2021/06/20
- [PATCH v2 01/11] target/cris: Add DisasContextBase to DisasContext, Richard Henderson, 2021/06/20
- [PATCH v2 03/11] target/cris: Mark exceptions as DISAS_NORETURN, Richard Henderson, 2021/06/20
- [PATCH v2 05/11] target/cris: Fix use_goto_tb, Richard Henderson, 2021/06/20
- [PATCH v2 02/11] target/cris: Replace DISAS_TB_JUMP with DISAS_NORETURN, Richard Henderson, 2021/06/20
- [PATCH v2 04/11] target/cris: Remove DISAS_SWI, Richard Henderson, 2021/06/20
- [PATCH v2 07/11] target/cris: Mark helper_raise_exception noreturn, Richard Henderson, 2021/06/20
- [PATCH v2 08/11] target/cris: Mark static arrays const, Richard Henderson, 2021/06/20
- Re: [PATCH v2 08/11] target/cris: Mark static arrays const,
Philippe Mathieu-Daudé <=
- [PATCH v2 09/11] target/cris: Move delayed branch handling to tb_stop, Richard Henderson, 2021/06/20
- [PATCH v2 06/11] target/cris: Convert to TranslatorOps, Richard Henderson, 2021/06/20
- [PATCH v2 10/11] target/cris: Use tcg_gen_lookup_and_goto_ptr, Richard Henderson, 2021/06/20
- [PATCH v2 11/11] target/cris: Improve JMP_INDIRECT, Richard Henderson, 2021/06/20