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