This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] Add cgen support to sims


The following patches add cgen support to some of the sim Makefiles.

Ben


2000-08-02  Ben Elliston  <bje@redhat.com>

[fr30/ChangeLog]

	* Makefile.in (fr30-clean): Add stamp-arch, stamp-cpu.
	(stamp-arch, stamp-cpu): New targets.

[i960/ChangeLog]

	* Makefile.in (i960-clean): Add stamp-arch, stamp-cpu, stamp-desc.
	(stamp-arch, stamp-cpu, stamp-desc): New targets.

[m32r/ChangeLog]

	* Makefile.in (m32r-clean): Add stamp-arch, stamp-cpu, stamp-xcpu.
	(stamp-arch, stamp-cpu, stamp-xcpu): New targets.


*** /home/bje/sources.redhat.com/src/sim/fr30/Makefile.in	Fri Apr 16 11:35:00 1999
--- fr30/Makefile.in	Wed Aug  2 10:50:22 2000
***************
*** 87,90 ****
--- 87,109 ----
  fr30-clean:
  	rm -f mloop.c eng.h stamp-mloop
  	rm -f tmp-*
+ 	rm -f stamp-arch stamp-cpu
  
+ # cgen support, enable with --enable-cgen-maint
+ CGEN_MAINT = ; @true
+ # The following line is commented in or out depending upon --enable-cgen-maint.
+ @CGEN_MAINT@CGEN_MAINT =
+ 
+ stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(srccgen)/fr30.cpu
+ 	$(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all \
+ 	  FLAGS="with-scache with-profile=fn"
+ 	touch stamp-arch
+ arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch
+ #	@true
+ 
+ stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(srccgen)/fr30.cpu
+ 	$(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
+ 	  cpu=fr30bf mach=fr30 SUFFIX= FLAGS="with-scache with-profile=fn" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
+ 	touch stamp-cpu
+ cpu.h sem.c sem-switch.c model.c decode.c decode.h: $(CGEN_MAINT) stamp-cpu
+ #	@true


*** /home/bje/sources.redhat.com/src/sim/i960/Makefile.in	Fri Apr 16 11:35:03 1999
--- i960/Makefile.in	Wed Aug  2 10:47:40 2000
***************
*** 98,101 ****
--- 98,128 ----
  i960-clean:
  	rm -f mloop.c eng.h stamp-mloop
  	rm -f tmp-*
+ 	rm -f stamp-arch stamp-cpu stamp-desc
  
+ # cgen support, enable with --enable-cgen-maint
+ CGEN_MAINT = ; @true
+ # The following line is commented in or out depending upon --enable-cgen-maint.
+ @CGEN_MAINT@CGEN_MAINT =
+ 
+ stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(srccgen)/i960.cpu
+ 	$(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all \
+ 	  FLAGS="with-scache with-profile=fn"
+ 	touch stamp-arch
+ arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch
+ 	@true
+ 
+ stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(srccgen)/i960.cpu
+ 	$(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
+ 	  cpu=i960base mach=i960:ka_sa,i960:ca SUFFIX= FLAGS="with-scache with-profile=fn" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
+ 	touch stamp-cpu
+ cpu.h sem.c sem-switch.c model.c decode.c decode.h: $(CGEN_MAINT) stamp-cpu
+ 	@true
+ 
+ stamp-desc: $(CGEN_READ_SCM) $(CGEN_DESC_SCM) \
+ 		$(srccgen)/sparc.cpu $(srccgen)/sparccom.cpu $(srccgen)/i960.cpu $(srccgen)/i960.cpu
+ 	$(MAKE) cgen-desc $(CGEN_FLAGS_TO_PASS) \
+ 		cpu=i960 mach=all
+ 	touch stamp-desc
+ i960-desc.c i960-desc.h i960-opc.h: $(CGEN_MAINT) stamp-desc
+ 	@true



*** /home/bje/sources.redhat.com/src/sim/m32r/Makefile.in	Wed Dec  8 13:51:13 1999
--- m32r/Makefile.in	Wed Aug  2 10:47:53 2000
***************
*** 116,120 ****
--- 116,148 ----
  m32r-clean:
  	rm -f mloop.c eng.h stamp-mloop
  	rm -f mloopx.c engx.h stamp-xmloop
+ 	rm -f stamp-arch stamp-cpu stamp-xcpu
  	rm -f tmp-*
  
+ # cgen support, enable with --enable-cgen-maint
+ CGEN_MAINT = ; @true
+ # The following line is commented in or out depending upon --enable-cgen-maint.
+ @CGEN_MAINT@CGEN_MAINT =
+ 
+ stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(srccgen)/m32r.cpu
+ 	$(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all \
+ 	  FLAGS="with-scache with-profile=fn"
+ 	touch stamp-arch
+ arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch
+ 	@true
+ 
+ stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(srccgen)/m32r.cpu
+ 	$(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
+ 	  cpu=m32rbf mach=m32r SUFFIX= \
+ 	  FLAGS="with-scache with-profile=fn" \
+ 	  EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
+ 	touch stamp-cpu
+ cpu.h sem.c sem-switch.c model.c decode.c decode.h: $(CGEN_MAINT) stamp-cpu
+ 	@true
+ 
+ stamp-xcpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(srccgen)/m32r.cpu
+ 	$(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
+ 	  cpu=m32rxf mach=m32rx SUFFIX=x FLAGS="with-scache with-profile=fn" EXTRAFILES="$(CGEN_CPU_SEMSW)"
+ 	touch stamp-xcpu
+ cpux.h semx-switch.c modelx.c decodex.c decodex.h: $(CGEN_MAINT) stamp-xcpu
+ 	@true



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]