--- /dev/null
+# Simulator default dejagnu configuration file.
+
+load_lib sim-defs.exp
+
+global AS
+if ![info exists AS] {
+    set AS [findfile $base_dir/../../gas/as-new $base_dir/../../gas/as-new \
+                    [transform as]]
+}
+
+global ASFLAGS
+if ![info exists ASFLAGS] {
+    set ASFLAGS ""
+}
+
+global CC
+if ![info exists CC] {
+    set CC [findfile $base_dir/../../gcc/xgcc $base_dir/../../gcc/xgcc \
+                    [transform gcc]]
+}
+
+global CFLAGS
+if ![info exists CFLAGS] {
+    set CFLAGS ""
+}
+
+global LD
+if ![info exists LD] {
+    set LD [findfile $base_dir/../../ld/ld-new $base_dir/../../ld/ld-new \
+                    [transform ld]]
+}
+
+global LDFLAGS
+if ![info exists LDFLAGS] {
+    set LDFLAGS ""
+}
+
+global SIM
+if ![info exists SIM] {
+    set SIM [findfile $base_dir/../$arch/run $base_dir/../$arch/run \
+                     [transform run]]
+}
+
+global SIMFLAGS
+if ![info exists SIMFLAGS] {
+    set SIMFLAGS ""
+}
+
+sim_init
 
 # add any extra subdirectories
 case $target in
   # start-sanitize-sky
-  mips64r5900-sky-elf) configdirs="${configdirs} sky" ;;
+  mips64r5900-sky-elf) configdirs="${configdirs}" ;;
   # end-sanitize-sky
   *) ;;
 esac
 
 # called.  Directories not listed will be removed in their entirety
 # with rm -rf.
 
+sky_files="sky"
+if ( echo $* | grep keep\-sky > /dev/null ) ; then
+        keep_these_too="${sky_files} ${keep_these_too}"
+else
+        lose_these_too="${sky_files} ${lose_these_too}"
+fi
+
 Things-to-keep:
 
 m32r
 
 
 .run.ok:
        rm -f tmp-$* $*.hi
-       ulimit -t $(ULIMIT) ; $(RUN_FOR_TARGET) $< > tmp-$*
+       ulimit -t $(ULIMIT) ; $(RUN_FOR_TARGET) $< > tmp-$* 2>/dev/null
        mv tmp-$* $*.ok
 .run.ko:
        rm -f tmp-$* $*.ko
        set +e ; \
-       ulimit -t $(ULIMIT) ; $(RUN_FOR_TARGET) $< > tmp-$* ; \
+       ulimit -t $(ULIMIT) ; $(RUN_FOR_TARGET) $< > tmp-$* 2>/dev/null ; \
        if [ $$? -ne 0 ] ; then \
          exit 0 ; \
        else \
        -env VIF1_TRACE_FILE=$@ $(RUN_FOR_TARGET) $<
 .run.vuout:
        rm -f $@
-       -env SKY_DEBUG=inst_trace $(RUN_FOR_TARGET) $< > $@
+       -env SKY_DEBUG=inst_trace $(RUN_FOR_TARGET) $< > $@ 2>/dev/null
 .s.run:
        rm -f $@
        $(AS_FOR_TARGET) -mcpu=r5900 -o $@ $<