* gen-all-opcodes: New file.
+2003-06-07 Doug Evans <dje@sebabeach.org>
+
+ * gen-all-sid: New file.
+ * gen-all-opcodes: New file.
+
2003-06-05 Nick Clifton <nickc@redhat.com>
* cpu/frv.cpu (FRintieven): New operand. An even-numbered only
--- /dev/null
+#! /bin/sh
+# Utility script to generate the opcodes files.
+# This is useful for verifying changes to the generated files.
+#
+# Run this script in the src/cgen directory.
+
+# Exit on any error.
+set -e
+
+# For debugging.
+set -x
+
+if [ ! -f sim.scm ]
+then
+ echo "Not in the src/cgen directory." >& 2
+ exit 1
+fi
+
+export cgendir=`pwd`
+
+rm -rf /tmp/tmp-opcodes
+mkdir /tmp/tmp-opcodes
+
+cd /tmp/tmp-opcodes
+$cgendir/../opcodes/configure --prefix /tmp/junk --target m32r-elf --enable-targets=all
+make run-cgen-all
+
+rm -rf /tmp/tmp-opcodes
--- /dev/null
+#! /bin/sh
+# Utility script to generate the generated sid files.
+# This is useful for verifying changes to the generated files.
+#
+# Run this script in the src/cgen directory.
+#
+# Usage: gen-all-sid /path/to/sid/src
+
+# Exit on any error.
+set -e
+
+# For debugging.
+set -x
+
+if [ ! -f sim.scm ]
+then
+ echo "Not in the src/cgen directory." >& 2
+ exit 1
+fi
+
+if [ $# != 1 ]
+then
+ echo "Usage: gen-all-sid /path/to/sid/src" >& 2
+ exit 1
+fi
+
+siddir=$1
+if [ ! -f $siddir/sid/COPYING.SID ]
+then
+ echo "unable to find sid sources in $siddir" >& 2
+ exit 1
+fi
+
+rm -rf /tmp/tmp-sid
+mkdir /tmp/tmp-sid
+
+cd /tmp/tmp-sid
+$siddir/configure --prefix /tmp/junk --enable-ltdl-install
+make configure-sid
+cd sid/component/cgen-cpu
+make cgen-all
+
+rm -rf /tmp/tmp-sid