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