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.
This commit is contained in:
Mike Frysinger
2015-02-19 03:46:01 -05:00
parent b9005ba76e
commit 465fb143c8
47 changed files with 157 additions and 37 deletions

View File

@@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Add
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete unistd.h.

View File

@@ -17,10 +17,14 @@
## COMMON_PRE_CONFIG_FRAG
SIM_EXTRA_CFLAGS = -DMODET -DNEED_UI_LOOP_HOOK -DSIM_TARGET_SWITCHES
SIM_EXTRA_CFLAGS = -DMODET -DNEED_UI_LOOP_HOOK -DSIM_TARGET_SWITCHES \
-DSIM_USE_DEPRECATED_RUN_FRONTEND
COPRO=@COPRO@
# Use the deprecated run frontend until we migrate to nrun.o
SIM_RUN_OBJS = run.o
SIM_OBJS = armemu26.o armemu32.o arminit.o armos.o armsupp.o \
armvirt.o bag.o thumbemu.o wrapper.o sim-load.o $(COPRO)

View File

@@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Set to
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
2015-02-19 Mike Frysinger <vapier@gentoo.org>
* interp.c (sim_kill): Delete unused func.

View File

@@ -16,6 +16,11 @@
## COMMON_PRE_CONFIG_FRAG
SIM_EXTRA_CFLAGS = -DSIM_USE_DEPRECATED_RUN_FRONTEND
# Use the deprecated run frontend until we migrate to nrun.o
SIM_RUN_OBJS = run.o
SIM_OBJS = interp.o sim-load.o
SIM_EXTRA_LIBS = -lm

View File

@@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-03-10 Mike Frysinger <vapier@gentoo.org>
PR sim/13160

View File

@@ -20,9 +20,6 @@ NL_TARGET = -DNL_TARGET_bfin
## COMMON_PRE_CONFIG_FRAG
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
SIM_OBJS = \
$(SIM_NEW_COMMON_OBJS) \
bfin-sim.o \

View File

@@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_RUN_OBJS): Change to nrun.o.
* run.c [SIM_USE_DEPRECATED_RUN_FRONTEND]: Issue a warning.
[!SIM_USE_DEPRECATED_RUN_FRONTEND]: Throw an error.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* sim-assert.h [!SIM_ASSERT, WITH_ASSERT]: Include sim-io.h.

View File

@@ -139,7 +139,7 @@ SIM_EXTRA_LIBS =
# List of extra program dependencies.
SIM_EXTRA_LIBDEPS =
# List of main object files for `run'.
SIM_RUN_OBJS = run.o
SIM_RUN_OBJS = nrun.o
# Dependency of `all' to build any extra files.
SIM_EXTRA_ALL =
# Dependency of `install' to install any extra files.

View File

@@ -50,6 +50,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "run-sim.h"
#include "version.h"
#ifdef SIM_USE_DEPRECATED_RUN_FRONTEND
# warning "This sim is using the deprecated run.c; please migrate to nrun.c."
#else
# error "Please do not create new sim ports using run.c; use nrun.c instead." \
"New submissions using run.c will not be accepted."
#endif
static void usage (int help);
static void print_version (void);
extern int optind;

View File

@@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Add
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

View File

@@ -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

View File

@@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2014-12-03 Joel Brobecker <brobecker@adacore.com>
* traps.c (cris_break_13_handler): Adjust call to "fstat" callback

View File

@@ -45,7 +45,6 @@ SIM_EXTRA_DEPS = \
$(CGEN_INCLUDE_DEPS) $(srccom)/cgen-ops.h \
arch.h cpuall.h cris-sim.h cris-desc.h
SIM_RUN_OBJS = nrun.o
SIM_EXTRA_CLEAN = cris-clean
# This selects the cris newlib/libgloss syscall definitions.

View File

@@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Add
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

View File

@@ -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 = d10v_sim.h $(srcroot)/include/gdb/callback.h targ-vals.h endian.c \
$(srcroot)/include/gdb/sim-d10v.h

View File

@@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Set to sis.o.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

View File

@@ -22,6 +22,7 @@ TERMCAP_LIB = @TERMCAP@
READLINE_LIB = @READLINE@
SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o
SIM_RUN_OBJS = sis.o
SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm
SIM_EXTRA_ALL = sis
SIM_EXTRA_INSTALL = install-sis

View File

@@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2014-08-23 Hans-Peter Nilsson <hp@axis.com>
* configure.ac: Default simulator hardware to off again. Remove

View File

@@ -43,7 +43,6 @@ SIM_EXTRA_DEPS = \
SIM_EXTRA_CFLAGS = @sim_trapdump@
SIM_RUN_OBJS = nrun.o
SIM_EXTRA_CLEAN = frv-clean
# This selects the frv newlib/libgloss syscall definitions.

View File

@@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete stdlib.h & time.h.

View File

@@ -17,9 +17,6 @@
## COMMON_PRE_CONFIG_FRAG
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
SIM_OBJS = compile.o \
$(SIM_NEW_COMMON_OBJS) \
sim-cpu.o \

View File

@@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2014-08-23 Hans-Peter Nilsson <hp@axis.com>
* configure.ac: Default simulator hardware to off again

View File

@@ -44,7 +44,6 @@ SIM_EXTRA_CFLAGS =
ALL_CPU_CFLAGS = -DHAVE_CPU_IQ2000BF -DHAVE_CPU_IQ10BF
SIM_RUN_OBJS = nrun.o
SIM_EXTRA_CLEAN = iq2000-clean
## COMMON_POST_CONFIG_FRAG

View File

@@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2014-08-19 Alan Modra <amodra@gmail.com>
* configure: Regenerate.

View File

@@ -25,9 +25,6 @@ SIM_EXTRA_DEPS = $(CGEN_INCLUDE_DEPS) $(srcdir)/../../opcodes/lm32-desc.h
# List of flags to always pass to $(CC).
#SIM_EXTRA_CFLAGS =
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
SIM_EXTRA_CLEAN = lm32-clean
# This selects the lm32 newlib/libgloss syscall definitions.

View File

@@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2014-08-23 Hans-Peter Nilsson <hp@axis.com>
* configure.ac: Default simulator hardware to off again. Remove

View File

@@ -47,7 +47,6 @@ SIM_EXTRA_DEPS = \
SIM_EXTRA_CFLAGS = @sim_extra_cflags@
SIM_RUN_OBJS = nrun.o
SIM_EXTRA_CLEAN = m32r-clean
# This selects the m32r newlib/libgloss syscall definitions.

View File

@@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

View File

@@ -20,9 +20,6 @@
M68HC11_OBJS = interp.o m68hc11int.o m68hc12int.o \
emulos.o interrupts.o m68hc11_sim.o
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
SIM_OBJS = $(M68HC11_OBJS) \
$(SIM_NEW_COMMON_OBJS) \
sim-load.o \

View File

@@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Set to
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

View File

@@ -17,6 +17,10 @@
## COMMON_PRE_CONFIG_FRAG
# Use the deprecated run frontend until we migrate to nrun.o
SIM_RUN_OBJS = run.o
SIM_EXTRA_CFLAGS = -DSIM_USE_DEPRECATED_RUN_FRONTEND
SIM_OBJS = interp.o sim-load.o
SIM_EXTRA_LIBS = -lm
SIM_EXTRA_CLEAN = mcore-clean

View File

@@ -1,3 +1,11 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Set to
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
(SIM_EXTRA_CLEAN): Delete.
(interp.o, microblaze-clean): Delete rules.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

View File

@@ -17,12 +17,11 @@
## COMMON_PRE_CONFIG_FRAG
# Use the deprecated run frontend until we migrate to nrun.o
SIM_RUN_OBJS = run.o
SIM_EXTRA_CFLAGS = -DSIM_USE_DEPRECATED_RUN_FRONTEND
SIM_OBJS = interp.o sim-load.o
SIM_EXTRA_LIBS = -lm
SIM_EXTRA_CLEAN = microblaze-clean
## COMMON_POST_CONFIG_FRAG
interp.o: interp.c
microblaze-clean:

View File

@@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

View File

@@ -67,10 +67,6 @@ SIM_EXTRA_ALL = $(SIM_@sim_gen@_ALL)
SIM_EXTRA_LIBS = $(MIPS_EXTRA_LIBS)
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
## COMMON_POST_CONFIG_FRAG

View File

@@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete unistd.h & stdlib.h &

View File

@@ -31,9 +31,6 @@ MN10300_OBJS = \
SIM_OBJS = $(MN10300_OBJS) interp.o
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
SIM_EXTRA_CLEAN = clean-igen
# Extra dependencies for "sim-main.h"
SIM_EXTRA_DEPS = mn10300_sim.h itable.h idecode.h

View File

@@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Set to
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

View File

@@ -19,6 +19,10 @@
dtbdir = @datadir@/gdb/dtb
# Use the deprecated run frontend until we migrate to nrun.o
SIM_RUN_OBJS = run.o
SIM_EXTRA_CFLAGS = -DSIM_USE_DEPRECATED_RUN_FRONTEND
SIM_OBJS = interp.o sim-load.o sim-io.o sim-config.o sim-utils.o \
sim-options.o sim-module.o sim-core.o sim-endian.o sim-trace.o \
sim-engine.o sim-fpu.o sim-bits.o sim-profile.o sim-events.o \

View File

@@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-02-24 Nick Clifton <nickc@redhat.com>
* msp430-sim.c (sim_open): Allocate memory regions matching those

View File

@@ -47,8 +47,6 @@ SIM_EXTRA_CFLAGS =
SIM_EXTRA_LIBS =
# List of extra program dependencies.
SIM_EXTRA_LIBDEPS =
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
# Dependency of `all' to build any extra files.
SIM_EXTRA_ALL =
# Dependency of `install' to install any extra files.

View File

@@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Set to
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

View File

@@ -17,6 +17,10 @@
## COMMON_PRE_CONFIG_FRAG
# Use the deprecated run frontend until we migrate to nrun.o
SIM_RUN_OBJS = run.o
SIM_EXTRA_CFLAGS = -DSIM_USE_DEPRECATED_RUN_FRONTEND
SIM_OBJS = interp.o table.o sim-load.o
SIM_EXTRA_LIBS = -lm
SIM_EXTRA_CLEAN = sh-clean

View File

@@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2014-08-23 Hans-Peter Nilsson <hp@axis.com>
* configure.ac: Default simulator hardware to off again

View File

@@ -44,7 +44,6 @@ SIM_EXTRA_DEPS = \
SIM_EXTRA_CFLAGS =
SIM_RUN_OBJS = nrun.o
SIM_EXTRA_CLEAN = sh64-clean
## COMMON_POST_CONFIG_FRAG

View File

@@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete unistd.h & stdlib.h &

View File

@@ -30,8 +30,6 @@ SIM_OBJS = \
sim-reason.o \
sim-stop.o
SIM_RUN_OBJS = nrun.o
# List of extra dependencies.
# Generally this consists of simulator specific files included by sim-main.h.
SIM_EXTRA_DEPS = v850_sim.h sim-main.h simops.h itable.h