diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-04 23:48:48 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-04 23:49:35 -0500 |
commit | be3701ba8cb65ac54c2da1d0cd52aef89d1ea3ab (patch) | |
tree | c76543bd5b3dd938a4197ec9ff00daea2d31b65a /sim/rx/rx.c | |
parent | ab18008ed17e0b3ceb39c86562711b8834ed6178 (diff) | |
download | fsf-binutils-gdb-be3701ba8cb65ac54c2da1d0cd52aef89d1ea3ab.zip fsf-binutils-gdb-be3701ba8cb65ac54c2da1d0cd52aef89d1ea3ab.tar.gz fsf-binutils-gdb-be3701ba8cb65ac54c2da1d0cd52aef89d1ea3ab.tar.bz2 |
sim: rx: constify some read-only global vars
Diffstat (limited to 'sim/rx/rx.c')
-rw-r--r-- | sim/rx/rx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/rx/rx.c b/sim/rx/rx.c index 4a7291e..7502131 100644 --- a/sim/rx/rx.c +++ b/sim/rx/rx.c @@ -36,7 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "misc.h" #ifdef WITH_PROFILE -static const char * id_names[] = { +static const char * const id_names[] = { "RXO_unknown", "RXO_mov", /* d = s (signed) */ "RXO_movbi", /* d = [s,s2] (signed) */ @@ -142,7 +142,7 @@ static const char * id_names[] = { "RXO_sccnd", /* d = cond(s) ? 1 : 0 */ }; -static const char * optype_names[] = { +static const char * const optype_names[] = { " - ", "#Imm", /* #addend */ " Rn ", /* Rn */ @@ -332,7 +332,7 @@ div_cycles(long num, long den) #endif /* else CYCLE_ACCURATE */ -static int size2bytes[] = { +static const int size2bytes[] = { 4, 1, 1, 1, 2, 2, 2, 3, 4 }; |