Update devo version of m32r sim to build with recent sim/common changes.
[binutils-gdb.git] / sim / common / ChangeLog
1 Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
2
3 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
4 to map type.
5
6 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
7 statement.
8
9 Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
10
11 * cgen-trace.c: Prepend additional trace_printf argument.
12
13 * cgen-utils.c (sim_disassemble_insn): Add additional core
14 arguments.
15
16 Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
17
18 * nrun.c (main): Catch/report errorenous simulator states.
19
20 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
21 * sim-trace.c: #include string.h/strings.h so that memset is
22 defined.
23 * sim-utils.c: Ditto.
24 * sim-profile.c: Ditto. And stdlib.h.
25 (print_bar): Only define when used by instruction or memory profiler.
26
27 * sim-options.c (standard_option_handler): Make ul more local.
28
29 * sim-load.c (sim_load_file): Make the name constant.
30 (sim_load_file): Passify gcc.
31
32 * sim-utils.h: New file, pre-declare utilites in corresponding .c
33 file.
34 * sim-utils.c, sim-load.c: Include sim-utils.h.
35
36 * sim-base.h (sim_cpu): Pre define here so available to all.
37
38 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
39 Restore the sim_cpu and instruction_address arguments so that full
40 information is available to the abort function.
41 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
42 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
43
44 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
45 tracing support for sim-events and sim-core.
46 (trace_option_handler): Convert #if to if where possible so always
47 compiled/checked by C compiler.
48 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
49
50 * sim-base.h: Adjust comment documenting how to define the cpu
51 structure.
52 (sim_state_base): Add sim_core and sim_events to simulator base
53 object.
54
55 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
56 * sim-core.c (sim_core_init, sim_core_attach,
57 sim_core_find_mapping): Update.
58 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
59 update_time_from_event, insert_sim_event,
60 sim_events_schedule_after_signal, sim_events_deschedule,
61 sim_events_tick): Ditto.
62
63 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
64 sim-model.h): Move #includes from here.
65 * sim-base.h: To here.
66 (sim-core.h, sim-events.h, sim-io.h): Include also
67
68 Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
69
70 * callback.c (default_callback): Missing initialisers.
71
72 Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
73
74 * sim-utils.c (sim_add_commas): New function.
75 * sim-basics.h (sim_add_commas): Add prototype.
76 * cgen-scache.c (scache_print_profile): Print commas in numbers.
77 * sim-profile.c (COMMAS): New macro.
78 (print_*): Use it to print commas in numbers.
79
80 * configure: Regenerated.
81
82 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
83 (cgen_state): New member run_fast_p.
84 (cgen_init): Add prototype.
85 (sim_disassemble_insn): New arg `cpu'.
86 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
87 * cgen-utils.c (cgen_init): New function.
88 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
89 * genmloop.sh: Call engine_halt if loop exits.
90
91 * Makefile.in (sim-options_h): Define.
92 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
93 (sim-model.o): Add new rule.
94 (cgen-{scache,trace,utils}.o): Add new rules.
95 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
96 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
97 Indent output by 2 spaces.
98 * cgen-scache.h (scache_print_profile): Update.
99 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
100 Use trace_printf, not fprintf.
101 (trace_extract): Use trace_printf, not cgen_trace_printf.
102 * genmloop.sh (!FAST case): Increment `insn_count'.
103 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
104 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
105 access macro's name.
106 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
107 Change return type to SIM_RC.
108 (sim_core_{install,uninstall}): New functions.
109 * sim-core.h (sim_core_{install,uninstall}): Declare.
110 (sim_core_init): Use EXTERN_SIM_CORE to define it.
111 Change return type to SIM_RC.
112 * sim-model.h (models,machs,model_install): Declare.
113 * sim-module.c (modules): Add scache_install, model_install.
114 (sim_post_argv_init): Set cpu->state backlinks.
115 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
116 (standard_option_handler): Likewise.
117 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
118 sim-profile.h.
119 (*): Assume ANSI C.
120 (profile_options): Delete --profile-simcache.
121 (profile_option_handler): Likewise.
122 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
123 spaces.
124 (profile_print_{memory,model}): Likewise.
125 (profile_print_simcache): Delete.
126 (profile_print_speed): New function.
127 (profile_print): Rewrite.
128 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
129 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
130 (PROFILE_DATA): Delete members simcache_{hits,misses}.
131 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
132 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
133 (profile_print): Update prototype.
134
135 Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
136
137 * cgen-scache.[ch], cgen-sim.h: New files.
138 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
139 * sim-model.c: New file.
140
141 * Make-common.in (clean targets): Undo patch of Apr. 22.
142
143 Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
144
145 * sim-n-bits.h (signed): If we have a standard compiler, undef
146 signed, so that signedN is defined correctly.
147
148 Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
149
150 * sim-module.h, sim-model.h, sim-profile.h: New files.
151 * sim-module.c, sim-profile.c: New files.
152 * Make-common.in (SIM_PROFILE): Define
153 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
154 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
155 (sim_module.o,sim-profile.o): Add rules for.
156 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
157 (--enable-sim-profile): Add.
158 * configure: Regenerated.
159 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
160 model. Move trace and profile support to sim-{trace,profile}.h.
161 New members trace_data, profile_data.
162 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
163 * sim-config.h: Provide default definition of WITH_PROFILE.
164 (WITH_TRACE): Change default to -1.
165 (MAX_NR_PROCESSORS): Always define.
166 * sim-options.c: Move trace and profile support to
167 sim-{trace,profile}.h.
168 (sim_pre_argv_init): Moved to sim-model.c.
169 (standard_install): New function.
170 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
171 (standard_install): Declare.
172 * sim-trace.c: Tracing option handling moved here from sim-options.c.
173 (trace_install, trace_uninstall): New functions.
174 (trace_printf): Update reference to TRACE_FILE.
175 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
176 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
177 (WITH_TRACE_FOO_P): Define.
178 (trace_install): Declare.
179 (TRACE_DATA): New struct.
180
181 Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
182
183 * run.c: Undo last exec_bfd patch.
184 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
185
186 Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
187
188 * run.c (exec_bfd): Add back in.
189 (main): Set exec_bfd.
190
191 Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
192
193 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
194
195 Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
196
197 * sim-events.c (insert_sim_event): Call sim_io_error instead of
198 less well defined engine_error.
199 * sim-core.c: Ditto.
200
201 Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
202
203 * Make-common.in: Change clean targets to use :: so that other
204 Makefiles can have their own clean targets.
205 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
206 __STDC__ to control use of stdarg vs. varargs syntax. Some
207 systems can't use __STDC__, but require stdarg.
208
209 Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
210
211 * sim-options.c (standard_options): Add --endian.
212 (standard_option_handler): Likewise.
213
214 * nrun.c: #include <signal.h>.
215 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
216 handler that calls sim_stop ().
217
218 Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
219
220 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
221 handler that calls sim_stop (). Simulators may still be
222 establishing their own handler.
223
224 * sim-events.c (sim_events_poll): Rename from
225 sim_events_at_large_int. Poll IO.
226
227 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
228 request.
229
230 * callback.c (os_poll_quit): New function poll for quit signal
231 where needed.
232 (default_callback): Include magic number.
233
234 Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
235
236 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
237 Check for functions getrusage, time.
238 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
239 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
240 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
241 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
242
243 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
244
245 * sim-options.c, sim-options.h: New files.
246 * sim-config.h (WITH_DEBUG): Provide default value of zero.
247 * Make-common.in (nrun.o): Add rules for.
248 * nrun.c: New file.
249
250 * run.c (main): Check return value of sim_open.
251
252 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
253 (sim_main_headers): Add sim-trace.h.
254 * run.c (exec_bfd, target_byte_order): Delete.
255 (main): Pass -E <endian> to sim_open. Delete code to load sections,
256 call sim_load instead. Check return code of sim_create_inferior.
257 * sim-base.h (CURRENT_STATE): Define.
258 (sim_state_base): Make typedef. New members options, prog_argv,
259 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
260 mem_size, memory [+ corresponding access macros].
261 (sim_cpu_base): New typedef.
262 * sim-trace.h: New file.
263 * sim-trace.c: New file.
264 * sim-basics.h: #include it.
265 * sim-load.c: New file.
266
267 Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
268
269 * Make-common.in (INSTALL): Set to @INSTALL@.
270 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
271 (install-common): Depend upon installdirs. Use
272 $(program_transform_name) directly, rather than using
273 $(INSTALL_XFORM).
274 (installdirs): New target.
275 * Makefile.in (INSTALL): Set to @INSTALL@.
276 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
277 (install-man): Depend upon installdirs. Use
278 $(program_transform_name) directly, rather than using
279 $(INSTALL_XFORM).
280 (installdirs): New target.
281
282 Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
283
284 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
285 be overriden.
286
287 Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
288
289 * sim-basics.h: Only bring in config.h and tconfig.h if
290 HAVE_CONFIG_H.
291
292 Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
293
294 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
295 numbering convention of the target.
296 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
297 and WITH_TARGET_WORD_MSB.
298 (sim_config): When possible, check for consistency with bitsize
299 and msb.
300
301 * sim-bits.h: Allow MSB to be other than zero.
302 * sim-bits.c: Ditto.
303 * sim-n-bits.h: Ditto.
304
305 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
306 * sim-n-bits.h (MSMASKEDn): Ditto.
307
308 Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
309
310 * Makefile.in (INSTALL): Change install.sh to install-sh.
311
312 Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
313
314 * sim-base.h (sim_state_base): Move `magic' to end of struct.
315
316 Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
317
318 * run.c (main): Check that a program to run was specified.
319
320 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
321
322 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
323
324 * configure: Regenerated to track ../common/aclocal.m4 changes.
325 * config.in: Ditto.
326
327 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
328
329 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
330 * sim-config.h: To here.
331
332 * Make-common.in (SIM_EXTRA_DEPS): New config var.
333 (sim_main_headers): Define.
334 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
335 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
336 (clean): Use it.
337 (sim-utils.o): Add rule for.
338 * sim-utils.o: New file.
339 * sim-basics.h: #include sim-base.h.
340 (zalloc): Make argument unsigned long.
341 * sim-base.h: New file.
342 * sim-inline.h (SIM_IO support): Delete.
343 * sim-io.h: Delete inline support.
344 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
345 * sim-config.c: sim-state.h renamed to sim-main.h.
346 * sim-core.c: Likewise.
347 * sim-events.c: Likewise.
348
349 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
350
351 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
352 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
353 -DDEBUG.
354 * configure: Regenerated to track ../common/aclocal.m4 changes.
355
356 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
357
358 * configure: Regenerated to track ../common/aclocal.m4 changes.
359
360 Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
361
362 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
363 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
364 are defined by the configure.
365
366 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
367
368 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
369 reserved-bits): Always define.
370
371 * sim-config.h, sim-config.c (sim_config): New function - and new
372 file - co-ordinate the setting/checking of the common simulator
373 configuration options.
374
375 * Make-common.in (sim-config.o): Add rule.
376
377 Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
378
379 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
380 va_list from void *, since va_list might not be a pointer type.
381
382 Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
383
384 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
385 in wrong order.
386 (offset_N): Correct computation of LE offset.
387
388 * sim-io.c (sim_io_error): Include a new line when reporting
389 errors.
390
391 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
392 `/'.
393
394 Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
395
396 * run.c: Include alloca-conf.h.
397
398 * callback.c (os_evprintf_filtered): Fix typo.
399
400 Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
401
402 * run.c (string.h, strings.h, stdlib.h): Include.
403
404 * sim-events.c (sim_events_tick): Recent cleanup failed to return
405 0 when nothing pending.
406
407 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
408 will soon be going away.
409 (getopt): Plicate GCC.
410
411 * sim-endian.c (sim-io.h): Plicate GCC.
412 * sim-bits.c (sim-io.h): Ditto.
413 * sim-n-bits.h (ROTn): Ditto.
414
415 * sim-io.c (sim_io_error): Correct check for NULL.
416
417 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
418 the __FILE__.
419 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
420 path.
421
422 Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
423
424 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
425 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
426
427 Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
428
429 * sim-alu.h: Include sim-xcat.h.
430
431 Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
432
433 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
434 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
435 these.
436
437 * sim-events.c (sim_events_at_large_int): New function. Just
438 schedules an event every large-int ticks.
439 (sim_events_init): Call.
440 (sim_events_tick, sim_events_process): Move async handing to
441 sim_events_process. Move timer decrement so that it occures after
442 events have been processed.
443
444 * sim-basics.h (struct _engine): Remove declaration.
445
446 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
447 everything with same. Rename global struct to SIM_DESC.
448 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
449 * sim-io.h, sim-io.c: Ditto.
450
451 * sim-assert.h: New file. Optional assertion checking macros.
452 * sim-io.c (sim_io_error): Make just this function tolerant to
453 null pointers.
454
455 * sim-xcat.h: New file. Define concatenate macros.
456 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
457 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
458 concat macros.
459
460
461 Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
462
463 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
464
465 Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
466
467 * sim-inline.h: Add definitions for sim-types.
468 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
469 module.
470
471 Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
472
473 * sim-events.h: Remove defunct reference to callback struct.
474
475 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
476
477 * configure: Re-generate.
478
479 Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
480
481 * Make-common.in (CSEARCH): Do not include the gdb directory in
482 the search path.
483
484 Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
485
486 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
487 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
488 to explicitly incorporate these.
489
490 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
491 specify the alignment restrictions of the target architecture -
492 without this option all alignment restrictions are accomodated.
493 (--enable-sim-assert): New option. Conditionally compile in
494 assertion statements.
495 (--enable-sim-float): New option. Strongly specify the target's
496 floating point support.
497 (--enable-sim-hardware): New option. Specify the hardware devices
498 included in the simulation.
499 (--enable-sim-packages): New option. Specify the hardware
500 packages included in the simulation.
501 (--enable-sim-regparm): New option. Specify that parameters be
502 passed in registers instead of on the stack.
503 (--enable-sim-reserved-bits): New option. Specify that reserved
504 bits within an instruction are are correctly set.
505 (--enable-sim-smp): New option. Specify the level of SMP support
506 to be included in the simulator.
507 (--enable-sim-stdcall): New option. Specify an alternative
508 function call convention.
509 (--enable-sim-xor-endian): New option. Configure xor-endian
510 support used by some targets to implement bi-endian support.
511
512 Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
513
514 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
515 host endianness to be overridden.
516 (--enable-sim-endian): Allow the target platform's byte order
517 to be overridden.
518 (--enable-sim-inline): Control the inlining of common components.
519 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
520 (--enable-sim-warnings): Enable additional GCC compiler checks.
521 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
522 SIM_WARNINGS): Add.
523
524 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
525 sim-*-n.h so that the names are uniq on dos machines
526 * sim-core.c, sim-bits.c, sim-endian.c: Update.
527
528 Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
529
530 * run.c: #include "libiberty.h".
531 (main): New locals sd,no_args,sim_argv.
532 Run buildargv on -a option. Pass argv to sim_open, argv[0]
533 is program name. Update call to sim_set_callbacks.
534 Record result of sim_open, pass to other sim_foo routines.
535
536 Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
537
538 * callback.c (os_printf_filtered): Do not call exit(1) or print a
539 final newline.
540
541 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
542
543 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
544 Route stdout through buffered IO.
545
546 * callback.c: Add os_flush_stderr, os_write_stderr,
547 os_evprintf_filtered functions to route error output through
548 stderr.
549
550 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
551 Correct return type - should be void.
552
553 Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
554
555 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
556
557 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
558 not provide a default value as undefined indicates disable code.
559
560 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
561
562 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
563 directory.
564 * sim-events.h, sim-events.c: Ditto.
565 * sim-io.h, sim-io.c: Ditto.
566
567 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
568
569 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
570
571 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
572 extract the tail or least signifiant bits from an integer of the
573 specified size.
574
575 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
576 WITH_TARGET_BITSIZE so that the compilation will fail when an
577 unsupported bitsize value is defined.
578
579 (INSERTED*): Convert to functions.
580 (EXTRACTED*): Ditto.
581
582 (SIGN_EXTEND, SEXT): Change to more terse name.
583
584 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
585
586 * sim-inline.h: Allow explicit control over which .c files will be
587 included by their header.
588
589 * sim-inline.h: Allow explicit control over which .c files use the
590 alternative - REGPARM - parameter passing mechanism.
591
592 * sim-inline.h, sim-inline.c: Don't attempt to include any of
593 icache.c, idecode.c, semantics.c or support.c. Those names are
594 not generally applicable.
595
596 Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
597
598 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
599 in a fashion similar to sim-endian-n.
600
601 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
602 both value and address macro's.
603
604 Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
605
606 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
607
608 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
609 generic L_word, H_word macro's.
610
611 Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
612
613 * sim-basics.h: Borrow code from ppc directory.
614 * sim-bits.c: Ditto.
615 * sim-bits.h: Ditto.
616 * sim-config.h: Ditto.
617 * sim-endian-n.h: Ditto.
618 * sim-endian.c: Ditto.
619 * sim-endian.h: Ditto.
620 * sim-inline.c: Ditto.
621 * sim-inline.h: Ditto.
622 * sim-types.h: Ditto.
623
624 Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
625
626 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
627 all the ALU size alternatives and then auto-configure a default.
628
629 * sim-alu.h: Copy ppc/idecode_expression.h.
630
631 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
632
633 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
634 sign extend a bit within a value.
635
636 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
637 a pointer into the middle of a host word.
638 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
639
640 Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
641
642 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
643 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
644 appropriate definitions of read, write, etc. Add prototype for
645 system.
646
647 Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
648
649 * Makefile.in (libcommon.a): Delete.
650 (callback.o,targ-map.o): Delete, moved to Make-common.in.
651 (gentmap,targ-vals.h,targ-map.c): Likewise.
652 (run-autoconf): Delete.
653 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
654 (common makefile fragment): Moved back into ...
655 * Make-common.in: Resurrect.
656 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
657 * configure: Regenerated.
658
659 Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
660
661 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
662 (SIM_AC_OUTPUT): To here.
663
664 Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
665
666 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
667 comments and single quotes. Fixes a problem found on hpux.
668
669 Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
670
671 * aclocal.m4: Remove Make-common.in from dependencies.
672 * (distclean): Remove targ-vals.def.
673
674 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
675 into here. Makes insertion into makefiles easier. Also, change
676 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
677 targ-map.o, and run are built. They are now built in the
678 individual simulator directories, taking sources from ../common as
679 necessary. This replaces the merging of libcommon.a into
680 linsim.a, which was problematic for the WinGDB build process.
681 * run.c: Include config.h from . instead of ../common.
682 * Make-common.in: Remove. It's no longer necessary.
683
684 Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
685
686 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
687 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
688
689 Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
690
691 * run.c (main): Set target_byte_order before call to sim_open.
692
693 Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
694
695 * callback.c: #include <stdlib.h>
696 (os_error): New function.
697 (default_callback): Add os_error.
698
699 Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
700
701 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
702 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
703 specific.
704 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
705
706 Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
707
708 * run.c: #include ../common/config.h, tconfig.h.
709 (myname): New static global.
710 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
711 Only process -c ifdef SIM_HAVE_SIMCACHE.
712 Only process -p/-s ifdef SIM_HAVE_PROFILE.
713 Parse program name from argv[0] and use in error messages.
714 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
715 Add support for incomplete h8/300 termination indicators.
716 (usage): Make more verbose.
717 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
718 * Makefile.in,Make-common.in,callback.c: New files.
719 * nltvals.def,gentmap.c,gentvals.sh: New files.
720
721 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
722
723 * run.c: Include stdarg.h if __STDC__.
724
725 Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
726
727 * run.c (main): Don't print out anything if the signal
728 number is zero (ie no signal).
729
730 Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
731
732 * run.c (main): Print out if the program raised a signal.
733
734 Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
735
736 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
737 (main): Ditto.
738
739 Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
740
741 * run.c (main): Explicitly cast malloc() parameter.
742
743 Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
744
745 * run.c (sim_bfd): New global to hold the bfd pointer for the
746 executable.
747 (main): Initialize sim_bfd.
748
749 Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
750
751 * run.c (main): Use new bfd_big_endian macro.
752
753 Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
754
755 * run.c (main): Removed SH specific comments, so source is
756 generic. Also updated to only load relevant sections. Moved
757 sim_open() to after callback attach (to match GDB).
758
759 * run.1: Removed SH specific comments.
760
761 Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
762
763 * run.c (main): Always return sigrc at end.
764
765 Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
766
767 * run.c (main): Print error diagnostic and exit if bfd_openr() or
768 bfd_check_format() fails.
769
770 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
771
772 * run.c, run.1: From sh directory.
773
774