From 1e1dcdf0d9200a09d86010e4ce0ea03ef72bf13c Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 25 May 1998 06:20:43 +0000 Subject: [PATCH] De-sanitize simulator hw. --- sim/common/.Sanitize | 35 ----------------------------------- sim/common/ChangeLog | 34 ---------------------------------- sim/common/Make-common.in | 8 -------- 3 files changed, 77 deletions(-) diff --git a/sim/common/.Sanitize b/sim/common/.Sanitize index 69260b9cb9b..c765b7f60f9 100644 --- a/sim/common/.Sanitize +++ b/sim/common/.Sanitize @@ -22,13 +22,6 @@ else lose_these_too="${cygnus_files} ${lose_these_too}" fi -am30_files="dv-core.c dv-pal.c dv-glue.c hw-base.c hw-base.h hw-device.c hw-device.h hw-ports.c hw-ports.h hw-properties.c hw-properties.h hw-tree.c hw-tree.h sim-hw.h sim-hw.c" -if ( echo $* | grep keep\-am30 > /dev/null ) ; then - keep_these_too="${am30_files} ${keep_these_too}" -else - lose_these_too="${am30_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 @@ -157,34 +150,6 @@ else done fi -am30_files="ChangeLog sim-module.c sim-base.h Make-common.in" -if ( echo $* | grep keep\-am30 > /dev/null ) ; then - for i in $am30_files ; do - if test ! -d $i && (grep sanitize-am30 $i > /dev/null) ; then - if [ -n "${verbose}" ] ; then - echo Keeping am30 stuff in $i - fi - fi - done -else - for i in $am30_files ; do - if test ! -d $i && (grep sanitize-am30 $i > /dev/null) ; then - if [ -n "${verbose}" ] ; then - echo Removing traces of \"am30\" from $i... - fi - cp $i new - sed '/start\-sanitize\-am30/,/end-\sanitize\-am30/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 - cygnus_files="ChangeLog Make-common.in" if ( echo $* | grep keep\-cygnus > /dev/null ) ; then for i in $cygnus_files ; do diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index cfc988364da..ca63e974a0a 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,4 +1,3 @@ -start-sanitize-am30 Fri May 22 12:16:27 1998 Andrew Cagney * aclocal.m4 (SIM_AC_OPTION_HW): Add enable / disable argument. @@ -10,7 +9,6 @@ Thu May 21 17:57:16 1998 Andrew Cagney * sim-hw.c: Include ctype.h. (do_hw_poll_read): Do not assume EAGAIN. -end-sanitize-am30 Wed May 20 04:37:57 1998 Doug Evans * cgen-trace.c (first_insn_p): New static local. @@ -109,7 +107,6 @@ Wed May 6 16:04:18 1998 Doug Evans * sim-io.c: #include . Wed May 6 12:39:15 1998 Andrew Cagney -start-sanitize-am30 * dv-pal.c (struct hw_pal_device): Add reader. (hw_pal_finish): Initialize reader. @@ -119,13 +116,11 @@ start-sanitize-am30 (HW_IO_EOF, HW_IO_NOT_READY): Define. * dv-pal.c: Use. -end-sanitize-am30 * sim-io.h, sim-io.c (sim_io_poll_read): New function. Copy from ../ppc/main.c sim_io_read_stdin. Fri May 1 12:11:02 1998 Andrew Cagney -start-sanitize-am30 * hw-tree.h (hw_tree_print): Paramaterize with print and file arguments. * hw-tree.c: Update. @@ -176,7 +171,6 @@ start-sanitize-am30 functions. (sim_hw_print): New function. -end-sanitize-am30 * sim-engine.h (sim_engine_vabort): Declare. * sim-engine.c (sim_engine_vabort): New function. @@ -333,7 +327,6 @@ Mon Mar 30 17:11:55 1998 Andrew Cagney * run.c (main): Handle all alternatives of enum sim_stop. (main): Delete unused `asection *s'. -start-sanitize-am30 Fri Mar 27 16:15:52 1998 Andrew Cagney * hw-tree.h, hw-tree.c (hw_tree_vparse): New function @@ -352,7 +345,6 @@ Fri Mar 27 16:15:52 1998 Andrew Cagney * aclocal.m4 (sim_hw_obj): Add sim-hw.o -end-sanitize-am30 Fri Mar 27 14:55:06 1998 Andrew Cagney * sim-base.h (CPU_INDEX): Define. @@ -360,21 +352,16 @@ Fri Mar 27 14:55:06 1998 Andrew Cagney * sim-utils.c (sim_state_alloc): Initialize. * sim-module.c (sim_post_argv_init): Ditto. -start-sanitize-am30 Thu Mar 26 10:07:57 1998 Stu Grossman * aclocal.m4 (sim_hw_obj): Fix sed expression to generate properly formatted lists. -end-sanitize-am30 -start-sanitize-am30 Thu Mar 26 10:37:22 1998 Andrew Cagney * dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was 0x2f needs to be 0x3f. -end-sanitize-am30 -start-sanitize-am30 Thu Mar 26 09:10:56 1998 Andrew Cagney * hw-tree.c (hw_tree_find_property): Return NULL when device is @@ -385,14 +372,12 @@ Thu Mar 26 09:10:56 1998 Andrew Cagney * dv-pal.c (hw_pal_io_read_buffer): Check the smp property is present before looking for it. -end-sanitize-am30 Wed Mar 25 16:17:38 1998 Ian Carmichael * aclocal.m4 (AC_CHECK_HEADERS): Add check for fpu_control.h. (AC_CHECK_FUNCS): Add check for __setfpucw. * configure: Regenerated. -start-sanitize-am30 Wed Mar 25 09:18:34 1998 Andrew Cagney * dv-pal.c (hw_pal_countdown, hw_pal_countdown_value, @@ -401,8 +386,6 @@ Wed Mar 25 09:18:34 1998 Andrew Cagney (do_counter_event, do_counter_read, do_counter_value, do_counter_write): new functions. -end-sanitize-am30 -start-sanitize-am30 Tue Mar 24 12:24:24 1998 Andrew Cagney * hw-tree.c (hw_printf): Send tree dump to stderr, same as other @@ -411,12 +394,10 @@ Tue Mar 24 12:24:24 1998 Andrew Cagney * hw-base.c (hw_create): Stop searching for a device when one is found. -end-sanitize-am30 Wed Mar 25 12:35:29 1998 Andrew Cagney * configure: Regenerated to track ../common/aclocal.m4 changes. -start-sanitize-am30 Mon Mar 23 10:25:08 1998 Andrew Cagney * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add second argument, @@ -429,7 +410,6 @@ Mon Mar 23 10:25:08 1998 Andrew Cagney (SIM_HW): Definition from @sim_hw@. (hw-base.o): Depend on hw-config.h -end-sanitize-am30 Tue Mar 24 17:41:35 1998 Stu Grossman * Make-common.in: Get SHELL from configure. @@ -440,7 +420,6 @@ Tue Mar 24 17:41:35 1998 Stu Grossman * configure: Regenerate with autoconf 2.12.1 to fix shell issues for NT native builds. -start-sanitize-am30 Sun Mar 22 16:54:40 1998 Andrew Cagney * hw-device.h, hw-device.c (hw_strdup): New function. @@ -461,8 +440,6 @@ Sun Mar 22 16:54:40 1998 Andrew Cagney * Make-common.in: Add rule for dv-glue.o. -end-sanitize-am30 -start-sanitize-am30 Sun Mar 22 16:45:54 1998 Andrew Cagney * hw-base.c (hw_finish): Move setting of trace level to here. @@ -476,8 +453,6 @@ Sun Mar 22 16:45:54 1998 Andrew Cagney * hw-tree.c (print_properties): Supress path when printing properties of root node. -end-sanitize-am30 -start-sanitize-am30 Sun Mar 22 16:21:15 1998 Andrew Cagney * hw-device.h (HW_TRACE): Define. @@ -491,8 +466,6 @@ Sun Mar 22 16:21:15 1998 Andrew Cagney * dv-pal.c: Replace DTRACE with HW_TRACE. -end-sanitize-am30 -start-sanitize-am30 Sun Mar 22 15:23:35 1998 Andrew Cagney * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros. @@ -524,8 +497,6 @@ Sun Mar 22 15:23:35 1998 Andrew Cagney * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with hw_zalloc/hw_free. -end-sanitize-am30 -start-sanitize-am30 Sun Mar 22 15:09:52 1998 Andrew Cagney * hw-device.h (hw_attach_address_callback, @@ -537,12 +508,10 @@ Sun Mar 22 15:09:52 1998 Andrew Cagney * dv-core.c (dv_core_attach_address_callback): Ditto. * dv-pal.c (hw_pal_attach_address): Ditto. -end-sanitize-am30 Thu Mar 19 00:41:00 1998 Andrew Cagney * sim-options.h: Document additional CPU arg to OPTION_HANDLER. -start-sanitize-am30 Wed Mar 18 14:13:02 1998 Andrew Cagney * Make-common.in (SIM_HW_OBJS, SIM_HW_SRC, SIM_DV_OBJS): Define. @@ -570,8 +539,6 @@ Wed Mar 18 14:13:02 1998 Andrew Cagney * sim-basics.h (struct hw): Declare. (enum port_direction, enum object_disposition): Declare. -end-sanitize-am30 -start-sanitize-am30 Wed Mar 18 12:38:12 1998 Andrew Cagney * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj, @@ -580,7 +547,6 @@ Wed Mar 18 12:38:12 1998 Andrew Cagney * configure: Regenerated to track ../common/aclocal.m4 changes. -end-sanitize-am30 Mon Mar 16 12:37:33 1998 Andrew Cagney * sim-trace.h, sim-trace.c (trace_prefix): Pass in sim_cia so that diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in index 94565386ad7..aab6708df00 100644 --- a/sim/common/Make-common.in +++ b/sim/common/Make-common.in @@ -141,7 +141,6 @@ SIM_EXTRA_CLEAN = # here. Some files are used by all simulators (e.g. callback.o). # Those files are specified in LIB_OBJS below. -# start-sanitize-am30 SIM_COMMON_HW_OBJS = \ hw-device.o \ hw-ports.o \ @@ -150,7 +149,6 @@ SIM_COMMON_HW_OBJS = \ hw-tree.o \ sim-hw.o \ -# end-sanitize-am30 SIM_NEW_COMMON_OBJS = \ sim-bits.o \ sim-break.o \ @@ -315,7 +313,6 @@ sim-options_h = $(srccom)/sim-options.h sim-break_h = $(srccom)/sim-break.h sim-signal_h = $(srccom)/sim-signal.h -# start-sanitize-am30 hw-base_h = $(srccom)/hw-base.h hw-device_h = $(srccom)/hw-device.h hw-handles_h = #$(srccom)/hw-handles.h @@ -331,7 +328,6 @@ hw_base_headers = \ $(hw-handles_h) \ $(hw-ports_h) \ $(hw-properties_h) \ -# end-sanitize-am30 # FIXME: If this complicated way of building .o files from ../common is # necessary, the reason should be documented here. @@ -385,11 +381,9 @@ sim-hrw.o: $(srccom)/sim-hrw.c $(sim-assert_h) $(sim_core_h) \ $(SIM_EXTRA_DEPS) $(CC) -c $(srccom)/sim-hrw.c $(ALL_CFLAGS) -#start-sanitize-am30 sim-hw.o: $(srccom)/sim-hw.c $(sim_main_headers) $(SIM_EXTRA_DEPS) $(CC) -c $(srccom)/sim-hw.c $(ALL_CFLAGS) -#end-sanitize-am30 sim-info.o: $(srccom)/sim-info.c $(sim-assert_h) \ $(srcroot)/include/remote-sim.h \ $(SIM_EXTRA_DEPS) @@ -460,7 +454,6 @@ sim-break.o: $(srccom)/sim-break.c $(sim_main_headers) \ $(CC) -c $(srccom)/sim-break.c $(ALL_CFLAGS) -# start-sanitize-am30 # FIXME This is one very simple-minded way of generating the file hw-config.h hw-config.h: Makefile.in $(srccom)/Make-common.in config.status Makefile rm -f tmp-hw.h @@ -517,7 +510,6 @@ dv-pal.o: $(srccom)/dv-pal.c $(sim_main_headers) \ $(sim-main_h) $(hw_base_headers) $(CC) -c $(srccom)/dv-pal.c $(ALL_CFLAGS) -#end-sanitize-am30 nrun.o: $(srccom)/nrun.c config.h tconfig.h \ $(srcroot)/include/remote-sim.h $(srcroot)/include/callback.h \ -- 2.30.2