target/cris: Mark static arrays const

Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2021-06-19 20:57:31 -07:00
parent 71fc4615c6
commit 5899ce683e
2 changed files with 13 additions and 12 deletions

View file

@ -21,7 +21,7 @@
#include "qemu/osdep.h"
#include "crisv10-decode.h"
static const char *regnames_v10[] =
static const char * const regnames_v10[] =
{
"$r0", "$r1", "$r2", "$r3",
"$r4", "$r5", "$r6", "$r7",
@ -29,7 +29,7 @@ static const char *regnames_v10[] =
"$r12", "$r13", "$sp", "$pc",
};
static const char *pregnames_v10[] =
static const char * const pregnames_v10[] =
{
"$bz", "$vr", "$p2", "$p3",
"$wz", "$ccr", "$p6-prefix", "$mof",
@ -38,7 +38,7 @@ static const char *pregnames_v10[] =
};
/* We need this table to handle preg-moves with implicit width. */
static int preg_sizes_v10[] = {
static const int preg_sizes_v10[] = {
1, /* bz. */
1, /* vr. */
1, /* pid. */