mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
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.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
2021-06-29 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* arch.c (sim_machs): Mark const.
|
||||
|
||||
2021-06-28 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* cpu.c (m32rbf_record_trace_results): Delete function.
|
||||
|
@ -24,7 +24,7 @@ This file is part of the GNU simulators.
|
||||
#include "sim-main.h"
|
||||
#include "bfd.h"
|
||||
|
||||
const SIM_MACH *sim_machs[] =
|
||||
const SIM_MACH * const sim_machs[] =
|
||||
{
|
||||
#ifdef HAVE_CPU_M32RBF
|
||||
& m32r_mach,
|
||||
|
Reference in New Issue
Block a user