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