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