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