Browse Source

sim: ppc: drop support for std-config.h overrides

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).
users/ARM/efi-aarch64-support-binutils
Mike Frysinger 5 years ago
parent
commit
b728479074
  1. 18
      sim/ppc/Makefile.in
  2. 2
      sim/ppc/basics.h
  3. 28
      sim/ppc/configure
  4. 22
      sim/ppc/configure.ac
  5. 2
      sim/ppc/inline.c

18
sim/ppc/Makefile.in

@ -95,7 +95,6 @@ LIBS = $(COMMON_LIBS) @LIBS@ $(LIBGNU) $(LIBGNU_EXTRA_LIBS)
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@
@ -168,7 +167,6 @@ ALTIVEC_REGISTERS_H = \
BASICS_H = \
basics.h \
$(CONFIG_H) \
$(PPC_CONFIG_H) \
$(INLINE_H) \
$(SIM_CALLBACKS_H) \
$(DEBUG_H) \
@ -401,9 +399,6 @@ MODEL_H = \
PK_H = \
pk.h
PPC_CONFIG_H = \
ppc-config.h
SEMANTICS_H = \
semantics.h
@ -437,8 +432,7 @@ BUILT_SRC_WO_CONFIG = \
BUILT_SRC = \
$(BUILT_SRC_WO_CONFIG) \
config.h \
ppc-config.h
config.h
LIB_INLINE_SRC = \
psim.c \
@ -541,7 +535,7 @@ psim.o: psim.c $(CPU_H) $(IDECODE_H) $(OPTIONS_H) $(TREE_H) $(BFD_H)
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)
@ -646,10 +640,6 @@ tmp-defines: config.h Makefile
# 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 \
@ -705,7 +695,7 @@ igen: igen.o table.o lf.o misc.o filter_host.o ld-decode.o ld-cache.o filter.o l
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)
@ -856,7 +846,7 @@ distclean realclean: clean
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

2
sim/ppc/basics.h

@ -71,7 +71,7 @@ typedef enum {
/* Basic configuration */
#include "ppc-config.h"
#include "std-config.h"
#include "inline.h"

28
sim/ppc/configure

@ -649,7 +649,6 @@ sim_decode_mechanism
sim_dup
sim_switch
sim_opcode
sim_config
sim_line_nr
EGREP
GREP
@ -706,7 +705,6 @@ ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_sim_bitsize
enable_sim_config
enable_sim_decode_mechanism
enable_sim_default_model
enable_sim_duplicate
@ -1344,7 +1342,6 @@ Optional Features:
--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.
@ -2936,30 +2933,6 @@ else
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
@ -4238,7 +4211,6 @@ fi
ac_config_files="$ac_config_files Makefile"

22
sim/ppc/configure.ac

@ -16,27 +16,6 @@ if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
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
@ -621,7 +600,6 @@ else
fi
AC_SUBST(sim_line_nr)
AC_SUBST(sim_config)
AC_SUBST(sim_opcode)
AC_SUBST(sim_switch)
AC_SUBST(sim_dup)

2
sim/ppc/inline.c

@ -24,7 +24,7 @@
/* This must come before any other includes. */
#include "defs.h"
#include "ppc-config.h"
#include "std-config.h"
#include "inline.h"

Loading…
Cancel
Save