aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/configure.in
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-02-14 19:06:08 +0000
committerAndrew Cagney <cagney@redhat.com>1997-02-14 19:06:08 +0000
commitcdd3120398a10c629c3eec4d9159390819e688c1 (patch)
tree882f922776a52c93e26dbd2c69a990859069628c /sim/ppc/configure.in
parent1d339e4849ecadf635ab53a41a390eb513f117ae (diff)
downloadgdb-cdd3120398a10c629c3eec4d9159390819e688c1.zip
gdb-cdd3120398a10c629c3eec4d9159390819e688c1.tar.gz
gdb-cdd3120398a10c629c3eec4d9159390819e688c1.tar.bz2
PR 11678 - rename long decode-rule files to shorter ones, eliminate
need for multiple almost identical decode-rule files
Diffstat (limited to 'sim/ppc/configure.in')
-rw-r--r--sim/ppc/configure.in25
1 files changed, 21 insertions, 4 deletions
diff --git a/sim/ppc/configure.in b/sim/ppc/configure.in
index 0a033c3..04fafc3 100644
--- a/sim/ppc/configure.in
+++ b/sim/ppc/configure.in
@@ -95,6 +95,22 @@ if test x"$silent" != x"yes"; then
fi])dnl
+AC_ARG_ENABLE(sim-decode-mechanism,
+[ --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.],
+[case "${enableval}" in
+ yes|no) AC_MSG_ERROR("No value supplied for --enable-sim-decode-mechanism=file");;
+ array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
+ *) AC_MSG_ERROR("File $enableval is not an opcode rules file");
+ sim_decode_mechanism="switch";;
+esac
+if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
+ echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
+fi],[sim_decode_mechanism=""
+if test x"$silent" != x"yes"; then
+ echo "Setting decode mechanism flags = $sim_decode_mechanism"
+fi])dnl
+
+
AC_ARG_ENABLE(sim-default-model,
[ --enable-sim-default-model=which Specify default PowerPC to model.],
[case "${enableval}" in
@@ -368,16 +384,16 @@ AC_ARG_ENABLE(sim-opcode,
yes|no) AC_MSG_ERROR("No value supplied for --enable-sim-opcode=file");;
*) if test -f "${srcdir}/${enableval}"; then
sim_opcode="${enableval}"
- elif test -f "${srcdir}/ppc-opcode-${enableval}"; then
- sim_opcode="ppc-opcode-${enableval}"
+ elif test -f "${srcdir}/dc-${enableval}"; then
+ sim_opcode="dc-${enableval}"
else
AC_MSG_ERROR("File $enableval is not an opcode rules file");
- sim_opcode="ppc-opcode-complex"
+ sim_opcode="dc-complex"
fi;;
esac
if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
echo "Setting opcode flags = $sim_opcode" 6>&1
-fi],[sim_opcode="ppc-opcode-complex"
+fi],[sim_opcode="dc-complex"
if test x"$silent" != x"yes"; then
echo "Setting opcode flags = $sim_opcode"
fi])dnl
@@ -681,6 +697,7 @@ AC_SUBST(sim_config)
AC_SUBST(sim_opcode)
AC_SUBST(sim_switch)
AC_SUBST(sim_dup)
+AC_SUBST(sim_decode_mechanism)
AC_SUBST(sim_jump)
AC_SUBST(sim_filter)
AC_SUBST(sim_icache)