1 Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
3 * Make-common.in (sim-options.o, sim-load.o): Add rules for.
4 (sim_main_headers): Add sim-trace.h.
5 * run.c (exec_bfd, target_byte_order): Delete.
6 (main): Pass -E <endian> to sim_open. Delete code to load sections,
7 call sim_load instead. Check return code of sim_create_inferior.
8 * sim-base.h (CURRENT_STATE): Define.
9 (sim_state_base): Make typedef. New members options, prog_argv,
10 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
11 mem_size, memory [+ corresponding access macros].
12 (sim_cpu_base): New typedef.
13 * sim-trace.h: New file.
14 * sim-basics.h: #include it.
16 Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
18 * Make-common.in (INSTALL): Set to @INSTALL@.
19 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
20 (install-common): Depend upon installdirs. Use
21 $(program_transform_name) directly, rather than using
23 (installdirs): New target.
24 * Makefile.in (INSTALL): Set to @INSTALL@.
25 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
26 (install-man): Depend upon installdirs. Use
27 $(program_transform_name) directly, rather than using
29 (installdirs): New target.
31 Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
33 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
36 Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
38 * sim-basics.h: Only bring in config.h and tconfig.h if
41 Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
43 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
44 numbering convention of the target.
45 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
46 and WITH_TARGET_WORD_MSB.
47 (sim_config): When possible, check for consistency with bitsize
50 * sim-bits.h: Allow MSB to be other than zero.
52 * sim-n-bits.h: Ditto.
54 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
55 * sim-n-bits.h (MSMASKEDn): Ditto.
57 Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
59 * Makefile.in (INSTALL): Change install.sh to install-sh.
61 Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
63 * sim-base.h (sim_state_base): Move `magic' to end of struct.
65 Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
67 * run.c (main): Check that a program to run was specified.
69 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
71 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
73 * configure: Regenerated to track ../common/aclocal.m4 changes.
76 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
78 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
79 * sim-config.h: To here.
81 * Make-common.in (SIM_EXTRA_DEPS): New config var.
82 (sim_main_headers): Define.
83 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
84 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
86 (sim-utils.o): Add rule for.
87 * sim-utils.o: New file.
88 * sim-basics.h: #include sim-base.h.
89 (zalloc): Make argument unsigned long.
90 * sim-base.h: New file.
91 * sim-inline.h (SIM_IO support): Delete.
92 * sim-io.h: Delete inline support.
93 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
94 * sim-config.c: sim-state.h renamed to sim-main.h.
95 * sim-core.c: Likewise.
96 * sim-events.c: Likewise.
98 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
100 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
101 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
103 * configure: Regenerated to track ../common/aclocal.m4 changes.
105 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
107 * configure: Regenerated to track ../common/aclocal.m4 changes.
109 Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
111 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
112 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
113 are defined by the configure.
115 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
117 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
118 reserved-bits): Always define.
120 * sim-config.h, sim-config.c (sim_config): New function - and new
121 file - co-ordinate the setting/checking of the common simulator
122 configuration options.
124 * Make-common.in (sim-config.o): Add rule.
126 Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
128 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
129 va_list from void *, since va_list might not be a pointer type.
131 Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
133 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
135 (offset_N): Correct computation of LE offset.
137 * sim-io.c (sim_io_error): Include a new line when reporting
140 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
143 Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
145 * run.c: Include alloca-conf.h.
147 * callback.c (os_evprintf_filtered): Fix typo.
149 Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
151 * run.c (string.h, strings.h, stdlib.h): Include.
153 * sim-events.c (sim_events_tick): Recent cleanup failed to return
154 0 when nothing pending.
156 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
157 will soon be going away.
158 (getopt): Plicate GCC.
160 * sim-endian.c (sim-io.h): Plicate GCC.
161 * sim-bits.c (sim-io.h): Ditto.
162 * sim-n-bits.h (ROTn): Ditto.
164 * sim-io.c (sim_io_error): Correct check for NULL.
166 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
168 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
171 Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
173 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
174 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
176 Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
178 * sim-alu.h: Include sim-xcat.h.
180 Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
182 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
183 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
186 * sim-events.c (sim_events_at_large_int): New function. Just
187 schedules an event every large-int ticks.
188 (sim_events_init): Call.
189 (sim_events_tick, sim_events_process): Move async handing to
190 sim_events_process. Move timer decrement so that it occures after
191 events have been processed.
193 * sim-basics.h (struct _engine): Remove declaration.
195 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
196 everything with same. Rename global struct to SIM_DESC.
197 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
198 * sim-io.h, sim-io.c: Ditto.
200 * sim-assert.h: New file. Optional assertion checking macros.
201 * sim-io.c (sim_io_error): Make just this function tolerant to
204 * sim-xcat.h: New file. Define concatenate macros.
205 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
206 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
210 Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
212 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
214 Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
216 * sim-inline.h: Add definitions for sim-types.
217 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
220 Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
222 * sim-events.h: Remove defunct reference to callback struct.
224 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
226 * configure: Re-generate.
228 Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
230 * Make-common.in (CSEARCH): Do not include the gdb directory in
233 Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
235 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
236 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
237 to explicitly incorporate these.
239 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
240 specify the alignment restrictions of the target architecture -
241 without this option all alignment restrictions are accomodated.
242 (--enable-sim-assert): New option. Conditionally compile in
243 assertion statements.
244 (--enable-sim-float): New option. Strongly specify the target's
245 floating point support.
246 (--enable-sim-hardware): New option. Specify the hardware devices
247 included in the simulation.
248 (--enable-sim-packages): New option. Specify the hardware
249 packages included in the simulation.
250 (--enable-sim-regparm): New option. Specify that parameters be
251 passed in registers instead of on the stack.
252 (--enable-sim-reserved-bits): New option. Specify that reserved
253 bits within an instruction are are correctly set.
254 (--enable-sim-smp): New option. Specify the level of SMP support
255 to be included in the simulator.
256 (--enable-sim-stdcall): New option. Specify an alternative
257 function call convention.
258 (--enable-sim-xor-endian): New option. Configure xor-endian
259 support used by some targets to implement bi-endian support.
261 Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
263 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
264 host endianness to be overridden.
265 (--enable-sim-endian): Allow the target platform's byte order
267 (--enable-sim-inline): Control the inlining of common components.
268 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
269 (--enable-sim-warnings): Enable additional GCC compiler checks.
270 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
273 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
274 sim-*-n.h so that the names are uniq on dos machines
275 * sim-core.c, sim-bits.c, sim-endian.c: Update.
277 Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
279 * run.c: #include "libiberty.h".
280 (main): New locals sd,no_args,sim_argv.
281 Run buildargv on -a option. Pass argv to sim_open, argv[0]
282 is program name. Update call to sim_set_callbacks.
283 Record result of sim_open, pass to other sim_foo routines.
285 Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
287 * callback.c (os_printf_filtered): Do not call exit(1) or print a
290 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
292 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
293 Route stdout through buffered IO.
295 * callback.c: Add os_flush_stderr, os_write_stderr,
296 os_evprintf_filtered functions to route error output through
299 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
300 Correct return type - should be void.
302 Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
304 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
306 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
307 not provide a default value as undefined indicates disable code.
309 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
311 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
313 * sim-events.h, sim-events.c: Ditto.
314 * sim-io.h, sim-io.c: Ditto.
316 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
318 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
320 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
321 extract the tail or least signifiant bits from an integer of the
324 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
325 WITH_TARGET_BITSIZE so that the compilation will fail when an
326 unsupported bitsize value is defined.
328 (INSERTED*): Convert to functions.
331 (SIGN_EXTEND, SEXT): Change to more terse name.
333 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
335 * sim-inline.h: Allow explicit control over which .c files will be
336 included by their header.
338 * sim-inline.h: Allow explicit control over which .c files use the
339 alternative - REGPARM - parameter passing mechanism.
341 * sim-inline.h, sim-inline.c: Don't attempt to include any of
342 icache.c, idecode.c, semantics.c or support.c. Those names are
343 not generally applicable.
345 Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
347 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
348 in a fashion similar to sim-endian-n.
350 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
351 both value and address macro's.
353 Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
355 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
357 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
358 generic L_word, H_word macro's.
360 Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
362 * sim-basics.h: Borrow code from ppc directory.
365 * sim-config.h: Ditto.
366 * sim-endian-n.h: Ditto.
367 * sim-endian.c: Ditto.
368 * sim-endian.h: Ditto.
369 * sim-inline.c: Ditto.
370 * sim-inline.h: Ditto.
371 * sim-types.h: Ditto.
373 Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
375 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
376 all the ALU size alternatives and then auto-configure a default.
378 * sim-alu.h: Copy ppc/idecode_expression.h.
380 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
382 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
383 sign extend a bit within a value.
385 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
386 a pointer into the middle of a host word.
387 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
389 Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
391 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
392 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
393 appropriate definitions of read, write, etc. Add prototype for
396 Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
398 * Makefile.in (libcommon.a): Delete.
399 (callback.o,targ-map.o): Delete, moved to Make-common.in.
400 (gentmap,targ-vals.h,targ-map.c): Likewise.
401 (run-autoconf): Delete.
402 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
403 (common makefile fragment): Moved back into ...
404 * Make-common.in: Resurrect.
405 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
406 * configure: Regenerated.
408 Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
410 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
411 (SIM_AC_OUTPUT): To here.
413 Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
415 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
416 comments and single quotes. Fixes a problem found on hpux.
418 Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
420 * aclocal.m4: Remove Make-common.in from dependencies.
421 * (distclean): Remove targ-vals.def.
423 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
424 into here. Makes insertion into makefiles easier. Also, change
425 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
426 targ-map.o, and run are built. They are now built in the
427 individual simulator directories, taking sources from ../common as
428 necessary. This replaces the merging of libcommon.a into
429 linsim.a, which was problematic for the WinGDB build process.
430 * run.c: Include config.h from . instead of ../common.
431 * Make-common.in: Remove. It's no longer necessary.
433 Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
435 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
436 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
438 Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
440 * run.c (main): Set target_byte_order before call to sim_open.
442 Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
444 * callback.c: #include <stdlib.h>
445 (os_error): New function.
446 (default_callback): Add os_error.
448 Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
450 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
451 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
453 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
455 Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
457 * run.c: #include ../common/config.h, tconfig.h.
458 (myname): New static global.
459 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
460 Only process -c ifdef SIM_HAVE_SIMCACHE.
461 Only process -p/-s ifdef SIM_HAVE_PROFILE.
462 Parse program name from argv[0] and use in error messages.
463 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
464 Add support for incomplete h8/300 termination indicators.
465 (usage): Make more verbose.
466 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
467 * Makefile.in,Make-common.in,callback.c: New files.
468 * nltvals.def,gentmap.c,gentvals.sh: New files.
470 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
472 * run.c: Include stdarg.h if __STDC__.
474 Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
476 * run.c (main): Don't print out anything if the signal
477 number is zero (ie no signal).
479 Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
481 * run.c (main): Print out if the program raised a signal.
483 Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
485 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
488 Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
490 * run.c (main): Explicitly cast malloc() parameter.
492 Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
494 * run.c (sim_bfd): New global to hold the bfd pointer for the
496 (main): Initialize sim_bfd.
498 Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
500 * run.c (main): Use new bfd_big_endian macro.
502 Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
504 * run.c (main): Removed SH specific comments, so source is
505 generic. Also updated to only load relevant sections. Moved
506 sim_open() to after callback attach (to match GDB).
508 * run.1: Removed SH specific comments.
510 Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
512 * run.c (main): Always return sigrc at end.
514 Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
516 * run.c (main): Print error diagnostic and exit if bfd_openr() or
517 bfd_check_format() fails.
519 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
521 * run.c, run.1: From sh directory.