mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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:
parent
71fc4615c6
commit
5899ce683e
2 changed files with 13 additions and 12 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue