diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-04-22 17:46:07 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-04-22 17:46:07 +0000 |
commit | 15c1649391b66df7e721377daa248721ab3e58eb (patch) | |
tree | cbc9fca2a3287bf2882499101225fd5213f44ad4 /sim/.Sanitize | |
parent | 81f464815db9a9fc4209c7eb6eb7ea341b78b76e (diff) | |
download | fsf-binutils-gdb-15c1649391b66df7e721377daa248721ab3e58eb.zip fsf-binutils-gdb-15c1649391b66df7e721377daa248721ab3e58eb.tar.gz fsf-binutils-gdb-15c1649391b66df7e721377daa248721ab3e58eb.tar.bz2 |
TIc80 simulator checkpoint - runs 3 instructions - trap, addu, br.a.
Diffstat (limited to 'sim/.Sanitize')
-rw-r--r-- | sim/.Sanitize | 85 |
1 files changed, 60 insertions, 25 deletions
diff --git a/sim/.Sanitize b/sim/.Sanitize index f9fabad..5780d7b 100644 --- a/sim/.Sanitize +++ b/sim/.Sanitize @@ -15,13 +15,6 @@ Do-first: -v850_files="v850" -if ( echo $* | grep keep\-v850 > /dev/null ) ; then - keep_these_too="${v850_files} ${keep_these_too}" -else - lose_these_too="${v850_files} ${lose_these_too}" -fi - d30v_files="d30v igen testsuite" if ( echo $* | grep keep\-d30v > /dev/null ) ; then keep_these_too="${d30v_files} ${keep_these_too}" @@ -29,6 +22,20 @@ else lose_these_too="${d30v_files} ${lose_these_too}" fi +tic80_files="tic80 igen" +if ( echo $* | grep keep\-tic80 > /dev/null ) ; then + keep_these_too="${tic80_files} ${keep_these_too}" +else + lose_these_too="${tic80_files} ${lose_these_too}" +fi + +v850_files="v850" +if ( echo $* | grep keep\-v850 > /dev/null ) ; then + keep_these_too="${v850_files} ${keep_these_too}" +else + lose_these_too="${v850_files} ${lose_these_too}" +fi + # All files listed between the "Things-to-keep:" line and the # "Files-to-sed:" line will be kept. All other files will be removed. # Directories listed in this section will have their own Sanitize @@ -62,23 +69,23 @@ Things-to-lose: Do-last: -v850_files="configure configure.in ChangeLog" -if ( echo $* | grep keep\-v850 > /dev/null ) ; then - for i in $v850_files ; do - if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then +d30v_files="configure configure.in ChangeLog" +if ( echo $* | grep keep\-d30v > /dev/null ) ; then + for i in $d30v_files ; do + if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Keeping v850 stuff in $i + echo Keeping d30v stuff in $i fi fi done else - for i in $v850_files ; do - if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then + for i in $d30v_files ; do + if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Removing traces of \"v850\" from $i... + echo Removing traces of \"d30v\" from $i... fi cp $i new - sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new + sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover... @@ -90,23 +97,51 @@ else done fi -d30v_files="configure configure.in ChangeLog" -if ( echo $* | grep keep\-d30v > /dev/null ) ; then - for i in $d30v_files ; do - if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then +tic80_files="configure configure.in ChangeLog" +if ( echo $* | grep keep\-tic80 > /dev/null ) ; then + for i in $tic80_files ; do + if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Keeping d30v stuff in $i + echo Keeping tic80 stuff in $i fi fi done else - for i in $d30v_files ; do - if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then + for i in $tic80_files ; do + if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Removing traces of \"d30v\" from $i... + echo Removing traces of \"tic80\" from $i... fi cp $i new - sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new + sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/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 + +v850_files="configure configure.in ChangeLog" +if ( echo $* | grep keep\-v850 > /dev/null ) ; then + for i in $v850_files ; do + if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping v850 stuff in $i + fi + fi + done +else + for i in $v850_files ; do + if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"v850\" from $i... + fi + cp $i new + sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover... |