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