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