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