Only the ppc arch supports this kind of source file override logic.
All the others expose knobs via configure flags, and for some of
these, the ppc code does as well. For others, it doesn't make sense
to ever change them. Since it's unlikely anyone is using this, drop
it all to simplify the code (and to get us a little closer to the
common sim code).
COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(BUILD_CFLAGS)
LINK_FOR_BUILD = $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(LDFLAGS_FOR_BUILD) -o $@
-CONFIG_FILE = @sim_config@
IGEN_OPCODE_RULES = @sim_opcode@
IGEN_DECODE_MECHANISM = @sim_decode_mechanism@
IGEN_DUPLICATE = @sim_dup@
BASICS_H = \
basics.h \
$(CONFIG_H) \
- $(PPC_CONFIG_H) \
$(INLINE_H) \
$(SIM_CALLBACKS_H) \
$(DEBUG_H) \
PK_H = \
pk.h
-PPC_CONFIG_H = \
- ppc-config.h
-
SEMANTICS_H = \
semantics.h
BUILT_SRC = \
$(BUILT_SRC_WO_CONFIG) \
- config.h \
- ppc-config.h
+ config.h
LIB_INLINE_SRC = \
psim.c \
bits.o: bits.c $(BASICS_H)
debug.o: debug.c $(CONFIG_H) $(BASICS_H)
-filter_filename.o: filter_filename.c $(CONFIG_H) $(PPC_CONFIG_H) $(FILTER_FILENAME_H)
+filter_filename.o: filter_filename.c $(CONFIG_H) $(FILTER_FILENAME_H)
sim-endian.o: sim-endian.c $(CONFIG_H) $(BASICS_H) $(SIM_ENDIAN_N_H)
# Rules to create the built c source code files
#
-ppc-config.h: $(CONFIG_FILE)
- cp $(srcdir)/$(CONFIG_FILE) ppc-config.h
-
-
tmp-dgen: dgen ppc-spr-table $(srcdir)/../../move-if-change
$(DGEN) $(DGEN_FLAGS) \
-r $(srcdir)/ppc-spr-table \
filter_host.c: filter_filename.c
cat $(srcdir)/filter_filename.c > filter_host.c
-filter_host.o: filter_host.c $(CONFIG_H) $(PPC_CONFIG_H) $(FILTER_FILENAME_H)
+filter_host.o: filter_host.c $(CONFIG_H) $(FILTER_FILENAME_H)
$(COMPILE_FOR_BUILD) -c filter_host.c
table.o: table.c $(CONFIG_H) $(MISC_H) $(LF_H) $(TABLE_H)
rm -f TAGS Makefile config.cache config.status config.h defines.h stamp-h config.log
maintainer-clean: distclean
- rm -f *~ *.log ppc-config.h core *.core
+ rm -f *~ *.log core *.core
Makefile: Makefile.in config.status
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
/* Basic configuration */
-#include "ppc-config.h"
+#include "std-config.h"
#include "inline.h"
sim_dup
sim_switch
sim_opcode
-sim_config
sim_line_nr
EGREP
GREP
ac_user_opts='
enable_option_checking
enable_sim_bitsize
-enable_sim_config
enable_sim_decode_mechanism
enable_sim_default_model
enable_sim_duplicate
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-sim-bitsize=n Specify target bitsize (32 or 64).
- --enable-sim-config=file Override default config file
--enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
--enable-sim-default-model=which Specify default PowerPC to model.
--enable-sim-duplicate Expand (duplicate) semantic functions.
fi
-# Check whether --enable-sim-config was given.
-if test "${enable_sim_config+set}" = set; then :
- enableval=$enable_sim_config; case "${enableval}" in
- yes|no) as_fn_error $? "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
- *) if test -f "${srcdir}/${enableval}"; then
- sim_config="${enableval}";
- elif test -f "${srcdir}/${enableval}-config.h"; then
- sim_config="${enableval}-config.h"
- else
- as_fn_error $? "\"Config file $enableval was not found\"" "$LINENO" 5;
- sim_config=std-config.h
- fi;;
-esac
-if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
- echo "Setting config flags = $sim_config" 6>&1
-fi
-else
- sim_config="std-config.h"
-if test x"$silent" != x"yes"; then
- echo "Setting config flags = $sim_config" 6>&1
-fi
-fi
-
-
# Check whether --enable-sim-decode-mechanism was given.
if test "${enable_sim_decode_mechanism+set}" = set; then :
enableval=$enable_sim_decode_mechanism; case "${enableval}" in
-
ac_config_files="$ac_config_files Makefile"
fi],[sim_bitsize=""])dnl
-AC_ARG_ENABLE(sim-config,
-[ --enable-sim-config=file Override default config file],
-[case "${enableval}" in
- yes|no) AC_MSG_ERROR("No value supplied for --enable-sim-config=file");;
- *) if test -f "${srcdir}/${enableval}"; then
- sim_config="${enableval}";
- elif test -f "${srcdir}/${enableval}-config.h"; then
- sim_config="${enableval}-config.h"
- else
- AC_MSG_ERROR("Config file $enableval was not found");
- sim_config=std-config.h
- fi;;
-esac
-if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
- echo "Setting config flags = $sim_config" 6>&1
-fi],[sim_config="std-config.h"
-if test x"$silent" != x"yes"; then
- echo "Setting config flags = $sim_config" 6>&1
-fi])dnl
-
-
AC_ARG_ENABLE(sim-decode-mechanism,
[ --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.],
[case "${enableval}" in
fi
AC_SUBST(sim_line_nr)
-AC_SUBST(sim_config)
AC_SUBST(sim_opcode)
AC_SUBST(sim_switch)
AC_SUBST(sim_dup)
/* This must come before any other includes. */
#include "defs.h"
-#include "ppc-config.h"
+#include "std-config.h"
#include "inline.h"