aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/.Sanitize
diff options
context:
space:
mode:
Diffstat (limited to 'sim/mips/.Sanitize')
-rw-r--r--sim/mips/.Sanitize37
1 files changed, 37 insertions, 0 deletions
diff --git a/sim/mips/.Sanitize b/sim/mips/.Sanitize
index 46f01be..135288d 100644
--- a/sim/mips/.Sanitize
+++ b/sim/mips/.Sanitize
@@ -31,6 +31,13 @@ else
lose_these_too="${vr4320_files} ${lose_these_too}"
fi
+tx3904_files="dv-tx3904cpu.c dv-tx3904irc.c"
+if ( echo $* | grep keep\-tx3904 > /dev/null ) ; then
+ keep_these_too="${tx3904_files} ${keep_these_too}"
+else
+ lose_these_too="${tx3904_files} ${lose_these_too}"
+fi
+
sky_files="ChangeLog.sky sky-device.c sky-device.h sky-dma.c sky-dma.h sky-bits.h"
sky_files="$sky_files sky-engine.c sky-gpuif.c sky-gpuif.h"
sky_files="$sky_files sky-gs.c sky-gs.h"
@@ -264,6 +271,36 @@ else
fi
+tx3904_files="ChangeLog configure configure.in interp.c"
+
+if ( echo $* | grep keep\-tx3904 > /dev/null ) ; then
+ for i in $tx3904_files ; do
+ if test ! -d $i && (grep sanitize-tx3904 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping tx3904 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-tx3904 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"tx3904\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-tx3904/,/end-\sanitize\-tx3904/d' < $i > new
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ if [ -n "${verbose}" ] ; then
+ echo Caching $i in .Recover...
+ fi
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+fi
+
+
never_files="ChangeLog configure configure.in interp.c gencode.c mips.igen mips.dc"