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