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