From ba9666525f68ab75a7176bd02b7e8d0dc8c644b7 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 27 Jun 2021 01:26:30 -0400 Subject: sim: model: constify sim_machs storage The array of pointers is never modified, so mark it const so it ends up in the read-only data section. --- sim/bfin/ChangeLog | 4 ++++ sim/bfin/machs.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'sim/bfin') diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog index d84d44f..a26a35a 100644 --- a/sim/bfin/ChangeLog +++ b/sim/bfin/ChangeLog @@ -1,3 +1,7 @@ +2021-06-29 Mike Frysinger + + * machs.c (sim_machs): Mark const. + 2021-06-27 Mike Frysinger * Makefile.in: Change to $(SDL_CFLAGS) & $(SDL_LIBS). diff --git a/sim/bfin/machs.c b/sim/bfin/machs.c index e94af5d..ff49bb7 100644 --- a/sim/bfin/machs.c +++ b/sim/bfin/machs.c @@ -1962,7 +1962,7 @@ static const SIM_MACH bfin_mach = bfin_prepare_run }; -const SIM_MACH *sim_machs[] = +const SIM_MACH * const sim_machs[] = { & bfin_mach, NULL -- cgit v1.1