* cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
[deliverable/binutils-gdb.git] / sim / common / ChangeLog
CommitLineData
61b62559
DE
1Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com>
2
3 * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
4 (SEM_INSN): New macro.
5
37379a25
AC
6Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
7
8 * sim-run.c (sim_engine_run): Assume IMEM is 32 bit.
9
a97f304b
AC
10Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
11
12 * configure: Regenerated to track ../common/aclocal.m4 changes.
13
14Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
15
16 * sim-types.h (fp_word): New type, define according to
17 WITH_TARGET_FLOATING_POINT_BITSIZE.
18
19 * aclocal.m4 (default_sim_floating_point_bitsize): Add
20 configuration of size of floating point registers.
21
01737f42
AC
22Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
23
24 * sim-profile.c (profile_print): Only print CPU <N> if other
25 output is going to appear.
26
412c4e94
AC
27Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
28
29 * configure: Regenerated to track ../common/aclocal.m4 changes.
30
31Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
32
33 * sim-types.h (address_word): Typedef according to
34 WITH_TARGET_ADDRESS_BITSIZE.
35 (signed_cell, unsigned_cell, natural_cell): Ditto using
36 WITH_TARGET_CELL_BITSIZE.
37
38 * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define.
39 (WITH_TARGET_CELL_BITSIZE): Define.
40 (WITH_HOST_WORD_BITSIZE): Delete.
41
42 * sim-config.c (print_sim_config): Update.
43
44 * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for
45 configuration of address and OpenFirmware cell sizes.
46
9ec6741b
AC
47Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
48
49 * sim-engine.h (sim_engine_run): Add argument nr_cpus.
50 * sim-run.c (sim_engine_run): Update.
51
52 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of
53 CPU_CIA.
54 * sim-run.c (sim_engine_run): Ditto.
55
56 * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine.
57 (sim_resume): Pass nr_cpus to sim_engine_run.
58
59 * sim-engine.h (struct _sim_engine): Add member nr_cpus.
60
61 * sim-engine.c (sim_engine_init): Hardwire nr_cpus to
62 MAX_NR_PROCESSORS.
63 (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function
64
7caebec6
DE
65Thu Jan 29 12:13:01 1998 Doug Evans <devans@canuck.cygnus.com>
66
67 * cgen.sh: Portably read parms past $9.
68
ed6f1471
DE
69Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com>
70
71 * Make-common.in (stamp-tvals): New rule.
72 (targ-vals.h,targ-map.c): Depend on it.
73 (clean): Remove stamp-tvals.
74
e9ae18ef
MM
75Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com>
76
77 * sim-utils.c (sim_state_alloc): #if 0 variable that is only used
78 in code also #if 0'ed.
79
462cfbc4
DE
80Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
81
82 * configure: Regenerated to track ../common/aclocal.m4 changes.
83 * aclocal.m4: Recognize --enable-maintainer-mode.
84
189e2694
DE
85Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
86
36de6f40 87start-sanitize-cygnus
189e2694
DE
88 * Make-common.in (cgen-{arch,cpu,decode}): New targets.
89 * cgen.sh: New file.
36de6f40 90end-sanitize-cygnus
189e2694 91 * cgen-scache.h: Deleted.
4a44afd5 92 * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.
462cfbc4 93 (CGEN_CPU_SCM): Add sim-model.scm.
189e2694
DE
94 * cgen-scache.c: Only compile contents if WITH_SCACHE.
95 (scache_init): Use runtime computed size of SCACHE.
96 (scache_flush): Likewise.
97 * cgen-mem.h (GETIMEMU[QHSD]I): Declare.
98 ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare.
99 * cgen-sim.h: Scache support moved here.
100 (PC): Redo definition.
101 (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls.
102 (DECODE): Add parallel execution support.
103 Only include semantic label members if using switch.
104 (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support.
105 (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf.
106 (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF,
107 SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here
108 from cgen-types.h.
109 (engine_{stop,run,resume,halt,signal}): Delete decls.
110 * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete.
111 (argbuf,scache): Delete forward decls.
112 (STATE): Delete decl.
113 * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h.
114 Include cgen-mem.h, cgen-ops.h.
115 (engine_halt,engine_signal): Delete.
116 ({ex,exc,sem,semc}_illegal): Delete.
117 (sim_disassemble_insn): Result of extract fn is in bits.
118 * genmloop.sh: Rewrite.
119
120 * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing
121 line numbers.
122
123 * sim-base.h (sim_state_base): Delete member `model'.
124 (sim_cpu_base): Add member `model'.
125 * sim-model.h (IMP_PROPERTIES): New type.
126 (MACH): New members imp_props, models.
127 (models): Delete decl.
128 * sim-model.c (set_model): Update.
129 * sim-profile.c (profile_print_model): Update.
130
131 * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.
132
ef13d3e3
NC
133Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com>
134
135 * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
136 CGEN_INSN_SYNTAX().
137
138Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
139
140 * configure: Regenerated to track ../common/aclocal.m4 changes.
141 * config.in: Ditto.
142
143Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
144
145 * aclocal.m4 (AR): Check for sigaction.
146
6e51f990
DE
147Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
148
9bb68e20
DE
149 * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
150
151 * sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
152 * sim-config.c (sim_config): Replace WITH_DEVICES with
153 WITH_TREE_PROPERTIES.
154
6e51f990
DE
155 * configure: Regenerated to track ../common/aclocal.m4 changes.
156
22469a10
DE
157Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com>
158
159 * Make-common.in (SIM_ENVIRONMENT): New variable.
160 (CONFIG_CFLAGS): Add it.
161 * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
162 --enable-sim-environment option.
163 * configure: Regenerated.
164 * sim-config.h (environment support): Rewrite.
165 * sim-config.c (current_environment): Define as enum, unconditionally.
166 (current_alignment): Define unconditionally.
167 (config_environment_to_a): Update.
168 (config_alignment_to_a): Fix type of argument. Define unconditionally.
169 (sim_config): Handle environment and alignment determination
170 unconditionally. Delete sanity checks of current_environment,
171 unnecessary.
172 (print_sim_config): Update.
173 * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
174 (standard_options): Add --environment.
175 (standard_option_handler): Likewise.
176
177Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
178
179 * sim-alu.h: Add notes on carry vs borrow for subtraction.
180 (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing.
181 (ALU{,8,16,32,64}ADDC): Define - add carrying.
182 (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing.
183 (ALU{,8,16,32,64}SUBB): Define - subtract borrowing.
184 (ALU{,8,16,32,64}SUBC): Define - tract carrying.
185 (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single
186 argument ADD_CA macro with two argument ADDC_C - add carrying with
187 carry in.
188 (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single
189 argument SUB_CA macro with two argument SUBC_X - subtract
190 carrying, extended.
191 (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with
192 borrow-in.
193 (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define.
194
97b25f99
MM
195Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com>
196
197 * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used.
198 * sim-io.h (sim_io_syscalls): Delete.
199
465db791
MM
200Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com>
201
f2907f74
MM
202 * syscall.c (cb_syscall): Add missing else, so write to stdout
203 isn't doubled.
204
465db791
MM
205 * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import
206 the carry bit from the CPU's psw.
207
1294727e
DE
208Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com>
209
ef13d3e3 210 * gennltvals.sh: Redo syscall support.
1294727e
DE
211 * nltvals.def: Regenerated.
212
ac070413
MM
213Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com>
214
215 * syscall.c (cb_syscall): If writing to stdout or stderr, flush
216 the stream immediately.
217
3885125c
AC
218Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
219
220 * sim-io.c (sim_io_getstring): Delete unused len2.
221 (sim_io_syscalls): Ditto for sys_errno.
222
fc63d75a
DE
223Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
224
4123aca8 225 * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
fc63d75a 226
6be03509
DE
227 * Make-common.in (run.o): Depend on remote-sim.h.
228 (nrun.o,sim-hload.o,sim-hrw.o): Likewise.
229 (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
230
69628a60
MM
231Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
232
233 * sim-io.c (sim_io_syscalls): Disable lseek.
234
c76e6683
DE
235Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com>
236
1294727e 237start-sanitize-d30v
c76e6683 238 * gennltvals.sh: Generate syscall values for d30v.
1294727e
DE
239end-sanitize-d30v
240 * gennltvals.sh: Use libgloss/syscall.h for sparc.
c76e6683
DE
241 * nltvals.def: Regenerate.
242
f3367306
DE
243 * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
244 (os_fstat): Likewise. Validate fd argument.
245 (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL,
246 just compute target stat struct length.
247 * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
248 (ENOSYS,ENAMETOOLONG): Provide definitions if missing.
249 (get_string): Return host errno values so they can be properly
250 translated later.
251 (cb_syscall): Likewise.
252 (cb_syscall, cases open,unlink): Use get_path instead of get_string.
253 (cb_syscall, case read): Use read_stdin for file descriptor 0.
254 (cb_syscall, case write): Use write_stderr for file descriptor 2.
255 (cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
256 (get_path): New function.
257
3445e1ce
MM
258Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com>
259
260 * sim-io.c (sim_io_syscalls): New function to provide system call
261 emulation. Provide exit, open, close, read, write, lseek, and
262 unlink.
263 (sim_io_getstring): New function to return a string from a
264 simulated memory location.
265
266 * sim-io.h (sim_io_syscalls): Add declaration.
267
f2ea8913
DE
268Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com>
269
270 * sim-core.c (sim_core_signal): Fix spelling error in message.
271
272 * sim-hrw.c (sim_read): Use read map, not write map.
273
f375dd7d
DE
274 * Make-common.in (all): Add .gdbinit.
275 * gdbinit.in: Add dump command.
276
4b5545c9
DE
277 * sim-model.c (model_options): Use '\0' for `shortopt'.
278
091521c4
DE
279 * sim-trace.c (trace_option_handler): Set state trace file
280 for --trace-file in addition to cpu's values.
281 (trace_vprintf): If cpu == NULL, try state's trace file.
c76e6683 282 (trace_options): Reorganize table, reword some descriptions.
8f3cfc0e 283
4ba8d09f
AC
284Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
285
286 * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h:
287 New functions.
288
aaa11abe
AC
289Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
290
4ba8d09f 291 * sim-reason.c (sim_stop_reason): For sim_signalled, return the
aaa11abe
AC
292 signal untranslated, document problem with this.
293
294 * nrun.c (main): Check for a prog name of `*step'. If present,
295 step the simulator instead of allowing it to run free.
296
297 * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts.
298
299 * Make-common.in (sim_main_headers): Add sim-signal.h.
300
a1cf18dc
AC
301Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
302
303 * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE.
304
232156de
AC
305Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
306
307 * sim-signal.h: Start simulator signals at 64 so that host signal
308 numbers can be detected and reported.
309
310 * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal.
311
398057b7
DE
312Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com>
313
ac1d2660
DE
314 * callback.c (cb_host_to_target_stat): Fix return values.
315
998d2c82
DE
316 * cgen-sim.h (enum_signal_type): Delete.
317 (engine_signal): Update prototype.
318 * cgen-utils.c: Don't include <signal.h>.
319 (sim_signal_to_host): Delete, lives in sim-signal.c now.
320 (engine_signal): Update.
321
398057b7
DE
322 * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
323 (sim_state_free): Call SIM_STATE_FREE if defined.
324
325 * sim-module.c (sim_module_install): Don't leave any modules
326 installed if one fails to install.
327
eb5f3fcd
MM
328Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com>
329
e163bbbf
MM
330 * sim-options.c: Don't include ../libiberty/alloca-conf.h any
331 more, since alloca is not used in this file.
332
eb5f3fcd
MM
333 * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to
334 correctly set the carry and overflow bits for those types.
335 (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along
336 with carry, so carry is correct after doing both adds.
337 (ALU*): Space out '\' to make it easier to read.
338
e5ce1670
DE
339Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
340
a4b44a2b
DE
341 * sim-core.c (sim_core_signal): Use sim_stopped instead of
342 sim_signalled.
343
1ebc7e0e
DE
344 * sim-signal.c, sim-signal.h: New files.
345 * Make-common.in (sim-signal.o): Add rule for.
346 (SIM_NEW_COMMON_OBJS): Add sim-signal.o.
347 * sim-abort.c: Don't include <signal.h>.
348 * sim-basics.h: #include "sim-signal.h".
349 * sim-break.c: Don't include <signal.h>.
350 (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
351 * sim-core.c: Don't include <signal.h>.
352 (SIGBUS): Delete definition.
353 (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
354 * sim-engine.c: Don't include <signal.h>.
355 (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
356 * sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
357 * sim-resume.c: Don't include <signal.h>.
358 (SIGTRAP): Delete definition.
359 (has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
360 * sim-stop.c: Don't include <signal.h>.
361 (control_c_simulation): Replace SIGINT with SIM_SIGINT.
362 * sim-watch.c: Don't include <signal.h>.
363 (handle_watchpoint): Replace SIGINT with SIM_SIGINT.
364
e5ce1670
DE
365 * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
366
367 * sim-base.h (CIA_ADDR): Provide default definition.
340d8e20 368 * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
13c9499d 369 * sim-break.c (sim_handle_breakpoint): Likewise.
e5ce1670 370
f7abc1ca
DE
371Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
372
38377b3a
DE
373 * Make-common.in (srccom): New variable.
374
f7abc1ca
DE
375 * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
376 (LIB_OBJS): Add syscall.o.
377 (gentmap): Pass $(NL_TARGET) to $(CC).
378 (syscall.o): Add rule for.
379 (sim_main_headers): Add $(SIM_EXTRA_DEPS).
380 (sim-bits.o): Depend on $(sim-n-bits_h).
381 (sim-load.o): Depend on callback.h.
382
383 * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
384 cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
385 * cgen-mem.h, cgen-ops.h: New files.
386
387 * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
388
389 * Makefile.in (nltvals.def): Depend on gennltvals.sh.
390 Rewrite build rule.
391 * callback.c: #include string.h or strings.h.
392 #include sys/types.h and sys/stat.h.
393 (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
f7abc1ca
DE
394 (os_get_errno,os_open): Update.
395 (os_stat,os_fstat): New functions.
396 (os_init): Initialize syscall_map, errno_map, open_map.
397 (default_callback): Add entries for os_stat, os_fstat, syscall_map,
398 errno_map, open_map, signal_map, stat_map.
399 (cb_read_target_syscall_maps): New function.
400 (cb_target_to_host_syscall): New function.
401 (cb_host_to_target_errno): Renamed from host_to_target_errno.
402 (cb_target_to_host_open): Renamed from target_to_host_open.
403 (store): New function.
404 (cb_host_to_target_stat): New function.
405 * syscall.c: New file.
406 * gentmap.c (sys_tdefs): New global.
407 (gen_targ_vals_h): Output target syscall numbers.
408 (gen_targ_map_c): Update. Output target syscall translation map.
409 * gentvals.sh: New first argument `target'. Preface table with
410 #ifdef NL_TARGET_$target if non-null target passed.
411 * gennltvals.sh: New file.
412 * nltvals.def: Regenerated.
413
414Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
415
416 * sim-n-core.h (sim_core_read_unaligned_N): Return static
417 sim_core_dummy_M.
418 (sim_core_dummy_M): Declare.
419
420Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
421
422 * sim-core.c (sim_core_signal): Print the address of the
423 instruction.
424
9e8a900a
DE
425Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com>
426
427 * sim-base.h (sim_state_base): Move `magic' to end of struct.
428
429 * sim-base.h (sim_state_base): Add member trace_data.
430 (STATE_TRACE_DATA): New macro.
431 * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
432 ({WITH_,}TRACE_DEBUG_P): New macros.
433 (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
434 (_sim_cpu): Delete forward reference.
435 (debug_printf): Update.
436 * sim-trace.c (OPTION_TRACE_DEBUG): Define.
437 (trace_options): Add --trace-debug.
438 (set_trace_options): Handle it.
439 (trace_option_handler): Likewise.
440 (trace_install): Init state trace_data struct.
441 (trace_uninstall): Close state trace file.
442 * sim-events.c (ETRACE): Only print source file and line number if
443 --trace-debug.
444 * sim-n-core.h (sim_core_trace_M): Likewise.
445
446 * sim-core.c (sim_core_signal): Add missing "\n" in message.
447
c7e3f734
FL
4481997-11-13 Felix Lee <flee@cygnus.com>
449
450 * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
451 initializer.
452 * sim-types.h (unsigned128,signed128): fix typo for MSVC.
453
15f5035c
DE
454Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com>
455
456 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
457
5dcf955d
DE
458 * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
459 built this way.
460 (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
461 (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
462 source tree.
463
f445a890
AC
464Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
465
466 * sim-events.c (sim_events_process): Re-compute the time -
467 update_time_from_event - as each event is processed. Reverses
468 previous change.
469
8cb060b6
AC
470Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
471
472 * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
473
549bf950
AC
474Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
475
476 * sim-events.c (sim_events_process): Delete redundant call to
477 update_time_from_event.
478 (sim_events_slip): Always decrement time_from_event.
479 (sim_events_tick, sim_events_deschedule, update_time_from_event):
480 Delete assertion that time_from_event >=0 when work in queue, no
481 longer applicable.
482
864519b9
AC
483Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
484
485 * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
486 (standard_option_handler): Update.
487
488 * sim-options.h: Clarify documentation.
489 (OPTION_LONG_ONLY_P): Delete definition.
490 (OPTION_VALID_P): Define.
491
492 * sim-options.c (sim_print_help): Allow short only options.
493 (sim_parse_args): Ditto.
494 (sim_args_command): Skip short only options.
495 (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
496 separate entries for short and long options in the HANDLERS and
497 ORIG_VAL tables.
498 (sim_parse_args): Disable argument permutation.
499
63be8feb
AC
500Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
501
502 * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):
503 Add argument M, size of data type.
504 (sim_core_read_misaligned_3, sim_core_write_misaligned_3):
505 Declare, ditto for 5, 6 & 7 byte transfers.
506 (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define
507 as aligned variant.
508
509 * sim-n-core.h (sim_core_trace_M): Rename from
510 sim_core_trace_N. Add nr_bytes argument. Replace transfer argument
511 with transfer type. Print transfer direction. Handle 1 and 2 byte
512 transfers.
513 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace
514 unaligned accesses.
515 (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N.
516 Update all functions.
517
518 * sim-core.c: Generate functions starting with 16 not 1.
519 (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and
520 all 5, 6 & 7 byte transfers.
521
522 * sim-n-core.h (sim_core_read_misaligned_N,
523 sim_core_write_misaligned_N): Implement.
524
a26ecda4
AC
525Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
526
527 * sim-endian.h (U16_8): Implement
528
529 * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions
530
531 * sim-endian.h (VL8_16, VH8_16): Implement.
532
533 * sim-memopt.c (memory_option_handler): Typecast 64bit value to
534 long in printf.
535 (memory_option_handler): Only zalloc modulo bytes when non-zero.
536 (memory_option_handler): Skip comma in alias address list
537
fcc86d82
AC
538Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
539
540 * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and
541 space params.
542 (parse_size, parse_addr): New functions
543 (memory_option_handler, memory_options): Parse address & size
544 using new functions. Pass level, space, modulo to do_memopt_add &
545 do_memopt_del.
546
547 * sim-memopt.h (struct _sim_memopt): Add level & space fields.
548
549 * sim-core.h (sim_core_arrach, sim_core_detach): Replace
550 `attach_type attach' argument with `unsigned level' argument.
551 Document.
552
553 * sim-core.c (new_sim_core_mapping, sim_core_map_attach,
554 sim_core_attach): Replace argument attach with level. Update
555 verification of arguments.
556 (sim_core_map_detach, sim_core_detach): Replace argument attach
557 with level.
558
559 * sim-basics.h (enum _attach_type): Delete.
560
d048b52d
DE
561Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com>
562
563 * sim-core.h (sim_core_write_8): Define.
564
a86809d3
AC
565Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
566
01b9cd49
AC
567 * sim-bits.h: Document ROTn macro.
568
89d09738
AC
569 * sim-endian.h (H2T): Handle 16 byte variables.
570
571 * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an
572 error.
573
a86809d3
AC
574 * sim-core.c: Do not generate sim_core_*_word.
575
576 * sim-n-core.h (sim_core_trace_N): Add line_nr argument.
577 (sim_core_write_aligned_N, sim_core_read_aligned_N): Update.
578
579 * sim-core.h (sim_core_read_unaligned_word,
580 sim_core_read_aligned_word, sim_core_read_word,
581 sim_core_write_unaligned_word, sim_core_write_aligned_word,
582 sim_core_write_word): Change to macros that map onto sim_core_*_N.
583
374b95c1
DE
584Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com>
585
586 * sim-n-endian.h: Add TAGS entrys for 16 byte versions.
587
c3e3e4ad
DE
588 * sim-endian.h: Disable 16 byte support.
589
f45dd42b
AC
590Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
591
592 * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code.
593
594 * sim-n-core.h (sim_core_trace_N): New function.
595 (sim_core_read_aligned_N, sim_core_write_aligned_N): Use,
596 (sim_core_read_unaligned_N): Do not retyrn bogus value wden error.
597
598 * sim-endian.h: Add 128 bit variant.
599
600 * sim-core.h, sim-core.c: Add 128 bit variant.
601
602 * sim-types.h: Add signed128 and unsigned128 types using a struct.
603
4a203fba
AC
604Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
605
606 * sim-events.c (sim_events_process): Clear events->work_pending.
607 (sim_events_tickn, sim_events_tick): Accumulate, instead of
608 setting, nr_ticks_to_process.
609 (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero
610 when the event queue isn't next.
611
612 * sim-events.h, sim-events.c (sim_events_slip): New function.
613
9e03a68f
AC
614Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
615
616 * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load.
617
618 * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load
619 arguments.
620
897a1d78
DE
621Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com>
622
623 * nrun.c (main): Remove useless test of name != NULL.
2328ef1c 624 Exit if bfd_openr fails. Call bfd_check_format after bfd_openr.
897a1d78 625
b7432f0f
AC
626Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
627
628 * sim-fpu.c (EXPMAX): Type is unsigned.
629 (MIN_INT, MAX_INT): Type is signed64.
630 (i2fpu): Type of val is signed64.
631
e2f8ffb7
AC
632Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
633
634 * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as
635 a bucket size of zero.
636
637 * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY,
638 OPTION_PROFILE_PC): Define.
639 (profile_option_handler): Add support for --profile-pc and
640 --profile-pc-granularity options.
641 (profile_pc_init): When possible, compute nr buckets from bucket
642 size.
643
644 * sim-profile.c (profile_pc_init): Align the profile-pc end
645 address with the profile-pc bucket size.
646
647 * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to
648 something less ambiguous.
649 (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE.
650
651 * sim-profile.c (profile_pc_cleanup): New function. Move
652 profile_pc_uninstall code to here.
653 (profile_pc_uninstall): Call.
654 (profile_pc_init): Call.
655
293a0876
AC
656Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
657
e2f8ffb7
AC
658 * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out
659 file using BSD gprof format.
660
293a0876
AC
661 * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type
662 unsigned_word.
663 (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32,
664 MSBIT64): Force result to unsignedN.
665
0a0ecb21
AC
666Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
667
668 * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening
669 brace from macro.
670 (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define.
671 (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic.
672 (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic.
673 (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic.
674
fd89abc2
AC
675Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
676
677 * sim-core.h (struct _sim_core_mapping): Change free_buffer to
678 type void*.
679
680 * sim-core.c (sim_core_uninstall, new_sim_core_mapping,
681 sim_core_map_attach, sim_core_map_detach): Change free_buffer to
682 type void*.
683 (sim_core_attach): Rename buffer_freed to free_buffer, type
684 void*. Ensure that allocated buffer is alligned according to
685 region's address.
686
7456a10d
AC
687Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
688
689 * sim-alu.h (ALU64_HAD_OVERFLOW): Define.
690 (ALU64_SUB): Define.
691
692 * Make-common.in (all): Build SIM_EXTRA_ALL first.
693 (.gdbinit): Remove dependencies, generate once per build.
694
1b217de0
AC
695Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
696
697 * sim-n-core.h (sim_core_read_aligned_N,
698 sim_core_write_aligned_N): Make xaddr param type address_word not
699 unsigned_word.
700
701Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
702
703 * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an
704 unpacked floating point struct. Pass sim_fpu object by reference.
705 Add preliminary support for rounding modes.
706
63fe2cc7
AC
707Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
708
709 * configure: Regenerated to track ../common/aclocal.m4 changes.
710
711Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
712
713 * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not
714 WITH_TARGET_BITSIZE.
715
716Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com>
717
718 * sim-profile.c (profile_print_core): label needs empty statement.
719
720Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
721
722 * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
723 and zfree instead of xmalloc and free. Prevents warnings.
724
af51b8d5
AC
725Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
726
727 * configure: Regenerated to track ../common/aclocal.m4 changes.
728
729Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
730
731 * Make-common.in (SIM_BITSIZE): Assign from configured value.
732 (CONFIG_CFLAGS): Add SIM_BITSIZE.
733
734 * aclocal.m4 (--enable-sim-bitsize): Developer option for
735 controling the bitsize/msb of the target.
736
b9d580a4
SG
737Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
738
739 * Make-common.in: New files sim-break.c, sim-break.h.
740 * sim-base.h: Add point to breakpoint list to sim_state_base.
741 * sim-break.c sim-break.h: New modules that implement intrinsic
742 breakpoint support.
743 * sim-module.c: Add breakpoint module.
744
34d07b78
FL
745Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com>
746
747 * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
748 an hour.
749 * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
750 if (0) { 1 % 0; }
751 * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
752 (SIGBUS) define for Windows.
753 * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
754 * sim-resume.c: define SIGTRAP for windows.
755 * sim-xcat.h: use token pasting if ALMOST_STDC.
756
4141b1c6
AC
757Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
758
759 * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign
760 configured values.
761 (CONFIG_CFLAGS): Add same.
762
9f4fd823
FL
763Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com>
764
765 * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
766 (SIGNED32): use ##i32.
767
92f91d1f
AC
768Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
769
770 * configure: Regenerated to track ../common/aclocal.m4 changes.
771
772Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
773
774 * aclocal.m4 (sim-endian): Simplify logic determining [default]
775 endian of target.
776
777 * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
778 SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT,
779 SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP,
780 SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values.
781 (CONFIG_CFLAGS): Add same.
782
783 * aclocal.m4: Perform AC_SUBST on optional options.
784
4ca7d6d2
AC
785Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
786
8d332f9c
AC
787 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment.
788
789 * sim-options.c (standard_option_handler): Typo in warning message.
790
4ca7d6d2
AC
791 * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL.
792
793 * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any
794 insn count. Make count conditional on there being a valid
795 INSN_NAME.
796 (profile_pc_init): Make default PC profile frequency an arbitrary
797 256.
798
799 * sim-base.h: Ditto.
800
801 * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when
802 SIM_HAVE_MODEL.
803
804 * sim-model.h (struct MACH): Depreciate, to be replaced by bfd
805 archure struct.
806
794e9ac9
AC
807Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
808
809 * configure: Regenerated to track ../common/aclocal.m4 changes.
810
811Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
812
813 * aclocal.m4 (sim_alignment): Simplify logic for selecting the
814 configured alignment.
815
b45caf05
AC
816Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
817
818 * configure: Regenerated to track ../common/aclocal.m4 changes.
819
820Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
821
822 * sim-config.c (sim_config): Check for default alignment.
823
824 * sim-options.c (standard_option_handler): Add alignment option.
825
826 * aclocal.m4 (sim_alignment): Allow configuration of hardwired and
827 default alignment requirements on memory accesses.
828
829Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com)
830
831 * sim-load.c (sim_load_file): Return failure if the executable
832 had no loadable sections.
833
dfa5c0ca
AC
834Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
835
175c6fd3
AC
836 * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
837 trace output.
838
839 * sim-core.c (sim_core_signal): When bad access halt simulator
840 SIGSEGV / SIGBUS instead of aborting.
841 (signal.h): Include.
842
843 * sim-watch.c (sim_watchpoint_install): Handler for watchpoint
844 options was missing.
845
dfa5c0ca
AC
846 * sim-bits.h (MOVED): Define
847
b52e58c2
AC
848Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
849
850 * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of
851 BIT.
852
853 * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value.
854
855 * sim-bits.c: Add 8 bit versions of bit macros.
856
857 * sim-bits.h: Ditto.
858
aa5e6a5a
AC
859Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
860
861 * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT.
862 (LSINSERTED, MSINSERTED): Ditto for INSERTED.
863
864 * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn.
865 (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn.
866
867 * sim-bits.h (SEXT*): Define as MSEXT/LSEXT.
868 (INSERTED*): Ditto for LSINSERTED/MSINSERTED.
869
08547b1f
AC
870Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
871
872 * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument.
873 configure.in: Output to cconfig.h instead of config.h.
874
875 * configure: Regenerated to track ../common/aclocal.m4 changes.
876
877Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
878
879 * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from
880 BFD if known.
881
4bdab45a
AC
882Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
883
884 * callback.c (os_write): divert stdout and stderr to their
885 respective hooks.
886
93e7a1b5
AC
887Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
888
889 * sim-profile.c (profile_print_speed): Call
890 sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment.
891
892 * sim-events.c (sim_events_elapsed_time): New function return nr
893 host MS consumed by the simulator.
894 (sim_watch_valid): Use.
895
896 * sim-module.c (modules): Install sim_events very very early.
897
898 * sim-profile.c (profile_print): Call profile_print_pc.
899 (print_bar):
900 (profile_pc_init): New function, set up processor for PC
901 profiling.
902 (profile_print_pc): New function, print a PC profile.
903 (profile_pc_event): New function, sample PC.
904
905 * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START,
906 PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to
907 profile struct.
908
909 * sim-options.c (sim_print_help): Pacify GCC.
910
911 * sim-n-core.h (sim_core_read_aligned_N,
912 sim_core_write_aligned_N): Add un-conditional profile call.
913 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add
914 profile call when aligned read/write isn't used.
915
916 * sim-base.h: Include sim-profile, sim-model after sim-core &
917 sim-events allow sim-core to define useful values.
918
919 * sim-profile.c (OPTION_PROFILE_CORE): Define.
920 (profile_option_handler, profile_options): Add support for
921 --profile-core option.
922 (print_bar): Include when core profiling.
923 (profile_print_core): New function, print core profile.
924
925 * sim-config.c (print_sim_config): Print profile status.
926
927 * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core,
928 WITH_PROFILE_PC_P): Define.
929 (PROFILE_CORE_COUNT): Count each core-map/size separatly.
930 (PROFILE_COUNT_CORE): Define.
931
cad7297e
AC
932Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
933
934 * sim-watch.c (handle_watchpoint): Pass a char** index into the
935 interrupt_names array as the data.
936 (sim-watch.h): Document.
937
938Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
939
940 * sim-options.c (sim_print_help): When the doc string is to long
941 word wrap it.
942
943 * sim-watch.c (sim_watchpoint_install): Use option.doc_name so
944 that only the first few the watch options are listed. Generate
945 meanginful usage messages.
946
947 * sim-options.h (struct OPTION): Clarify use of doc_name field
948
d0b59aa5
AC
949Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
950
951 * sim-options.c (OPTION_ARCHITECTURE_INFO): New option.
952 (standard_option_handler): Handle --architecture-info.
953
31dda65a
FL
954Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
955
956 * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
957 illegal zero-sized array.
958 * sim-core.c (sim_core_xor_read_buffer): same.
959
7b4aeeba
DE
960Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
961
962 * nltvals.def: Regenerate.
963
75b3697d
AC
964Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
965
966 * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64.
967
968Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
969
970 * sim-bits.c (MASKED): Delete.
971 (EXTRACTED): Delete.
972 (LSEXTRACTED, MSEXTRACTED): New functions.
973
974 * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED.
975 (MSMASKEDn, LSMASKEDn): Add last argument.
976 (MSMASK*): Ditto.
977
978 * sim-bits.h (EXTEND8, EXTEND16): Define.
979 (EXTRACTED64): Define as 64 bit extract, not 32 bit.
980
981 * sim-run.c (sim_engine_run): Use CPU_CIA macro.
982
983 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at
984 current instruction address.
985
986 * sim-inline.h (*_ENGINE): Define.
987
30efae3a
AC
988Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
989
1bba340a
AC
990 * sim-core.c (sim_core_attach): Fix checks of modulo/mask.
991
992 * sim-watch.c (delete_watchpoint): Delete by ident and type.
993 (watch_option_handler): Call delete_watchpoint with ident or type.
994 (sim_watchpoint_install): Create interrupt specific watchpoint
995 commands on the fly.
996 (do_watchpoint_create): New function, create a watch point using
997 type/int-nr info encoded in the option nr.
998 (do_watchpoint_info): New function. List active watchpoints.
999
1000 * sim-watch.h: Change data structure to a list.
1001
1002 * sim-memopt.c (memory_option_handler): Require explicit "all"
1003 before deleting all memory regions.
1004
1b465b54
AC
1005 * sim-utils.c (sim_do_commandf): New function, printf version of
1006 sim_do_command.
1007
1008 * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32.
1009
30efae3a
AC
1010 * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume
1011 bit endianness.
1012 (SIGNED64, UNSIGNED64): Delete.
1013 (ALU64_ADD): Don't rely on bit endianness.
1014 (ALU64_BEGIN): Define.
1015
1016 * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions.
1017 (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED.
1018
1019 * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant
1020 suffix - u64, LL - to 64 bit constants.
1021
a34abff8
AC
1022Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
1023
6dbaff8f
AC
1024 * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER.
1025
1026 * sim-utils.h (NZALLOC): Define - zalloc * N.
1027
1028 * sim-hrw.c (sim_read, sim_write): New file. Provide generic
1029 implementation of read/write functions.
1030
1031 * Make-common.in (sim-hrw.o): New target.
1032
1033 * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add
1034 memory.
1035
1036 * sim-memopt.c (memory_option_handler): Implement memory-size
1037 command. Implement memory-alias command. Let memory-delete delete
1038 all memory regions.
1039 (add_memopt): New function. Add a memory region.
1040 (do_memopt_delete): New function. Delete a memory region.
1041
a34abff8
AC
1042 * sim-utils.c (sim_elapsed_time_get): Never return zero.
1043
1044 * sim-core.c (sim_core_detach): New function.
1045 (sim_core_map_detach): New function. Perform the actual detach.
1046 (sim_core_init): Move initialization code from here.
1047 (sim_core_install): To here.
1048 (sim_core_uninstall): And here.
1049
1050 * sim-module.c: Add memopt module.
1051
1052 * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to
1053 simulator base type.
1054
1055 * Make-common.in (sim_main_headers): Add sim-memopt.h
1056 (sim-memopt.o): New target.
1057
1058 * sim-core.c (sim_core_install): Add core_options to the option
1059 table.
1060
1061 * sim-watch.c (watch_options): Make --delete-watch a synonym for
1062 --watch-delete.
1063
1064 * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update
1065 comments.
1066
1067 * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type
1068 address_word, add mask member.
1069
1070 * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type
1071 address_word, allow for 64bit targets in 32bit host. Add modulo
1072 argument.
1073 (sim_core_map_attach): Ditto.
1074 (new_sim_core_mapping): Ditto.
1075 (sim_core_translate): Mask address when modulo memory.
1076
88d5f8e8
DE
1077Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com>
1078
600d8331
DE
1079 * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
1080
88d5f8e8
DE
1081 * gdbinit.in: New file.
1082 * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit.
1083 * Make-common.in (distclean): Delete .gdbinit.
1084 (.gdbinit): Add rule for.
1085 * configure: Regenerated to track ../common/aclocal.m4 changes.
1086
1087 * Make-common.in (cgen-run.o): Add rule for.
1088
fdd64f95
AC
1089Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
1090
1091 * sim-resume.c (sim_resume): Suspend/resume the simulator.
1092
1093 * sim-events.c (sim_watch_valid): Compute total elapsed time from
1094 both resumed and previous elapsed time.
1095 (sim_events_init): Set initial_wallclock and current_wallclock to
1096 zero.
1097 (sim_events_install): Install sim_events_suspend and
1098 sim_events_resume.
1099 (sim_events_watch_clock): Allow for suspended simulator when
1100 computing the time of the clock event.
1101
1102 * sim-events.h (struct _sim_event): Add resume_wallclock, rename
1103 initial_wallclock to elapsed_wallclock, set both to zero.
1104 (sim_events_init, sim_events_uninstall): Delete prototypes.
1105
1106 * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types.
1107
1108 * sim-module.c(sim_module_resume, sim_module_suspend): New
1109 functions.
1110
80c651f0
AC
1111Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
1112
1113 * sim-core.c (sim_core_map_attach): Clarify memory overlap error
1114 message.
1115
74db699d
DE
1116Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com>
1117
1118 * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
645ab3ec 1119 * Make-common.in (TAGS): Likewise.
74db699d
DE
1120 * sim-n-bits.h: Add TAGS comments for all functions.
1121 * sim-n-core.h: Likewise.
1122 * sim-n-endian.h: Likewise.
1123
4b2a6aed
AC
1124Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
1125
1126 * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and
1127 kind.
1128
1129 * sim-base.h (sim_state_alloc): Add callback and kind arguments.
1130
1131 * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default
1132 definition.
1133
f90b720b
AC
1134Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
1135
1136 * sim-fpu.c (DP_GARDMSB, ...): Make unsigned.
1137 (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL.
1138
1139Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
1140
1141 * sim-core.c (sim_core_map_attach): Cast attach enum to int.
1142 (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make
1143 nr_transfered and nr_this_transfer unsigned.
1144
1145 * sim-events.c (sim_events_tickn): N is signed, as limited to
1146 MAXINT.
1147
1148 * sim-n-endian.h (offset_N): Change size to unsigned.
1149
1150 * callback.c (os_poll_quit): Add prototypes for kbhit and getkey.
1151
1152Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
1153
1154 * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv.
1155
1156 * sim-options.c (sim_parse_args): Use dupargv.
1157
36db8e64
DE
1158Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
1159
1160 * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
1161
18c319ae
AC
1162Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1163
1164 * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
1165 base type.
1166
1167 * sim-options.c (standard_options): Add --architecture=MACHINE and
1168 --target=TARGET options.
1169 (OPTION_ARCHITECTURE, OPTION_TARGET): Define.
1170 (standard_option_handler): Handle architecture and target options.
1171 (bfd.h): Include.
1172
1173 * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to
1174 bfd_openr.
1175 (sim_analyze_program): Set prog_bfd architecture from
1176 STATE_ARCHITECTURE if known.
1177
88117054
AC
1178Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1179
1180 * configure: Regenerated to track ../common/aclocal.m4 changes.
1181 * config.in: Ditto.
1182
1183Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
1184
1185 * aclocal.m4 (enable-sim-warnings): Remove comment stating
1186 that option does not apply to certain files.
1187
d6fea803
AC
1188Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
1189
1190 * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,
1191 MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as
1192 offset from MSB/LSB.
1193
1194 * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro,
1195 access address of sub word quantity of a hosts 16, 32, 64 bit word
1196 type.
1197 (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values.
1198 (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values.
1199 (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument,
1200 return N*2 byte value with argument in Hi/Lo word. Renamed from
1201 V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8.
1202
1203 * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit.
1204 (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT
1205 so that bit offset is explicit.
1206
fafce69a
AC
1207Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
1208
1209 * sim-utils.c (sim_analyze_program): Add prog_name argument.
1210 Update STATE_PROG_BFD when needed with a dup'd copy of the
1211 program.
1212
1213 * sim-config.c (sim_config): Delete ABFD argument, use
1214 STATE_PROG_BFD directly.
1215
1216Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
1217
1218 * run.c (main): Pass the open ABFD to sim_create_inferior.
1219
1220 * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior
1221 and sim_load.
1222 (bfd.h): Include.
1223
1224 * sim-hload.c (sim_load): New file. Implement generic sim_load for
1225 hardware only simulator targets.
1226
1227 * Make-common.in (sim-hload.o): Add rule.
1228
d07dddd2
AC
1229Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
1230
1231 * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
1232 used by copyargv and freeargv.
1233
1234 * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
1235 STATE_PROG_ARGV, not just a pointer.
1236
247fccde
AC
1237Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1238
1239 * configure: Regenerated to track ../common/aclocal.m4 changes.
1240 * config.in: Ditto.
1241
1242Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1243
1244 * aclocal.m4 (sim-endian): Add second argument to
1245 SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is
1246 default endian when not hardwired.
1247
1248 * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
1249 else failes value for target byte order.
1250
1251 * sim-config.c (sim_config): Add abfd arguments. Set
1252 STATE_PROG_BFD accordingly. Determine prefered_target_byte_order
1253 from same.
1254 (sim_config): Return SIM_RC, don't abort.
1255 (bfd.h): Include.
1256
1257 * run.c (main): Update call to sim_open - add ABFD argument.
1258 * nrun.c (main): Add NULL ABFD argument.
1259
052d7984
DE
1260Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com>
1261
1262 * callback.c (os_poll_quit): Make static.
1263 Call sim_cb_eprintf, not p->eprintf.
1264 (sim_cb_printf, sim_cb_eprintf): New functions.
247fccde
AC
1265 * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
1266
1267 * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
1268 sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
1269 sim-utils.h. #include sim-utils.h.
1270 * sim-utils.h: Above decls moved here.
1271 (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
1272
1273 * sim-watch.c (action_watchpoint): Fix thinkos.
052d7984
DE
1274
1275Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com)
1276
1277 * sim-types.h: Fix defs of 64 bit data types for MSVC.
1278
e6609d8f
DE
1279Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com>
1280
1281 * sim-n-core.h (sim_core_write_unaligned_N): Add missing break
1282 to FORCED_ALIGNMENT case.
1283
84e8cd0f
AC
1284Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
1285
1286 * callback.c (target_to_host_open): Handle hosts with O_BINARY.
1287
1288Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com)
1289
1290 * Make-common.in (libsim.a): Fix typo.
1291
897f67b7
AC
1292Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
1293
1294 * nrun.c (main): Verify the structure returned before using it.
1295
896eab00
AC
1296Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1297
1298 * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
1299 default.
1300
1301 * sim-engine.c (sim_engine_install): New function. Install the
1302 engine init functions.
1303 (sim_engine_init): [Re]initialize the simulator engine.
1304
1305 * sim-module.c: Add sim_engine to list of modules that always
1306 install.
1307
56e7c849
AC
1308Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
1309
1310 * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
1311 to remove the old watchpoint, not delete_watchpoint.
1312 (watch_option_handler): Action the correct watchpoint, not just
1313 cycles.
1314
1315Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
1316
1317 * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
1318 both low and high word.
1319 (sim_core_write_aligned_N): Ditto.
1320
1321 * sim-trace.c (set_trace_options): Delete code explicitly setting
1322 core->trace.
1323
1324 * sim-options.c (sim_print_help): Call the list commands if not a
1325 standalone simulator.
1326 (sim_print_help): Advise that some options may not be applicable.
1327
1328 * sim-trace.c (set_trace_options): Assume core present.
1329
1330 * sim-events.c (sim_events_schedule_after_signal): Overflow signal
1331 buffer when full not almost full.
1332
2f2e6c5d
AC
1333Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1334
1a70e182
AC
1335 * sim-events.c (sim_events_process): Don't blat the event queue
1336 when processing watchpoints.
1337
1338 * sim-watch.h: Make arg unsigned long - stop sign extension.
1339
1340 * sim-events.c (sim_watch_valid): rewrite so debugable.
1341
1342 * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
1343
2f2e6c5d
AC
1344 * sim-watch.c (schedule_watchpoint): Add is_within option so that
1345 inequality test is possible.
1346 (handle_watchpoint): Re-pass is_within arg.
1347 (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
1348 0 to schedule_watchpoint's is_within arg.
1349 (sim_watchpoint_init): Re-pass is_within arg.
1350
1351 * sim-options.c (sim_print_help): Add is_command argument. Don't
1352 include -- prefix when called from the command line interpreter.
1353
1354 * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
1355
1356 * sim-events.c (sim_events_watch_sim): Add is_within argument,
1357 zero indicates that the test should be reversed.
1358 (sim_events_watch_core): Ditto.
1359 (WATCH_CORE): Compare range against is_within.
1360 (WATCH_SIM): Ditto.
1361
1362Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
1363
1364 * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
1365 sim_core_read_buffer. Check nr-bytes transfered.
1366
1367 * sim-core.h (sim_core_common): Define a new struct that contains
1368 the common data. to sd and cpu structures.
1369 * sim-core.c (sim_core_attach): Update.
1370 (sim_core_init): Update. Remember to copy initialized data to each
1371 cpu.
1372 (sim_core_find_mapping): Ditto.
1373
1374 * sim-core.c (sim_core_read_buffer): Add cpu argument.
1375 (sim_core_write_buffer): Ditto.
1376
1377 * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
1378 transfer use xor version of read buffer.
1379 (sim_core_write_unaligned_N): Ditto for write.
1380
1381 * sim-core.c (sim_core_xor_read_buffer): New function implement
1382 xor-endian data read breaking transfer up into xor-endian sized
1383 blocks.
1384 (sim_core_xor_write_buffer): Ditto for write.
1385 (reverse_n): Reverse order of arbitrary number of bytes in buffer
1386 - needed for xor-endian transfers.
1387
cd0d873d
AC
1388Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
1389
1390 * sim-inline.h: Review description.
1391
1392 * sim-core.h, sim-core.c: Reduce number of functions being inlined
1393 to just those involved in data transfers and configuration.
1394
1395 * sim-xcat.h (XSTRING): New macro, map macro definition onto
1396 string.
1397 * sim-n-core.h (sim_core_read_aligned_N): Use.
1398 (sim_core_read_unaligned_N): Ditto.
1399 (sim_core_read_unaligned_N): Ditto..
1400 (sim_core_write_unaligned_N): Ditto.
1401
1402 * sim-core.h: Add xor endian bitmap to main structure. *
1403
1404 sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
1405 endian.
1406 (sim_core_read_aligned_N): Ditto.
1407
1408 * sim-core.c (sim_core_set_xor_endian): New function.
1409 (sim_core_attach): Don't overwrite the per-cpu xor map when
1410 cloning the global core.
1411
8167e102
AC
1412Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
1413
1414 * sim-engine.h: Update below so that it is using an enumerated
1415 type.
1416
6e61ecfc
GRK
1417Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
1418
1419 * sim-engine.c (sim_engine_restart):
1420 * sim-resume.c (sim_resume): Change longjmp param/setjmp
1421 return value used for simulator restart from 0 to 2.
1422
50a2a691
AC
1423Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
1424
1425 * cgen-scache.c (scache_option_handler): Add is_command arg.
1426
1427 * sim-model.c (model_option_handler): Add is_command argument.
1428
1429 * sim-profile.c (profile_option_handler): Add is_command arg.
1430
1431 * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
1432 involved.
1433
1434 * sim-module.c (sim_module_add_init_fn): Call init fn in the same
1435 order that they are registered.
1436
1437 * sim-options.h (OPTION_HANDLER): Add argument to differentiate
1438 between option and command line processing.
1439
1440 * sim-options.c: Include stdlib.h, ctype.h.
1441
1442 * Make-common.in (sim-watch.o): Add rule.
1443 (sim_main_headers): Assume sim-assert.h included.
1444 (sim-*.o): Simplify make rule.
1445
1446 * sim-module.c: Add sim_watch_install to module list.
1447
1448Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
1449
1450 * sim-base.h (STATE_LOADED_P): New predicate. Set once everything
1451 has been loaded.
1452
1453 * sim-trace.c (trace_install): Check magic. Include sim-assert.h.
1454 * sim-events.c (sim_events_install): Ditto.
1455 * sim-core.c (sim_core_install): Ditto.
1456 * sim-model.c (model_install): Ditto.
1457 * sim-options.c (standard_install): Ditto.
1458 * sim-profile.c (profile_install): Ditto.
1459 * sim-reason.c (sim_stop_reason): Ditto.
1460 * sim-run.c (sim_engine_run): Ditto.
1461 * sim-utils.c (sim_analyze_program): Ditto.
1462
1463 * sim-module.c (modules): Make profile_install and trace_install
1464 optional.
1465
1466 * sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
1467
1468 * sim-options.c (standard_option_handler): Set the byte order.
1469
1470 * sim-events.c (sim_events_process): Allow multi tick processing.
1471 (sim_events_tickn): New function - multi cycle tick.
1472
1473 * sim-events.h (sim_events_tickn, sim_events_timewarp): Add
1474 prototypes. Under development.
1475 (sim_events): Replace processing with nr_ticks_to_process.
1476
1477Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1478
1479 * nrun.c (main): Pass callbacks to sim_open instead of using
1480 sim_set_callbacks.
1481
1482 * run.c (main): Ditto.
1483
f03b093c
AC
1484Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1485
fd76456b
AC
1486 * sim-events.c (sim_events_zalloc): Signal save memory allocator -
1487 stop tk interrupting malloc calls.
1488 (sim_events_zalloc): Converse.
1489
1490 * Make-common.in (sim_main_headers): Add sim-events.h.
1491
1492 * sim-events.c (sim_events_schedule_after_signal): Change return
1493 type to void - signal events are strictly internal.
1494 (sim_events_init): Allocate a finite buffer for signal events.
1495 (sim_events_schedule_after_signal): Enter signal events into the
1496 signal buffer.
1497
1498 * sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
1499 (sim_engine_restart): Ditto.
1500 (sim_engine_abort): Ditto.
1501 * sim-stop.c (sim_stop): Ditto.
1502 (control_c_simulation): Ditto.
1503 * sim-resume.c (sim_resume): Ditto.
1504 (has_stepped): Ditto.
1505 * sim-abort.c (sim_engine_abort): Ditto.
1506
f03b093c
AC
1507 * sim-basics.h (transfer_type): New type.
1508
1509 * sim-core.c (sim_core_signal): New function. Print core signal
1510 information.
1511 (sim_core_find_mapping): Add transfer argument.
1512
1513 * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
1514 SIM_CORE_SIGNAL if a recoverable abort.
1515 * sim-core.c (sim_core_find_mapping): Ditto.
1516
1517Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
1518
1519 * sim-core.c (sim_core_find_mapping): Replace calls to
1520 sim_io_error to more resiliant sim_engine_abort.
1521
1522 * sim-n-core.h (sim_core_read_unaligned_N): Ditto.
1523 (sim_core_write_unaligned_N): Ditto.
1524
1525Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1526
1527 * sim-module.c: Add sim_events_install to list.
1528
1529 * sim-events.c (sim_events_install, sim_events_uninstall): Clonse
1530 from sim_core_*.
1531 (sim_events_init): Now returns SIG_RC.
1532
1533 * sim-run.c: New file. Generic sim_engine_run.
1534 * sim-reason.c: New file. Generic sim_stop_reason.
1535 * sim-stop.c: New file. Generic sim_stop.
1536 * sim-resume.c: New file. Generic sim_resume.
1537
1538 * Make-common.in (sim-engine.o): Add rule.
1539 (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
1540
1541 * sim-engine.h, sim-engine.c: New file. Provide generic
1542 implementation of sim_engine_halt, sim_engine_error. et.al.
1543
1544 * sim-base.h (sim_state_base): Add member halt.
1545 (sim-engine.h): Include.
1546
1547 * sim-events.h (sim_event_handler): Always pass SIM_DESC to event
1548 handlers.
1549 * sim-events.c (sim_events_poll): Update event handler.
1550
1551Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
1552
1553 * sim-events.h, sim-events.c (sim_events_watch_clock): New
1554 function.
1555 (sim_events_watch_sim): New function.
1556 (sim_events_watch_core): New function.
1557 (sim_watch_valid): New function.
1558 (sim_events_preprocess): New function.
1559 (sim_events_process): Process the watchpoints as well as the timer
1560 queue.
1561 (sim_events_tick): Check WORK_PENDING instead of the hold queue.
1562 (sim_events_deschedule): Check all the queues when removing an
1563 event.
1564 (sim_events_init): Ditto for cleaning.
1565
1566Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1567
1568 * sim-fpu.c (is_ufpu_number): Comment out - currently unused.
1569
11ab132f
AC
1570Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
1571
1572 * callback.c (os_open): Type of arg flags is int.
1573
63aa80ff
MM
1574Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
1575
1576 * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
1577 just like normal numbers as per IEEE rules.
1578
248c1fb8
JL
1579Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
1580
1581 * callback.c (os_close): Mark the descriptor as being
1582 available if the close succeeded.
1583 (os_open): Pass 0644 as the mode of the file being created.
1584
d24f06ee
AC
1585Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
1586
07b4c0a6
AC
1587 * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
1588 float.
1589
1590 * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
1591 * sim-lnline.h: Update.
1592
1593 * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
d24f06ee 1594 conversion functions.
07b4c0a6 1595 (sim_fpu_to{32,64}[iu]): New fp2int functions.
d24f06ee
AC
1596
1597 * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
1598 compare functions. Replacing.
1599 (sim_fpu_cmp): This. Delete.
1600
c445af5a
AC
1601Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
1602
1603 * sim-core.c (sim_core_find_mapping): Call engine_error not
1604 sim_io_error when possible.
1605
1606Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
1607
1608 * sim-endian.h (V1_H2): Add macro's to insert a word into a
1609 high/low double word.
1610
1611 * sim-trace.h: Remove definition of attribute - defined in
1612 sim_basics.h.
1613
e05e76e8
AC
1614Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
1615
1616 * sim-options.h (struct OPTION): Add doc_opt as the documenting
1617 name of the option - or family of options.
1618
1619 * sim-options.c (sim_args_command): Match command `a-b c' with
1620 option `--a-b-c' from option table.
1621
43c53e07
AC
1622Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
1623
1624 * sim-options.c (sim_print_help): For optional arguments, wrap
1625 them in [].
1626
1627 * sim-trace.c (set_trace_options): New function, handle optional
1628 argument and multiple assignment.
1629 (trace_option_handler): Update.
1630
1631 * sim-trace.c (trace_option_handler): Trace branch and not fpu
1632 when branch tracing selected.
1633
381f42ef
AC
1634Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
1635
1636 * sim-trace.c (trace_one_insn): Make a va-args function.
1637
1638 * sim-trace.c (trace_vprintf): New function, va-arg version of
1639 trace_printf.
1640
ea4e4493
DE
1641Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
1642
1643 * sim-trace.c (trace_uninstall): Don't close a file twice.
bd3274c6 1644 * sim-profile.c (profile_uninstall): Likewise.
ea4e4493 1645
a7724171
MM
1646Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
1647
1648 * sim-trace.c (toplevel): Include bfd.h.
1649 (trace_options): Note that --trace-linenum also turns on
7b167b09 1650 --trace-insn. Add --trace-{branch,semantics}.
a7724171 1651 (trace_option_handler): If --trace-linenum, also turn on
7b167b09
MM
1652 --trace-insn. Add --trace-branch support. If --trace-semantics,
1653 turn on ALU, FPU, branch, and memory tracing.
a7724171
MM
1654 (trace_one_insn): New function to trace an instruction. Support
1655 --trace-linenum.
7b167b09 1656 (OPTION_TRACE_*): Use an enum, rather than lots of defines.
a7724171 1657
7b167b09
MM
1658 * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
1659 (MAX_TRACE_VALUES): Use 32, not 12 by default.
1660 (TRACE_branch): Add new mask.
1661 (TRACE_*_P): Define all possible trace_p macros.
a7724171
MM
1662 (trace_one_insn): Declare function.
1663
23b04e79
MM
1664Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
1665
1666 * sim-trace.h (__attribute__): Define as nothing if not GNU C or
1667 GNU C doesn't support __attributes__.
1668 ({trace,debug}_printf): Add attribute's so -Wformat can check the
1669 format strings.
1670
7a418800
AC
1671Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
1672
1673 * sim-config.h (FORCED_ALIGNMENT): New alignment option -
1674 addresses are masked forcing them to be correctly aligned.
1675 (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
1676 * sim-config.c (config_alignment_to_a): Update.
1677
1678 * sim-core.h (sim_cpu_core): New data type contains cpu specific
1679 core data.
1680 * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
1681 type.
1682 * sim-core.c (sim_core_attach): Add CPU argument. Ready for
1683 processor specific core maps.
1684 (sim_core_map_attach): Copy the core map data to each of the
1685 processor specific core data structures.
1686 * sim-core.c (sim_core_find_mapping): Update.
1687
1688 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
1689 (sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
1690 (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
1691 alternatives that handle unaligned addresses.
1692 (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
1693 with just CPU arg.
1694 * cgen-utils.c (sim_disassemble_insn): Update.
1695
3971886a
AC
1696Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
1697
1698 * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
1699 tracing.
1700
1701 * sim-fpu.h, sim-fpu.c: New files - prototype for generic target
1702 fpu support.
1703
1704 * sim-inline.h, sim-inline.c: Add support for SIM_FPU.
1705
1fe05280
AC
1706Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
1707
1708 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
1709 to map type.
1710
1711 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
1712 statement.
1713
1714Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
1715
1716 * cgen-trace.c: Prepend additional trace_printf argument.
1717
1718 * cgen-utils.c (sim_disassemble_insn): Add additional core
1719 arguments.
1720
1721Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
1722
1723 * nrun.c (main): Catch/report errorenous simulator states.
1724
1725 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
1726 * sim-trace.c: #include string.h/strings.h so that memset is
1727 defined.
1728 * sim-utils.c: Ditto.
1729 * sim-profile.c: Ditto. And stdlib.h.
1730 (print_bar): Only define when used by instruction or memory profiler.
1731
1732 * sim-options.c (standard_option_handler): Make ul more local.
1733
1734 * sim-load.c (sim_load_file): Make the name constant.
1735 (sim_load_file): Passify gcc.
1736
1737 * sim-utils.h: New file, pre-declare utilites in corresponding .c
1738 file.
1739 * sim-utils.c, sim-load.c: Include sim-utils.h.
1740
1741 * sim-base.h (sim_cpu): Pre define here so available to all.
1742
1743 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
1744 Restore the sim_cpu and instruction_address arguments so that full
1745 information is available to the abort function.
1746 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
1747 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
1748
1749 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
1750 tracing support for sim-events and sim-core.
1751 (trace_option_handler): Convert #if to if where possible so always
1752 compiled/checked by C compiler.
1753 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
1754
1755 * sim-base.h: Adjust comment documenting how to define the cpu
1756 structure.
1757 (sim_state_base): Add sim_core and sim_events to simulator base
1758 object.
1759
1760 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
1761 * sim-core.c (sim_core_init, sim_core_attach,
1762 sim_core_find_mapping): Update.
1763 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
1764 update_time_from_event, insert_sim_event,
1765 sim_events_schedule_after_signal, sim_events_deschedule,
1766 sim_events_tick): Ditto.
1767
1768 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
1769 sim-model.h): Move #includes from here.
1770 * sim-base.h: To here.
1771 (sim-core.h, sim-events.h, sim-io.h): Include also
1772
1773Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
1774
1775 * callback.c (default_callback): Missing initialisers.
1776
c967f187
DE
1777Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
1778
2317a499
DE
1779 * sim-utils.c (sim_add_commas): New function.
1780 * sim-basics.h (sim_add_commas): Add prototype.
1781 * cgen-scache.c (scache_print_profile): Print commas in numbers.
1782 * sim-profile.c (COMMAS): New macro.
1783 (print_*): Use it to print commas in numbers.
1784
260b2c47
DE
1785 * configure: Regenerated.
1786
1787 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
1788 (cgen_state): New member run_fast_p.
1789 (cgen_init): Add prototype.
1790 (sim_disassemble_insn): New arg `cpu'.
1791 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
1792 * cgen-utils.c (cgen_init): New function.
1793 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
1794 * genmloop.sh: Call engine_halt if loop exits.
1795
c967f187
DE
1796 * Makefile.in (sim-options_h): Define.
1797 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
1798 (sim-model.o): Add new rule.
1799 (cgen-{scache,trace,utils}.o): Add new rules.
1800 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
1801 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
1802 Indent output by 2 spaces.
1803 * cgen-scache.h (scache_print_profile): Update.
1804 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
1805 Use trace_printf, not fprintf.
1806 (trace_extract): Use trace_printf, not cgen_trace_printf.
1807 * genmloop.sh (!FAST case): Increment `insn_count'.
1808 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
1809 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
1810 access macro's name.
1811 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
1812 Change return type to SIM_RC.
1813 (sim_core_{install,uninstall}): New functions.
1814 * sim-core.h (sim_core_{install,uninstall}): Declare.
1815 (sim_core_init): Use EXTERN_SIM_CORE to define it.
1816 Change return type to SIM_RC.
1817 * sim-model.h (models,machs,model_install): Declare.
1818 * sim-module.c (modules): Add scache_install, model_install.
1819 (sim_post_argv_init): Set cpu->state backlinks.
1820 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
1821 (standard_option_handler): Likewise.
1822 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
1823 sim-profile.h.
1824 (*): Assume ANSI C.
1825 (profile_options): Delete --profile-simcache.
1826 (profile_option_handler): Likewise.
1827 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
1828 spaces.
1829 (profile_print_{memory,model}): Likewise.
1830 (profile_print_simcache): Delete.
1831 (profile_print_speed): New function.
1832 (profile_print): Rewrite.
1833 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
1834 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
1835 (PROFILE_DATA): Delete members simcache_{hits,misses}.
1836 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
1837 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
1838 (profile_print): Update prototype.
1839
717dbb29
DE
1840Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
1841
6475b234 1842 * cgen-scache.[ch], cgen-sim.h: New files.
b9c8cd10
DE
1843 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
1844 * sim-model.c: New file.
1845
717dbb29
DE
1846 * Make-common.in (clean targets): Undo patch of Apr. 22.
1847
1848Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
1849
1850 * sim-n-bits.h (signed): If we have a standard compiler, undef
1851 signed, so that signedN is defined correctly.
1852
b320601b
DE
1853Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
1854
1855 * sim-module.h, sim-model.h, sim-profile.h: New files.
1856 * sim-module.c, sim-profile.c: New files.
1857 * Make-common.in (SIM_PROFILE): Define
1858 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
1859 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
1860 (sim_module.o,sim-profile.o): Add rules for.
1861 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
1862 (--enable-sim-profile): Add.
1863 * configure: Regenerated.
1864 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
1865 model. Move trace and profile support to sim-{trace,profile}.h.
1866 New members trace_data, profile_data.
1867 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
1868 * sim-config.h: Provide default definition of WITH_PROFILE.
1869 (WITH_TRACE): Change default to -1.
1870 (MAX_NR_PROCESSORS): Always define.
1871 * sim-options.c: Move trace and profile support to
1872 sim-{trace,profile}.h.
1873 (sim_pre_argv_init): Moved to sim-model.c.
1874 (standard_install): New function.
1875 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
1876 (standard_install): Declare.
1877 * sim-trace.c: Tracing option handling moved here from sim-options.c.
1878 (trace_install, trace_uninstall): New functions.
1879 (trace_printf): Update reference to TRACE_FILE.
1880 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
1881 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
1882 (WITH_TRACE_FOO_P): Define.
1883 (trace_install): Declare.
1884 (TRACE_DATA): New struct.
1885
ef751fb0
DE
1886Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
1887
1888 * run.c: Undo last exec_bfd patch.
1889 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
1890
e3eba3fd
MM
1891Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
1892
1893 * run.c (exec_bfd): Add back in.
1894 (main): Set exec_bfd.
1895
2c27ef78
DE
1896Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
1897
1898 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
1899
15c16493
AC
1900Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
1901
1902 * sim-events.c (insert_sim_event): Call sim_io_error instead of
1903 less well defined engine_error.
1904 * sim-core.c: Ditto.
1905
0f399b0c
SG
1906Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
1907
1908 * Make-common.in: Change clean targets to use :: so that other
1909 Makefiles can have their own clean targets.
1910 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
1911 __STDC__ to control use of stdarg vs. varargs syntax. Some
1912 systems can't use __STDC__, but require stdarg.
1913
4a6163db
DE
1914Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
1915
e65bd1d8
DE
1916 * sim-options.c (standard_options): Add --endian.
1917 (standard_option_handler): Likewise.
1918
4a6163db
DE
1919 * nrun.c: #include <signal.h>.
1920 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
1921 handler that calls sim_stop ().
1922
8517f62b
AC
1923Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
1924
1925 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
1926 handler that calls sim_stop (). Simulators may still be
1927 establishing their own handler.
1928
1929 * sim-events.c (sim_events_poll): Rename from
1930 sim_events_at_large_int. Poll IO.
1931
1932 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
1933 request.
1934
1935 * callback.c (os_poll_quit): New function poll for quit signal
1936 where needed.
1937 (default_callback): Include magic number.
1938
0f2811d1
DE
1939Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
1940
63ddb6bd
DE
1941 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
1942 Check for functions getrusage, time.
1943 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
1944 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
1945 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
1946 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
1947
ba65b2f4
DE
1948 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
1949
4ede3a83 1950 * sim-options.c, sim-options.h: New files.
4b364b00 1951 * sim-config.h (WITH_DEBUG): Provide default value of zero.
e9b2f579 1952 * Make-common.in (nrun.o): Add rules for.
c95d08a8 1953 * nrun.c: New file.
4ede3a83 1954
f7d2f538
DE
1955 * run.c (main): Check return value of sim_open.
1956
e9b2f579 1957 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
0f2811d1
DE
1958 (sim_main_headers): Add sim-trace.h.
1959 * run.c (exec_bfd, target_byte_order): Delete.
1960 (main): Pass -E <endian> to sim_open. Delete code to load sections,
1961 call sim_load instead. Check return code of sim_create_inferior.
1962 * sim-base.h (CURRENT_STATE): Define.
1963 (sim_state_base): Make typedef. New members options, prog_argv,
1964 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
1965 mem_size, memory [+ corresponding access macros].
1966 (sim_cpu_base): New typedef.
1967 * sim-trace.h: New file.
e9b2f579 1968 * sim-trace.c: New file.
0f2811d1 1969 * sim-basics.h: #include it.
35c384f6 1970 * sim-load.c: New file.
0f2811d1 1971
6808fd61
ILT
1972Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
1973
1974 * Make-common.in (INSTALL): Set to @INSTALL@.
1975 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
1976 (install-common): Depend upon installdirs. Use
1977 $(program_transform_name) directly, rather than using
1978 $(INSTALL_XFORM).
1979 (installdirs): New target.
1980 * Makefile.in (INSTALL): Set to @INSTALL@.
1981 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
1982 (install-man): Depend upon installdirs. Use
1983 $(program_transform_name) directly, rather than using
1984 $(INSTALL_XFORM).
1985 (installdirs): New target.
1986
7ec396d2
AC
1987Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
1988
1989 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
1990 be overriden.
1991
1992Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1993
1994 * sim-basics.h: Only bring in config.h and tconfig.h if
1995 HAVE_CONFIG_H.
1996
1997Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1998
1999 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
2000 numbering convention of the target.
2001 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
2002 and WITH_TARGET_WORD_MSB.
2003 (sim_config): When possible, check for consistency with bitsize
2004 and msb.
2005
2006 * sim-bits.h: Allow MSB to be other than zero.
2007 * sim-bits.c: Ditto.
2008 * sim-n-bits.h: Ditto.
2009
2010 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
2011 * sim-n-bits.h (MSMASKEDn): Ditto.
2012
2013Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
2014
2015 * Makefile.in (INSTALL): Change install.sh to install-sh.
2016
25a9c90b
DE
2017Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
2018
2019 * sim-base.h (sim_state_base): Move `magic' to end of struct.
2020
b4d88827
AC
2021Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2022
2023 * run.c (main): Check that a program to run was specified.
2024
08db4a65
AC
2025Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2026
2027 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
2028
2029 * configure: Regenerated to track ../common/aclocal.m4 changes.
2030 * config.in: Ditto.
2031
fbda74b1
DE
2032Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
2033
21bfad86
DE
2034 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
2035 * sim-config.h: To here.
2036
00d74d3e
DE
2037 * Make-common.in (SIM_EXTRA_DEPS): New config var.
2038 (sim_main_headers): Define.
2039 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
37379a25 2040start-sanitize-d30v
00d74d3e 2041 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
37379a25 2042end-sanitize-d30v
00d74d3e
DE
2043 (clean): Use it.
2044 (sim-utils.o): Add rule for.
2045 * sim-utils.o: New file.
2046 * sim-basics.h: #include sim-base.h.
2047 (zalloc): Make argument unsigned long.
2048 * sim-base.h: New file.
2049 * sim-inline.h (SIM_IO support): Delete.
2050 * sim-io.h: Delete inline support.
2051 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
2052 * sim-config.c: sim-state.h renamed to sim-main.h.
2053 * sim-core.c: Likewise.
2054 * sim-events.c: Likewise.
2055
bcd1475a
DE
2056 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
2057
fbda74b1
DE
2058 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
2059 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
2060 -DDEBUG.
2061 * configure: Regenerated to track ../common/aclocal.m4 changes.
2062
a35e91c3
AC
2063Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2064
2065 * configure: Regenerated to track ../common/aclocal.m4 changes.
2066
2067Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2068
2069 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
2070 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
2071 are defined by the configure.
2072
2073 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
2074
2075 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
2076 reserved-bits): Always define.
2077
2078 * sim-config.h, sim-config.c (sim_config): New function - and new
2079 file - co-ordinate the setting/checking of the common simulator
2080 configuration options.
2081
2082 * Make-common.in (sim-config.o): Add rule.
2083
2084Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
2085
2086 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
2087 va_list from void *, since va_list might not be a pointer type.
2088
2089Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2090
2091 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
2092 in wrong order.
2093 (offset_N): Correct computation of LE offset.
2094
2095 * sim-io.c (sim_io_error): Include a new line when reporting
2096 errors.
2097
2098 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
2099 `/'.
2100
aa7cec3f
JL
2101Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
2102
2103 * run.c: Include alloca-conf.h.
7c058c9e
JL
2104
2105 * callback.c (os_evprintf_filtered): Fix typo.
2106
fa21d299
AC
2107Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2108
2109 * run.c (string.h, strings.h, stdlib.h): Include.
2110
2111 * sim-events.c (sim_events_tick): Recent cleanup failed to return
2112 0 when nothing pending.
2113
2114 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
2115 will soon be going away.
2116 (getopt): Plicate GCC.
2117
2118 * sim-endian.c (sim-io.h): Plicate GCC.
2119 * sim-bits.c (sim-io.h): Ditto.
2120 * sim-n-bits.h (ROTn): Ditto.
2121
2122 * sim-io.c (sim_io_error): Correct check for NULL.
2123
2124 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
2125 the __FILE__.
2126 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
2127 path.
2128
2129Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2130
2131 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
2132 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
2133
4a5fb09d
AC
2134Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2135
2136 * sim-alu.h: Include sim-xcat.h.
2137
d11d59ac
AC
2138Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2139
2140 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
2141 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
2142 these.
2143
2144 * sim-events.c (sim_events_at_large_int): New function. Just
2145 schedules an event every large-int ticks.
2146 (sim_events_init): Call.
2147 (sim_events_tick, sim_events_process): Move async handing to
2148 sim_events_process. Move timer decrement so that it occures after
2149 events have been processed.
2150
2151 * sim-basics.h (struct _engine): Remove declaration.
2152
2153 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
2154 everything with same. Rename global struct to SIM_DESC.
2155 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
2156 * sim-io.h, sim-io.c: Ditto.
2157
2158 * sim-assert.h: New file. Optional assertion checking macros.
2159 * sim-io.c (sim_io_error): Make just this function tolerant to
2160 null pointers.
2161
2162 * sim-xcat.h: New file. Define concatenate macros.
2163 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
2164 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
2165 concat macros.
2166
2167
752517cc
AC
2168Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2169
2170 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
2171
86eb1e29
AC
2172Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2173
2174 * sim-inline.h: Add definitions for sim-types.
2175 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
2176 module.
2177
231de1b8
AC
2178Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2179
2180 * sim-events.h: Remove defunct reference to callback struct.
2181
a77aa7ec
AC
2182Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2183
2184 * configure: Re-generate.
2185
2186Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2187
2188 * Make-common.in (CSEARCH): Do not include the gdb directory in
2189 the search path.
2190
2191Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2192
2193 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
2194 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
2195 to explicitly incorporate these.
2196
2197 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
2198 specify the alignment restrictions of the target architecture -
2199 without this option all alignment restrictions are accomodated.
2200 (--enable-sim-assert): New option. Conditionally compile in
2201 assertion statements.
2202 (--enable-sim-float): New option. Strongly specify the target's
2203 floating point support.
2204 (--enable-sim-hardware): New option. Specify the hardware devices
2205 included in the simulation.
2206 (--enable-sim-packages): New option. Specify the hardware
2207 packages included in the simulation.
2208 (--enable-sim-regparm): New option. Specify that parameters be
2209 passed in registers instead of on the stack.
2210 (--enable-sim-reserved-bits): New option. Specify that reserved
2211 bits within an instruction are are correctly set.
2212 (--enable-sim-smp): New option. Specify the level of SMP support
2213 to be included in the simulator.
2214 (--enable-sim-stdcall): New option. Specify an alternative
2215 function call convention.
2216 (--enable-sim-xor-endian): New option. Configure xor-endian
2217 support used by some targets to implement bi-endian support.
2218
f2de7dfd
AC
2219Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2220
2221 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
2222 host endianness to be overridden.
2223 (--enable-sim-endian): Allow the target platform's byte order
2224 to be overridden.
2225 (--enable-sim-inline): Control the inlining of common components.
2226 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
2227 (--enable-sim-warnings): Enable additional GCC compiler checks.
2228 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
2229 SIM_WARNINGS): Add.
2230
2231 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
2232 sim-*-n.h so that the names are uniq on dos machines
2233 * sim-core.c, sim-bits.c, sim-endian.c: Update.
2234
499aa792
DE
2235Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
2236
2237 * run.c: #include "libiberty.h".
2238 (main): New locals sd,no_args,sim_argv.
2239 Run buildargv on -a option. Pass argv to sim_open, argv[0]
2240 is program name. Update call to sim_set_callbacks.
2241 Record result of sim_open, pass to other sim_foo routines.
2242
fd435e9f
MM
2243Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
2244
2245 * callback.c (os_printf_filtered): Do not call exit(1) or print a
2246 final newline.
2247
2248Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2249
2250 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
2251 Route stdout through buffered IO.
2252
2253 * callback.c: Add os_flush_stderr, os_write_stderr,
2254 os_evprintf_filtered functions to route error output through
2255 stderr.
2256
2257 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
2258 Correct return type - should be void.
2259
2260Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2261
2262 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
2263
2264 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
2265 not provide a default value as undefined indicates disable code.
2266
2267Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2268
2269 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
2270 directory.
2271 * sim-events.h, sim-events.c: Ditto.
2272 * sim-io.h, sim-io.c: Ditto.
2273
b3e426bc
AC
2274Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2275
2276 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
2277
2278 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
2279 extract the tail or least signifiant bits from an integer of the
2280 specified size.
2281
2282 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
2283 WITH_TARGET_BITSIZE so that the compilation will fail when an
2284 unsupported bitsize value is defined.
2285
2286 (INSERTED*): Convert to functions.
2287 (EXTRACTED*): Ditto.
2288
2289 (SIGN_EXTEND, SEXT): Change to more terse name.
2290
17bbcaad
AC
2291Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2292
2293 * sim-inline.h: Allow explicit control over which .c files will be
2294 included by their header.
2295
2296 * sim-inline.h: Allow explicit control over which .c files use the
2297 alternative - REGPARM - parameter passing mechanism.
2298
2299 * sim-inline.h, sim-inline.c: Don't attempt to include any of
2300 icache.c, idecode.c, semantics.c or support.c. Those names are
2301 not generally applicable.
2302
b3e426bc
AC
2303Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2304
2305 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
2306 in a fashion similar to sim-endian-n.
2307
2308 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
2309 both value and address macro's.
2310
2311Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2312
2313 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
2314
2315 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
2316 generic L_word, H_word macro's.
2317
17bbcaad
AC
2318Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
2319
2320 * sim-basics.h: Borrow code from ppc directory.
2321 * sim-bits.c: Ditto.
2322 * sim-bits.h: Ditto.
2323 * sim-config.h: Ditto.
2324 * sim-endian-n.h: Ditto.
2325 * sim-endian.c: Ditto.
2326 * sim-endian.h: Ditto.
2327 * sim-inline.c: Ditto.
2328 * sim-inline.h: Ditto.
2329 * sim-types.h: Ditto.
2330
2331Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
2332
2333 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
2334 all the ALU size alternatives and then auto-configure a default.
2335
2336 * sim-alu.h: Copy ppc/idecode_expression.h.
2337
2338Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
2339
2340 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
2341 sign extend a bit within a value.
2342
2343 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
2344 a pointer into the middle of a host word.
2345 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
2346
2347Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
2348
2349 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
2350 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
2351 appropriate definitions of read, write, etc. Add prototype for
2352 system.
2353
1cc9ed29
DE
2354Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
2355
2356 * Makefile.in (libcommon.a): Delete.
2357 (callback.o,targ-map.o): Delete, moved to Make-common.in.
2358 (gentmap,targ-vals.h,targ-map.c): Likewise.
2359 (run-autoconf): Delete.
2360 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
2361 (common makefile fragment): Moved back into ...
2362 * Make-common.in: Resurrect.
2363 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
2364 * configure: Regenerated.
2365
8cd89e77
DE
2366Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
2367
2368 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
2369 (SIM_AC_OUTPUT): To here.
2370
76e2c9ae
SG
2371Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
2372
2373 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
2374 comments and single quotes. Fixes a problem found on hpux.
2375
80b7b3a5
SG
2376Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
2377
e1dfb8c5 2378 * aclocal.m4: Remove Make-common.in from dependencies.
42653e99 2379 * (distclean): Remove targ-vals.def.
e1dfb8c5 2380
80b7b3a5
SG
2381 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
2382 into here. Makes insertion into makefiles easier. Also, change
2383 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
2384 targ-map.o, and run are built. They are now built in the
2385 individual simulator directories, taking sources from ../common as
2386 necessary. This replaces the merging of libcommon.a into
2387 linsim.a, which was problematic for the WinGDB build process.
2388 * run.c: Include config.h from . instead of ../common.
2389 * Make-common.in: Remove. It's no longer necessary.
2390
2391Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
2392
2393 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
2394 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
2395
2396Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
2397
2398 * run.c (main): Set target_byte_order before call to sim_open.
2399
966f47b4
DE
2400Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
2401
2402 * callback.c: #include <stdlib.h>
2403 (os_error): New function.
2404 (default_callback): Add os_error.
2405
2406Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
2407
2408 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
2409 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
2410 specific.
2411 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
2412
2413Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
2414
2415 * run.c: #include ../common/config.h, tconfig.h.
2416 (myname): New static global.
2417 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
2418 Only process -c ifdef SIM_HAVE_SIMCACHE.
2419 Only process -p/-s ifdef SIM_HAVE_PROFILE.
2420 Parse program name from argv[0] and use in error messages.
2421 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
2422 Add support for incomplete h8/300 termination indicators.
2423 (usage): Make more verbose.
2424 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
2425 * Makefile.in,Make-common.in,callback.c: New files.
2426 * nltvals.def,gentmap.c,gentvals.sh: New files.
2427
2428Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
2429
2430 * run.c: Include stdarg.h if __STDC__.
2431
2432Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
2433
2434 * run.c (main): Don't print out anything if the signal
2435 number is zero (ie no signal).
2436
57bc1a72
MM
2437Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2438
2439 * run.c (main): Print out if the program raised a signal.
2440
2441Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2442
2443 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
2444 (main): Ditto.
2445
3733d109
JSC
2446Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
2447
2448 * run.c (main): Explicitly cast malloc() parameter.
2449
9b280a86
MM
2450Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2451
2452 * run.c (sim_bfd): New global to hold the bfd pointer for the
2453 executable.
2454 (main): Initialize sim_bfd.
2455
2456Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
2457
2458 * run.c (main): Use new bfd_big_endian macro.
2459
2460Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
2461
2462 * run.c (main): Removed SH specific comments, so source is
2463 generic. Also updated to only load relevant sections. Moved
2464 sim_open() to after callback attach (to match GDB).
2465
2466 * run.1: Removed SH specific comments.
2467
3be50301
JW
2468Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
2469
2470 * run.c (main): Always return sigrc at end.
2471
2472Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
2473
2474 * run.c (main): Print error diagnostic and exit if bfd_openr() or
2475 bfd_check_format() fails.
2476
f025d903
SC
2477Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
2478
2479 * run.c, run.1: From sh directory.
2480
2481
This page took 0.197125 seconds and 4 git commands to generate.