From e2f1bc59a0eafa88d89d84f15f0242f324172528 Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 7 Apr 1988 13:14:27 +0000 Subject: [PATCH] adapted so that interpreter traps on floating point instructions --- mach/mantra/int/Makefile | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/mach/mantra/int/Makefile b/mach/mantra/int/Makefile index 58f8c7caa..4fce8b3da 100644 --- a/mach/mantra/int/Makefile +++ b/mach/mantra/int/Makefile @@ -4,6 +4,7 @@ P = mloop FILES=deffile $P0 $P1 $P2 $P3 $P4 $P5 $P6 $P7 $P8 $P9 $Pa $Pb $Pc CPP=../../../lib/cpp b=../../../lib/int +FLTRAP=-DFLTRAP all: $(INTS) em @@ -11,58 +12,59 @@ em: em.c $(CC) -o em -I../../../h em.c em2_t---: $(FILES) compile - cat $(FILES) | $(CPP) -P -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=0 >tmp.s + cat $(FILES) | $(CPP) -P $(FLTRAP) -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=0 >tmp.s ./compile -o em2_t--- tmp.s rm -f tmp.s em2_----: $(FILES) compile - cat $(FILES) | $(CPP) -P -Dopfreq=0 -Dlast=0 -Dcount=0 -Dtest=0 -Dflow=0 -Dprof=0 >tmp.s + cat $(FILES) | $(CPP) -P $(FLTRAP) -Dopfreq=0 -Dlast=0 -Dcount=0 -Dtest=0 -Dflow=0 -Dprof=0 >tmp.s ./compile -o em2_---- tmp.s rm -f tmp.s em2_t-cp: $(FILES) compile - cat $(FILES) | $(CPP) -P -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=1 >tmp.s + cat $(FILES) | $(CPP) -P $(FLTRAP) -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=1 >tmp.s ./compile -o em2_t-cp tmp.s rm -f tmp.s em2_t-c-: $(FILES) compile - cat $(FILES) | $(CPP) -P -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=0 >tmp.s + cat $(FILES) | $(CPP) -P $(FLTRAP) -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=0 >tmp.s ./compile -o em2_t-c- tmp.s rm -f tmp.s em2_t--p: $(FILES) compile - cat $(FILES) | $(CPP) -P -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=1 >tmp.s + cat $(FILES) | $(CPP) -P $(FLTRAP) -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=1 >tmp.s ./compile -o em2_t--p tmp.s rm -f tmp.s em4_t---: $(FILES) compile - cat $(FILES) | $(CPP) -P -Dlword -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=0 >tmp.s + cat $(FILES) | $(CPP) -P $(FLTRAP) -Dlword -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=0 >tmp.s ./compile -o em4_t--- tmp.s rm -f tmp.s em4_----: $(FILES) compile - cat $(FILES) | $(CPP) -P -Dlword -Dopfreq=0 -Dlast=0 -Dcount=0 -Dtest=0 -Dflow=0 -Dprof=0 >tmp.s + cat $(FILES) | $(CPP) -P $(FLTRAP) -Dlword -Dopfreq=0 -Dlast=0 -Dcount=0 -Dtest=0 -Dflow=0 -Dprof=0 >tmp.s ./compile -o em4_---- tmp.s rm -f tmp.s em4_t-cp: $(FILES) compile - cat $(FILES) | $(CPP) -P -Dlword -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=1 >tmp.s + cat $(FILES) | $(CPP) -P $(FLTRAP) -Dlword -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=1 >tmp.s ./compile -o em4_t-cp tmp.s rm -f tmp.s em4_t-c-: $(FILES) compile - cat $(FILES) | $(CPP) -P -Dlword -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=0 >tmp.s + cat $(FILES) | $(CPP) -P $(FLTRAP) -Dlword -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=0 >tmp.s ./compile -o em4_t-c- tmp.s rm -f tmp.s em4_t--p: $(FILES) compile - cat $(FILES) | $(CPP) -P -Dlword -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=1 >tmp.s + cat $(FILES) | $(CPP) -P $(FLTRAP) -Dlword -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=1 >tmp.s ./compile -o em4_t--p tmp.s rm -f tmp.s compile: Makefile case `ack_sys` in sun*) MACH=sun2;; pmds*) MACH=pmds4;; \ - m68_sysV_0) MACH=mantra;; *) MACH=m68k4;; \ + m68_sysV_0) MACH=mantra;; \ + m68k2) MACH=m68k2;; *) MACH=m68k4;; \ esac ; echo $$MACH -.m '$$*' > compile; chmod +x compile install: all -mkdir $b24 $b44 -- 2.34.1