OSDN Git Service

* gen-all-sid: New file.
authordevans <devans>
Sat, 7 Jun 2003 18:22:02 +0000 (18:22 +0000)
committerdevans <devans>
Sat, 7 Jun 2003 18:22:02 +0000 (18:22 +0000)
* gen-all-opcodes: New file.

cgen/ChangeLog
cgen/gen-all-opcodes [new file with mode: 0755]
cgen/gen-all-sid [new file with mode: 0755]

index ac51387..b9b7b5d 100644 (file)
@@ -1,3 +1,8 @@
+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
diff --git a/cgen/gen-all-opcodes b/cgen/gen-all-opcodes
new file mode 100755 (executable)
index 0000000..2d4402d
--- /dev/null
@@ -0,0 +1,28 @@
+#! /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
diff --git a/cgen/gen-all-sid b/cgen/gen-all-sid
new file mode 100755 (executable)
index 0000000..e3c77e2
--- /dev/null
@@ -0,0 +1,43 @@
+#! /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