From 465fb143c87076b6416a8d0d5dd79bb016060fe3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 19 Feb 2015 03:46:01 -0500 Subject: sim: make nrun the default run program We want people to stop using the run.c frontend, but it's hard to notice when it's still set as the default. Lets flip things so nrun.c is the default, and users of run.c will get an error by default. We turn that error into a warning for existing sims so we don't break them -- this is mostly meant for people starting new ports. --- sim/cr16/ChangeLog | 6 ++++++ sim/cr16/Makefile.in | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'sim/cr16') diff --git a/sim/cr16/ChangeLog b/sim/cr16/ChangeLog index 9c78613..3a81178 100644 --- a/sim/cr16/ChangeLog +++ b/sim/cr16/ChangeLog @@ -1,5 +1,11 @@ 2015-03-14 Mike Frysinger + * Makefile.in (SIM_EXTRA_CFLAGS): Add + -DSIM_USE_DEPRECATED_RUN_FRONTEND. + (SIM_RUN_OBJS): Set to run.o. + +2015-03-14 Mike Frysinger + * configure.ac (AC_CHECK_HEADERS): Delete. * aclocal.m4, configure: Regenerate. diff --git a/sim/cr16/Makefile.in b/sim/cr16/Makefile.in index 6bdd61e..a5a612a 100644 --- a/sim/cr16/Makefile.in +++ b/sim/cr16/Makefile.in @@ -17,9 +17,13 @@ ## COMMON_PRE_CONFIG_FRAG +# Use the deprecated run frontend until we migrate to nrun.o +SIM_RUN_OBJS = run.o + SIM_OBJS = interp.o table.o simops.o endian.o sim-load.o SIM_EXTRA_CLEAN = clean-extra -SIM_EXTRA_CFLAGS = -DNEED_UI_LOOP_HOOK -DSIM_HAVE_ENVIRONMENT +SIM_EXTRA_CFLAGS = -DNEED_UI_LOOP_HOOK -DSIM_HAVE_ENVIRONMENT \ + -DSIM_USE_DEPRECATED_RUN_FRONTEND INCLUDE = cr16_sim.h $(srcroot)/include/gdb/callback.h targ-vals.h endian.c \ $(srcroot)/include/gdb/sim-cr16.h -- cgit v1.1