+2021-06-29 Mike Frysinger <vapier@gentoo.org>
+
+ * machs.c (sim_machs): Mark const.
+
2021-06-27 Mike Frysinger <vapier@gentoo.org>
* Makefile.in: Change to $(SDL_CFLAGS) & $(SDL_LIBS).
bfin_prepare_run
};
-const SIM_MACH *sim_machs[] =
+const SIM_MACH * const sim_machs[] =
{
& bfin_mach,
NULL
+2021-06-29 Mike Frysinger <vapier@gentoo.org>
+
+ * arch.c (sim_machs): Mark const.
+
2021-06-28 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_WERROR_CFLAGS): Delete.
#include "sim-main.h"
#include "bfd.h"
-const SIM_MACH *sim_machs[] =
+const SIM_MACH * const sim_machs[] =
{
#ifdef HAVE_CPU_BPFBF
& bpf_mach,
+2021-06-29 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-model.c (model_option_handler): Make machp const.
+ (sim_model_lookup): Likewise.
+ (sim_mach_lookup): Likewise.
+ (sim_mach_lookup_bfd_name): Likewise.
+ (sim_machs): Add const.
+ * sim-model.h (sim_machs): Likewise.
+
2021-06-29 Mike Frysinger <vapier@gentoo.org>
* sim-io.h (sim_io_vprintf): Add ATTRIBUTE_PRINTF.
case OPTION_MODEL_INFO :
{
- const SIM_MACH **machp;
+ const SIM_MACH * const *machp;
const SIM_MODEL *model;
for (machp = & sim_machs[0]; *machp != NULL; ++machp)
{
const SIM_MODEL *
sim_model_lookup (const char *name)
{
- const SIM_MACH **machp;
+ const SIM_MACH * const *machp;
const SIM_MODEL *model;
for (machp = & sim_machs[0]; *machp != NULL; ++machp)
const SIM_MACH *
sim_mach_lookup (const char *name)
{
- const SIM_MACH **machp;
+ const SIM_MACH * const *machp;
for (machp = & sim_machs[0]; *machp != NULL; ++machp)
{
const SIM_MACH *
sim_mach_lookup_bfd_name (const char *name)
{
- const SIM_MACH **machp;
+ const SIM_MACH * const *machp;
for (machp = & sim_machs[0]; *machp != NULL; ++machp)
{
#if !WITH_MODEL_P
/* Set up basic model support. This is a stub for ports that do not define
models. See sim-model.h for more details. */
-const SIM_MACH *sim_machs[] =
+const SIM_MACH * const sim_machs[] =
{
NULL
};
/* ??? In a simulator of multiple architectures, will need multiple copies of
this. Have an `archs' array that contains a pointer to the machs array
for each (which in turn has a pointer to the models array for each). */
-extern const SIM_MACH *sim_machs[];
+extern const SIM_MACH * const sim_machs[];
/* Model module handlers. */
extern MODULE_INSTALL_FN sim_model_install;
+2021-06-29 Mike Frysinger <vapier@gentoo.org>
+
+ * arch.c (sim_machs): Mark const.
+
2021-06-28 Mike Frysinger <vapier@gentoo.org>
* cpuv10.c (crisv10f_record_trace_results): Delete function.
#include "sim-main.h"
#include "bfd.h"
-const SIM_MACH *sim_machs[] =
+const SIM_MACH * const sim_machs[] =
{
#ifdef HAVE_CPU_CRISV10F
& crisv10_mach,
+2021-06-29 Mike Frysinger <vapier@gentoo.org>
+
+ * arch.c (sim_machs): Mark const.
+
2021-06-28 Mike Frysinger <vapier@gentoo.org>
* cpu.c (frvbf_record_trace_results): Delete function.
#include "sim-main.h"
#include "bfd.h"
-const SIM_MACH *sim_machs[] =
+const SIM_MACH * const sim_machs[] =
{
#ifdef HAVE_CPU_FRVBF
& frv_mach,
+2021-06-29 Mike Frysinger <vapier@gentoo.org>
+
+ * arch.c (sim_machs): Mark const.
+
2021-06-28 Mike Frysinger <vapier@gentoo.org>
* cpu.c (iq2000bf_record_trace_results): Delete function.
#include "sim-main.h"
#include "bfd.h"
-const SIM_MACH *sim_machs[] =
+const SIM_MACH * const sim_machs[] =
{
#ifdef HAVE_CPU_IQ2000BF
& iq2000_mach,
+2021-06-29 Mike Frysinger <vapier@gentoo.org>
+
+ * arch.c (sim_machs): Mark const.
+
2021-06-28 Mike Frysinger <vapier@gentoo.org>
* cpu.c (lm32bf_record_trace_results): Delete function.
#include "sim-main.h"
#include "bfd.h"
-const SIM_MACH *sim_machs[] =
+const SIM_MACH * const sim_machs[] =
{
#ifdef HAVE_CPU_LM32BF
& lm32_mach,
+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.
#include "sim-main.h"
#include "bfd.h"
-const SIM_MACH *sim_machs[] =
+const SIM_MACH * const sim_machs[] =
{
#ifdef HAVE_CPU_M32RBF
& m32r_mach,
+2021-06-29 Mike Frysinger <vapier@gentoo.org>
+
+ * arch.c (sim_machs): Mark const.
+
2021-06-28 Mike Frysinger <vapier@gentoo.org>
* cpu.c (or1k32bf_record_trace_results): Delete function.
#include "sim-main.h"
#include "bfd.h"
-const SIM_MACH *sim_machs[] =
+const SIM_MACH * const sim_machs[] =
{
#ifdef HAVE_CPU_OR1K32BF
& or32_mach,
+2021-06-29 Mike Frysinger <vapier@gentoo.org>
+
+ * machs.c (sim_machs): Mark const.
+
2021-06-22 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
#endif
/* Order matters here. */
-const SIM_MACH *sim_machs[] =
+const SIM_MACH * const sim_machs[] =
{
#if WITH_TARGET_WORD_BITSIZE >= 128
&rv128i_mach,