diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2005-01-28 04:29:00 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2005-01-28 04:29:00 +0000 |
commit | f6bcefefe817b20b493081511cdeb8f87052bd41 (patch) | |
tree | 925f09bdedb36933c713803d9d0824c5b523c5ed /sim/cris/Makefile.in | |
parent | 97f669eda91b587c590bb5d0bb185d63c126d7fe (diff) | |
download | gdb-f6bcefefe817b20b493081511cdeb8f87052bd41.zip gdb-f6bcefefe817b20b493081511cdeb8f87052bd41.tar.gz gdb-f6bcefefe817b20b493081511cdeb8f87052bd41.tar.bz2 |
* cris: New directory, simulator for Axis Communications CRIS
including CRIS v32, CGEN-based.
* configure.ac: Add corresponding configury.
* configure: Regenerate.
Diffstat (limited to 'sim/cris/Makefile.in')
-rw-r--r-- | sim/cris/Makefile.in | 164 |
1 files changed, 164 insertions, 0 deletions
diff --git a/sim/cris/Makefile.in b/sim/cris/Makefile.in new file mode 100644 index 0000000..0e9af58 --- /dev/null +++ b/sim/cris/Makefile.in @@ -0,0 +1,164 @@ +# Makefile template for Configure for the CRIS simulator, based on a mix +# of the ones for m32r and i960. +# +# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# Contributed by Axis Communications. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +## COMMON_PRE_CONFIG_FRAG + +CRISV10F_OBJS = crisv10f.o cpuv10.o decodev10.o semcrisv10f-switch.o modelv10.o mloopv10f.o +CRISV32F_OBJS = crisv32f.o cpuv32.o decodev32.o semcrisv32f-switch.o modelv32.o mloopv32f.o + +CONFIG_DEVICES = dv-sockser.o +CONFIG_DEVICES = + +SIM_OBJS = \ + $(SIM_NEW_COMMON_OBJS) \ + sim-cpu.o \ + sim-hload.o \ + sim-hrw.o \ + sim-model.o \ + sim-reg.o \ + cgen-utils.o cgen-trace.o cgen-scache.o \ + cgen-run.o sim-reason.o sim-engine.o sim-stop.o \ + sim-if.o arch.o \ + $(CRISV10F_OBJS) \ + $(CRISV32F_OBJS) \ + traps.o devices.o \ + $(CONFIG_DEVICES) \ + cris-desc.o + +# Extra headers included by sim-main.h. +# FIXME: $(srccom)/cgen-ops.h should be in CGEN_INCLUDE_DEPS. +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. +NL_TARGET = -DNL_TARGET_cris + +## COMMON_POST_CONFIG_FRAG + +CGEN_CPU_DIR = $(CGENDIR)/../cpu + +arch = cris + +sim-if.o: sim-if.c $(SIM_MAIN_DEPS) $(sim-core_h) $(sim-options_h) + +arch.o: arch.c $(SIM_MAIN_DEPS) + +traps.o: traps.c targ-vals.h $(SIM_MAIN_DEPS) $(sim-options_h) +devices.o: devices.c $(SIM_MAIN_DEPS) + +# CRISV10 objs + +CRISV10F_INCLUDE_DEPS = \ + $(CGEN_MAIN_CPU_DEPS) \ + cpuv10.h decodev10.h engv10.h + +crisv10f.o: crisv10f.c cris-tmpl.c $(CRISV10F_INCLUDE_DEPS) + +# FIXME: What is mono and what does "Use of `mono' is wip" mean (other +# than the apparent; some "mono" feature is work in progress)? +mloopv10f.c engv10.h: stamp-v10fmloop +stamp-v10fmloop: $(srcdir)/../common/genmloop.sh mloop.in Makefile + $(SHELL) $(srccom)/genmloop.sh \ + -mono -no-fast -pbb -switch semcrisv10f-switch.c \ + -cpu crisv10f -infile $(srcdir)/mloop.in + $(SHELL) $(srcroot)/move-if-change eng.hin engv10.h + $(SHELL) $(srcroot)/move-if-change mloop.cin mloopv10f.c + touch stamp-v10fmloop +mloopv10f.o: mloopv10f.c semcrisv10f-switch.c $(CRISV10F_INCLUDE_DEPS) + +cpuv10.o: cpuv10.c $(CRISV10F_INCLUDE_DEPS) +decodev10.o: decodev10.c $(CRISV10F_INCLUDE_DEPS) +semcrisv10f-switch.o: semcrisv10f-switch.c $(CRISV10F_INCLUDE_DEPS) +modelv10.o: modelv10.c $(CRISV10F_INCLUDE_DEPS) + +# CRISV32 objs + +CRISV32F_INCLUDE_DEPS = \ + $(CGEN_MAIN_CPU_DEPS) \ + cpuv32.h decodev32.h engv32.h + +crisv32f.o: crisv32f.c cris-tmpl.c $(CRISV32F_INCLUDE_DEPS) + +# FIXME: What is mono and what does "Use of `mono' is wip" mean (other +# than the apparent; some "mono" feature is work in progress)? +mloopv32f.c engv32.h: stamp-v32fmloop +stamp-v32fmloop: $(srcdir)/../common/genmloop.sh mloop.in Makefile + $(SHELL) $(srccom)/genmloop.sh \ + -mono -no-fast -pbb -switch semcrisv32f-switch.c \ + -cpu crisv32f -infile $(srcdir)/mloop.in + $(SHELL) $(srcroot)/move-if-change eng.hin engv32.h + $(SHELL) $(srcroot)/move-if-change mloop.cin mloopv32f.c + touch stamp-v32fmloop +mloopv32f.o: mloopv32f.c semcrisv32f-switch.c $(CRISV32F_INCLUDE_DEPS) + +cpuv32.o: cpuv32.c $(CRISV32F_INCLUDE_DEPS) +decodev32.o: decodev32.c $(CRISV32F_INCLUDE_DEPS) +semcrisv32f-switch.o: semcrisv32f-switch.c $(CRISV32F_INCLUDE_DEPS) +modelv32.o: modelv32.c $(CRISV32F_INCLUDE_DEPS) + +cris-clean: + for v in 10 32; do \ + rm -f mloopv$${v}f.c engv$${v}.h stamp-v$${v}fmloop; \ + rm -f stamp-v$${v}fcpu; \ + done + -rm -f stamp-arch stamp-desc + -rm -f tmp-* + +# cgen support, enable with --enable-cgen-maint +CGEN_MAINT = ; @true +# The following line is commented in or out depending upon --enable-cgen-maint. +@CGEN_MAINT@CGEN_MAINT = + +# Useful when making CGEN-generated files manually, without --enable-cgen-maint. +stamps: stamp-v10fmloop stamp-v32fmloop stamp-arch stamp-v10fcpu stamp-v32fcpu stamp-desc + +stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(CGEN_CPU_DIR)/cris.cpu Makefile + $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=crisv10,crisv32 \ + archfile=$(CGEN_CPU_DIR)/cris.cpu \ + FLAGS="with-scache with-profile=fn" + touch stamp-arch +arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch + +stamp-v10fcpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CGEN_CPU_DIR)/cris.cpu Makefile + $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \ + archfile=$(CGEN_CPU_DIR)/cris.cpu \ + cpu=crisv10f mach=crisv10 SUFFIX=v10 FLAGS="with-scache with-profile=fn" EXTRAFILES="$(CGEN_CPU_SEMSW)" + $(SHELL) $(srcroot)/move-if-change $(srcdir)/semv10-switch.c $(srcdir)/semcrisv10f-switch.c + touch stamp-v10fcpu +cpuv10.h cpuv10.c semcrisv10f-switch.c modelv10.c decodev10.c decodev10.h: $(CGEN_MAINT) stamp-v10fcpu + +stamp-v32fcpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CGEN_CPU_DIR)/cris.cpu Makefile + $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \ + archfile=$(CGEN_CPU_DIR)/cris.cpu \ + cpu=crisv32f mach=crisv32 SUFFIX=v32 FLAGS="with-scache with-profile=fn" EXTRAFILES="$(CGEN_CPU_SEMSW)" + $(SHELL) $(srcroot)/move-if-change $(srcdir)/semv32-switch.c $(srcdir)/semcrisv32f-switch.c + touch stamp-v32fcpu +cpuv32.h cpuv32.c semcrisv32f-switch.c modelv32.c decodev32.c decodev32.h: $(CGEN_MAINT) stamp-v32fcpu + +stamp-desc: $(CGEN_READ_SCM) $(CGEN_DESC_SCM) $(CGEN_CPU_DIR)/cris.cpu Makefile + $(MAKE) cgen-desc $(CGEN_FLAGS_TO_PASS) \ + archfile=$(CGEN_CPU_DIR)/cris.cpu \ + cpu=cris mach=all + touch stamp-desc +cris-desc.c cris-desc.h cris-opc.h: $(CGEN_MAINT) stamp-desc |