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