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