Commit | Line | Data |
---|---|---|
2f2e6c5d AC |
1 | Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com> |
2 | ||
3 | * sim-watch.c (schedule_watchpoint): Add is_within option so that | |
4 | inequality test is possible. | |
5 | (handle_watchpoint): Re-pass is_within arg. | |
6 | (watch_option_handler): When `!' prefix to pc-watchpoint arg pass | |
7 | 0 to schedule_watchpoint's is_within arg. | |
8 | (sim_watchpoint_init): Re-pass is_within arg. | |
9 | ||
10 | * sim-options.c (sim_print_help): Add is_command argument. Don't | |
11 | include -- prefix when called from the command line interpreter. | |
12 | ||
13 | * sim-watch.c (schedule_watchpoint): Pass true is_within argument. | |
14 | ||
15 | * sim-events.c (sim_events_watch_sim): Add is_within argument, | |
16 | zero indicates that the test should be reversed. | |
17 | (sim_events_watch_core): Ditto. | |
18 | (WATCH_CORE): Compare range against is_within. | |
19 | (WATCH_SIM): Ditto. | |
20 | ||
21 | Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com> | |
22 | ||
23 | * sim-events.c (WATCH_CORE): Pass NULL cpu argument to | |
24 | sim_core_read_buffer. Check nr-bytes transfered. | |
25 | ||
26 | * sim-core.h (sim_core_common): Define a new struct that contains | |
27 | the common data. to sd and cpu structures. | |
28 | * sim-core.c (sim_core_attach): Update. | |
29 | (sim_core_init): Update. Remember to copy initialized data to each | |
30 | cpu. | |
31 | (sim_core_find_mapping): Ditto. | |
32 | ||
33 | * sim-core.c (sim_core_read_buffer): Add cpu argument. | |
34 | (sim_core_write_buffer): Ditto. | |
35 | ||
36 | * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned | |
37 | transfer use xor version of read buffer. | |
38 | (sim_core_write_unaligned_N): Ditto for write. | |
39 | ||
40 | * sim-core.c (sim_core_xor_read_buffer): New function implement | |
41 | xor-endian data read breaking transfer up into xor-endian sized | |
42 | blocks. | |
43 | (sim_core_xor_write_buffer): Ditto for write. | |
44 | (reverse_n): Reverse order of arbitrary number of bytes in buffer | |
45 | - needed for xor-endian transfers. | |
46 | ||
cd0d873d AC |
47 | Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com> |
48 | ||
49 | * sim-inline.h: Review description. | |
50 | ||
51 | * sim-core.h, sim-core.c: Reduce number of functions being inlined | |
52 | to just those involved in data transfers and configuration. | |
53 | ||
54 | * sim-xcat.h (XSTRING): New macro, map macro definition onto | |
55 | string. | |
56 | * sim-n-core.h (sim_core_read_aligned_N): Use. | |
57 | (sim_core_read_unaligned_N): Ditto. | |
58 | (sim_core_read_unaligned_N): Ditto.. | |
59 | (sim_core_write_unaligned_N): Ditto. | |
60 | ||
61 | * sim-core.h: Add xor endian bitmap to main structure. * | |
62 | ||
63 | sim-n-core.h (sim_core_write_aligned_N): Add suport for xor | |
64 | endian. | |
65 | (sim_core_read_aligned_N): Ditto. | |
66 | ||
67 | * sim-core.c (sim_core_set_xor_endian): New function. | |
68 | (sim_core_attach): Don't overwrite the per-cpu xor map when | |
69 | cloning the global core. | |
70 | ||
8167e102 AC |
71 | Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com> |
72 | ||
73 | * sim-engine.h: Update below so that it is using an enumerated | |
74 | type. | |
75 | ||
6e61ecfc GRK |
76 | Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com> |
77 | ||
78 | * sim-engine.c (sim_engine_restart): | |
79 | * sim-resume.c (sim_resume): Change longjmp param/setjmp | |
80 | return value used for simulator restart from 0 to 2. | |
81 | ||
50a2a691 AC |
82 | Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com> |
83 | ||
84 | * cgen-scache.c (scache_option_handler): Add is_command arg. | |
85 | ||
86 | * sim-model.c (model_option_handler): Add is_command argument. | |
87 | ||
88 | * sim-profile.c (profile_option_handler): Add is_command arg. | |
89 | ||
90 | * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value | |
91 | involved. | |
92 | ||
93 | * sim-module.c (sim_module_add_init_fn): Call init fn in the same | |
94 | order that they are registered. | |
95 | ||
96 | * sim-options.h (OPTION_HANDLER): Add argument to differentiate | |
97 | between option and command line processing. | |
98 | ||
99 | * sim-options.c: Include stdlib.h, ctype.h. | |
100 | ||
101 | * Make-common.in (sim-watch.o): Add rule. | |
102 | (sim_main_headers): Assume sim-assert.h included. | |
103 | (sim-*.o): Simplify make rule. | |
104 | ||
105 | * sim-module.c: Add sim_watch_install to module list. | |
106 | ||
107 | Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
108 | ||
109 | * sim-base.h (STATE_LOADED_P): New predicate. Set once everything | |
110 | has been loaded. | |
111 | ||
112 | * sim-trace.c (trace_install): Check magic. Include sim-assert.h. | |
113 | * sim-events.c (sim_events_install): Ditto. | |
114 | * sim-core.c (sim_core_install): Ditto. | |
115 | * sim-model.c (model_install): Ditto. | |
116 | * sim-options.c (standard_install): Ditto. | |
117 | * sim-profile.c (profile_install): Ditto. | |
118 | * sim-reason.c (sim_stop_reason): Ditto. | |
119 | * sim-run.c (sim_engine_run): Ditto. | |
120 | * sim-utils.c (sim_analyze_program): Ditto. | |
121 | ||
122 | * sim-module.c (modules): Make profile_install and trace_install | |
123 | optional. | |
124 | ||
125 | * sim-base.h (STATE_MEM_BASE): Define for flat memory systems. | |
126 | ||
127 | * sim-options.c (standard_option_handler): Set the byte order. | |
128 | ||
129 | * sim-events.c (sim_events_process): Allow multi tick processing. | |
130 | (sim_events_tickn): New function - multi cycle tick. | |
131 | ||
132 | * sim-events.h (sim_events_tickn, sim_events_timewarp): Add | |
133 | prototypes. Under development. | |
134 | (sim_events): Replace processing with nr_ticks_to_process. | |
135 | ||
136 | Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
137 | ||
138 | * nrun.c (main): Pass callbacks to sim_open instead of using | |
139 | sim_set_callbacks. | |
140 | ||
141 | * run.c (main): Ditto. | |
142 | ||
f03b093c AC |
143 | Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
144 | ||
fd76456b AC |
145 | * sim-events.c (sim_events_zalloc): Signal save memory allocator - |
146 | stop tk interrupting malloc calls. | |
147 | (sim_events_zalloc): Converse. | |
148 | ||
149 | * Make-common.in (sim_main_headers): Add sim-events.h. | |
150 | ||
151 | * sim-events.c (sim_events_schedule_after_signal): Change return | |
152 | type to void - signal events are strictly internal. | |
153 | (sim_events_init): Allocate a finite buffer for signal events. | |
154 | (sim_events_schedule_after_signal): Enter signal events into the | |
155 | signal buffer. | |
156 | ||
157 | * sim-engine.c (sim_engine_halt): Check SIM_DESC magic. | |
158 | (sim_engine_restart): Ditto. | |
159 | (sim_engine_abort): Ditto. | |
160 | * sim-stop.c (sim_stop): Ditto. | |
161 | (control_c_simulation): Ditto. | |
162 | * sim-resume.c (sim_resume): Ditto. | |
163 | (has_stepped): Ditto. | |
164 | * sim-abort.c (sim_engine_abort): Ditto. | |
165 | ||
f03b093c AC |
166 | * sim-basics.h (transfer_type): New type. |
167 | ||
168 | * sim-core.c (sim_core_signal): New function. Print core signal | |
169 | information. | |
170 | (sim_core_find_mapping): Add transfer argument. | |
171 | ||
172 | * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call | |
173 | SIM_CORE_SIGNAL if a recoverable abort. | |
174 | * sim-core.c (sim_core_find_mapping): Ditto. | |
175 | ||
176 | Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
177 | ||
178 | * sim-core.c (sim_core_find_mapping): Replace calls to | |
179 | sim_io_error to more resiliant sim_engine_abort. | |
180 | ||
181 | * sim-n-core.h (sim_core_read_unaligned_N): Ditto. | |
182 | (sim_core_write_unaligned_N): Ditto. | |
183 | ||
184 | Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
185 | ||
186 | * sim-module.c: Add sim_events_install to list. | |
187 | ||
188 | * sim-events.c (sim_events_install, sim_events_uninstall): Clonse | |
189 | from sim_core_*. | |
190 | (sim_events_init): Now returns SIG_RC. | |
191 | ||
192 | * sim-run.c: New file. Generic sim_engine_run. | |
193 | * sim-reason.c: New file. Generic sim_stop_reason. | |
194 | * sim-stop.c: New file. Generic sim_stop. | |
195 | * sim-resume.c: New file. Generic sim_resume. | |
196 | ||
197 | * Make-common.in (sim-engine.o): Add rule. | |
198 | (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto. | |
199 | ||
200 | * sim-engine.h, sim-engine.c: New file. Provide generic | |
201 | implementation of sim_engine_halt, sim_engine_error. et.al. | |
202 | ||
203 | * sim-base.h (sim_state_base): Add member halt. | |
204 | (sim-engine.h): Include. | |
205 | ||
206 | * sim-events.h (sim_event_handler): Always pass SIM_DESC to event | |
207 | handlers. | |
208 | * sim-events.c (sim_events_poll): Update event handler. | |
209 | ||
210 | Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com> | |
211 | ||
212 | * sim-events.h, sim-events.c (sim_events_watch_clock): New | |
213 | function. | |
214 | (sim_events_watch_sim): New function. | |
215 | (sim_events_watch_core): New function. | |
216 | (sim_watch_valid): New function. | |
217 | (sim_events_preprocess): New function. | |
218 | (sim_events_process): Process the watchpoints as well as the timer | |
219 | queue. | |
220 | (sim_events_tick): Check WORK_PENDING instead of the hold queue. | |
221 | (sim_events_deschedule): Check all the queues when removing an | |
222 | event. | |
223 | (sim_events_init): Ditto for cleaning. | |
224 | ||
225 | Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
226 | ||
227 | * sim-fpu.c (is_ufpu_number): Comment out - currently unused. | |
228 | ||
11ab132f AC |
229 | Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com> |
230 | ||
231 | * callback.c (os_open): Type of arg flags is int. | |
232 | ||
63aa80ff MM |
233 | Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com> |
234 | ||
235 | * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities | |
236 | just like normal numbers as per IEEE rules. | |
237 | ||
248c1fb8 JL |
238 | Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com> |
239 | ||
240 | * callback.c (os_close): Mark the descriptor as being | |
241 | available if the close succeeded. | |
242 | (os_open): Pass 0644 as the mode of the file being created. | |
243 | ||
d24f06ee AC |
244 | Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com> |
245 | ||
07b4c0a6 AC |
246 | * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a |
247 | float. | |
248 | ||
249 | * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_. | |
250 | * sim-lnline.h: Update. | |
251 | ||
252 | * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp | |
d24f06ee | 253 | conversion functions. |
07b4c0a6 | 254 | (sim_fpu_to{32,64}[iu]): New fp2int functions. |
d24f06ee AC |
255 | |
256 | * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp | |
257 | compare functions. Replacing. | |
258 | (sim_fpu_cmp): This. Delete. | |
259 | ||
c445af5a AC |
260 | Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com> |
261 | ||
262 | * sim-core.c (sim_core_find_mapping): Call engine_error not | |
263 | sim_io_error when possible. | |
264 | ||
265 | Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com> | |
266 | ||
267 | * sim-endian.h (V1_H2): Add macro's to insert a word into a | |
268 | high/low double word. | |
269 | ||
270 | * sim-trace.h: Remove definition of attribute - defined in | |
271 | sim_basics.h. | |
272 | ||
e05e76e8 AC |
273 | Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com> |
274 | ||
275 | * sim-options.h (struct OPTION): Add doc_opt as the documenting | |
276 | name of the option - or family of options. | |
277 | ||
278 | * sim-options.c (sim_args_command): Match command `a-b c' with | |
279 | option `--a-b-c' from option table. | |
280 | ||
43c53e07 AC |
281 | Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com> |
282 | ||
283 | * sim-options.c (sim_print_help): For optional arguments, wrap | |
284 | them in []. | |
285 | ||
286 | * sim-trace.c (set_trace_options): New function, handle optional | |
287 | argument and multiple assignment. | |
288 | (trace_option_handler): Update. | |
289 | ||
290 | * sim-trace.c (trace_option_handler): Trace branch and not fpu | |
291 | when branch tracing selected. | |
292 | ||
381f42ef AC |
293 | Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com> |
294 | ||
295 | * sim-trace.c (trace_one_insn): Make a va-args function. | |
296 | ||
297 | * sim-trace.c (trace_vprintf): New function, va-arg version of | |
298 | trace_printf. | |
299 | ||
ea4e4493 DE |
300 | Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com> |
301 | ||
302 | * sim-trace.c (trace_uninstall): Don't close a file twice. | |
bd3274c6 | 303 | * sim-profile.c (profile_uninstall): Likewise. |
ea4e4493 | 304 | |
a7724171 MM |
305 | Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com> |
306 | ||
307 | * sim-trace.c (toplevel): Include bfd.h. | |
308 | (trace_options): Note that --trace-linenum also turns on | |
7b167b09 | 309 | --trace-insn. Add --trace-{branch,semantics}. |
a7724171 | 310 | (trace_option_handler): If --trace-linenum, also turn on |
7b167b09 MM |
311 | --trace-insn. Add --trace-branch support. If --trace-semantics, |
312 | turn on ALU, FPU, branch, and memory tracing. | |
a7724171 MM |
313 | (trace_one_insn): New function to trace an instruction. Support |
314 | --trace-linenum. | |
7b167b09 | 315 | (OPTION_TRACE_*): Use an enum, rather than lots of defines. |
a7724171 | 316 | |
7b167b09 MM |
317 | * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros. |
318 | (MAX_TRACE_VALUES): Use 32, not 12 by default. | |
319 | (TRACE_branch): Add new mask. | |
320 | (TRACE_*_P): Define all possible trace_p macros. | |
a7724171 MM |
321 | (trace_one_insn): Declare function. |
322 | ||
23b04e79 MM |
323 | Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com> |
324 | ||
325 | * sim-trace.h (__attribute__): Define as nothing if not GNU C or | |
326 | GNU C doesn't support __attributes__. | |
327 | ({trace,debug}_printf): Add attribute's so -Wformat can check the | |
328 | format strings. | |
329 | ||
7a418800 AC |
330 | Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com> |
331 | ||
332 | * sim-config.h (FORCED_ALIGNMENT): New alignment option - | |
333 | addresses are masked forcing them to be correctly aligned. | |
334 | (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default. | |
335 | * sim-config.c (config_alignment_to_a): Update. | |
336 | ||
337 | * sim-core.h (sim_cpu_core): New data type contains cpu specific | |
338 | core data. | |
339 | * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base | |
340 | type. | |
341 | * sim-core.c (sim_core_attach): Add CPU argument. Ready for | |
342 | processor specific core maps. | |
343 | (sim_core_map_attach): Copy the core map data to each of the | |
344 | processor specific core data structures. | |
345 | * sim-core.c (sim_core_find_mapping): Update. | |
346 | ||
347 | * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename. | |
348 | (sim_core_write_aligned_N, sim_core_write_aligned_N): New names. | |
349 | (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New | |
350 | alternatives that handle unaligned addresses. | |
351 | (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace | |
352 | with just CPU arg. | |
353 | * cgen-utils.c (sim_disassemble_insn): Update. | |
354 | ||
3971886a AC |
355 | Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com> |
356 | ||
357 | * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific | |
358 | tracing. | |
359 | ||
360 | * sim-fpu.h, sim-fpu.c: New files - prototype for generic target | |
361 | fpu support. | |
362 | ||
363 | * sim-inline.h, sim-inline.c: Add support for SIM_FPU. | |
364 | ||
1fe05280 AC |
365 | Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com> |
366 | ||
367 | * sim-core.c (sim_core_map_to_str): New function ascii equivalent | |
368 | to map type. | |
369 | ||
370 | * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace | |
371 | statement. | |
372 | ||
373 | Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com> | |
374 | ||
375 | * cgen-trace.c: Prepend additional trace_printf argument. | |
376 | ||
377 | * cgen-utils.c (sim_disassemble_insn): Add additional core | |
378 | arguments. | |
379 | ||
380 | Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
381 | ||
382 | * nrun.c (main): Catch/report errorenous simulator states. | |
383 | ||
384 | * sim-module.c: #include "libiberty.h" so that xmalloc is defined. | |
385 | * sim-trace.c: #include string.h/strings.h so that memset is | |
386 | defined. | |
387 | * sim-utils.c: Ditto. | |
388 | * sim-profile.c: Ditto. And stdlib.h. | |
389 | (print_bar): Only define when used by instruction or memory profiler. | |
390 | ||
391 | * sim-options.c (standard_option_handler): Make ul more local. | |
392 | ||
393 | * sim-load.c (sim_load_file): Make the name constant. | |
394 | (sim_load_file): Passify gcc. | |
395 | ||
396 | * sim-utils.h: New file, pre-declare utilites in corresponding .c | |
397 | file. | |
398 | * sim-utils.c, sim-load.c: Include sim-utils.h. | |
399 | ||
400 | * sim-base.h (sim_cpu): Pre define here so available to all. | |
401 | ||
402 | * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N): | |
403 | Restore the sim_cpu and instruction_address arguments so that full | |
404 | information is available to the abort function. | |
405 | * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto. | |
406 | * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update. | |
407 | ||
408 | * sim-trace.h, sim-trace.c (trace_option_handler): Add interim | |
409 | tracing support for sim-events and sim-core. | |
410 | (trace_option_handler): Convert #if to if where possible so always | |
411 | compiled/checked by C compiler. | |
412 | * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update. | |
413 | ||
414 | * sim-base.h: Adjust comment documenting how to define the cpu | |
415 | structure. | |
416 | (sim_state_base): Add sim_core and sim_events to simulator base | |
417 | object. | |
418 | ||
419 | * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument. | |
420 | * sim-core.c (sim_core_init, sim_core_attach, | |
421 | sim_core_find_mapping): Update. | |
422 | * sim-events.c (ETRACE, sim_events_init, sim_events_time, | |
423 | update_time_from_event, insert_sim_event, | |
424 | sim_events_schedule_after_signal, sim_events_deschedule, | |
425 | sim_events_tick): Ditto. | |
426 | ||
427 | * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h, | |
428 | sim-model.h): Move #includes from here. | |
429 | * sim-base.h: To here. | |
430 | (sim-core.h, sim-events.h, sim-io.h): Include also | |
431 | ||
432 | Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
433 | ||
434 | * callback.c (default_callback): Missing initialisers. | |
435 | ||
c967f187 DE |
436 | Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com> |
437 | ||
2317a499 DE |
438 | * sim-utils.c (sim_add_commas): New function. |
439 | * sim-basics.h (sim_add_commas): Add prototype. | |
440 | * cgen-scache.c (scache_print_profile): Print commas in numbers. | |
441 | * sim-profile.c (COMMAS): New macro. | |
442 | (print_*): Use it to print commas in numbers. | |
443 | ||
260b2c47 DE |
444 | * configure: Regenerated. |
445 | ||
446 | * cgen-sim.h (sim_signal_type): Add SIM_SIGINT. | |
447 | (cgen_state): New member run_fast_p. | |
448 | (cgen_init): Add prototype. | |
449 | (sim_disassemble_insn): New arg `cpu'. | |
450 | * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn. | |
451 | * cgen-utils.c (cgen_init): New function. | |
452 | (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn. | |
453 | * genmloop.sh: Call engine_halt if loop exits. | |
454 | ||
c967f187 DE |
455 | * Makefile.in (sim-options_h): Define. |
456 | (sim-{module,options,trace,profile,utils}.o): Clean up dependencies. | |
457 | (sim-model.o): Add new rule. | |
458 | (cgen-{scache,trace,utils}.o): Add new rules. | |
459 | * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add. | |
460 | * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'. | |
461 | Indent output by 2 spaces. | |
462 | * cgen-scache.h (scache_print_profile): Update. | |
463 | * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces. | |
464 | Use trace_printf, not fprintf. | |
465 | (trace_extract): Use trace_printf, not cgen_trace_printf. | |
466 | * genmloop.sh (!FAST case): Increment `insn_count'. | |
467 | * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE. | |
468 | (sim_cpu_base): Rename member `sd' to `state' to be consistent with | |
469 | access macro's name. | |
470 | * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it. | |
471 | Change return type to SIM_RC. | |
472 | (sim_core_{install,uninstall}): New functions. | |
473 | * sim-core.h (sim_core_{install,uninstall}): Declare. | |
474 | (sim_core_init): Use EXTERN_SIM_CORE to define it. | |
475 | Change return type to SIM_RC. | |
476 | * sim-model.h (models,machs,model_install): Declare. | |
477 | * sim-module.c (modules): Add scache_install, model_install. | |
478 | (sim_post_argv_init): Set cpu->state backlinks. | |
479 | * sim-options.c (standard_options): Delete --simcache-size,--max-insns. | |
480 | (standard_option_handler): Likewise. | |
481 | * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to | |
482 | sim-profile.h. | |
483 | (*): Assume ANSI C. | |
484 | (profile_options): Delete --profile-simcache. | |
485 | (profile_option_handler): Likewise. | |
486 | (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2 | |
487 | spaces. | |
488 | (profile_print_{memory,model}): Likewise. | |
489 | (profile_print_simcache): Delete. | |
490 | (profile_print_speed): New function. | |
491 | (profile_print): Rewrite. | |
492 | * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache. | |
493 | (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P. | |
494 | (PROFILE_DATA): Delete members simcache_{hits,misses}. | |
495 | (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete. | |
496 | (PROFILE_{CALLBACK,CPU_CALLBACK}): New types. | |
497 | (profile_print): Update prototype. | |
498 | ||
717dbb29 DE |
499 | Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com> |
500 | ||
6475b234 | 501 | * cgen-scache.[ch], cgen-sim.h: New files. |
b9c8cd10 DE |
502 | * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files. |
503 | * sim-model.c: New file. | |
504 | ||
717dbb29 DE |
505 | * Make-common.in (clean targets): Undo patch of Apr. 22. |
506 | ||
507 | Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com> | |
508 | ||
509 | * sim-n-bits.h (signed): If we have a standard compiler, undef | |
510 | signed, so that signedN is defined correctly. | |
511 | ||
b320601b DE |
512 | Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com> |
513 | ||
514 | * sim-module.h, sim-model.h, sim-profile.h: New files. | |
515 | * sim-module.c, sim-profile.c: New files. | |
516 | * Make-common.in (SIM_PROFILE): Define | |
517 | (CONFIG_CFLAGS): Add $(SIM_PROFILE). | |
518 | (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h. | |
519 | (sim_module.o,sim-profile.o): Add rules for. | |
520 | * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments. | |
521 | (--enable-sim-profile): Add. | |
522 | * configure: Regenerated. | |
523 | * sim-base.h (sim_state_base): New members init_list, uninstall_list, | |
524 | model. Move trace and profile support to sim-{trace,profile}.h. | |
525 | New members trace_data, profile_data. | |
526 | * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h. | |
527 | * sim-config.h: Provide default definition of WITH_PROFILE. | |
528 | (WITH_TRACE): Change default to -1. | |
529 | (MAX_NR_PROCESSORS): Always define. | |
530 | * sim-options.c: Move trace and profile support to | |
531 | sim-{trace,profile}.h. | |
532 | (sim_pre_argv_init): Moved to sim-model.c. | |
533 | (standard_install): New function. | |
534 | * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c. | |
535 | (standard_install): Declare. | |
536 | * sim-trace.c: Tracing option handling moved here from sim-options.c. | |
537 | (trace_install, trace_uninstall): New functions. | |
538 | (trace_printf): Update reference to TRACE_FILE. | |
539 | * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h. | |
540 | (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace. | |
541 | (WITH_TRACE_FOO_P): Define. | |
542 | (trace_install): Declare. | |
543 | (TRACE_DATA): New struct. | |
544 | ||
ef751fb0 DE |
545 | Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com> |
546 | ||
547 | * run.c: Undo last exec_bfd patch. | |
548 | (main): Only pass -E ifdef SIM_HAVE_BIENDIAN. | |
549 | ||
e3eba3fd MM |
550 | Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com> |
551 | ||
552 | * run.c (exec_bfd): Add back in. | |
553 | (main): Set exec_bfd. | |
554 | ||
2c27ef78 DE |
555 | Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com> |
556 | ||
557 | * sim-load.c (sim_load_file): #include <stdio.h> for NULL. | |
558 | ||
15c16493 AC |
559 | Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com> |
560 | ||
561 | * sim-events.c (insert_sim_event): Call sim_io_error instead of | |
562 | less well defined engine_error. | |
563 | * sim-core.c: Ditto. | |
564 | ||
0f399b0c SG |
565 | Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com) |
566 | ||
567 | * Make-common.in: Change clean targets to use :: so that other | |
568 | Makefiles can have their own clean targets. | |
569 | * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of | |
570 | __STDC__ to control use of stdarg vs. varargs syntax. Some | |
571 | systems can't use __STDC__, but require stdarg. | |
572 | ||
4a6163db DE |
573 | Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com> |
574 | ||
e65bd1d8 DE |
575 | * sim-options.c (standard_options): Add --endian. |
576 | (standard_option_handler): Likewise. | |
577 | ||
4a6163db DE |
578 | * nrun.c: #include <signal.h>. |
579 | (main, cntrl_c): Wrap calls to sim_resume in a SIGINT | |
580 | handler that calls sim_stop (). | |
581 | ||
8517f62b AC |
582 | Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com> |
583 | ||
584 | * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT | |
585 | handler that calls sim_stop (). Simulators may still be | |
586 | establishing their own handler. | |
587 | ||
588 | * sim-events.c (sim_events_poll): Rename from | |
589 | sim_events_at_large_int. Poll IO. | |
590 | ||
591 | * sim-io.c (sim_io_poll_quit): New function - pass on a polling | |
592 | request. | |
593 | ||
594 | * callback.c (os_poll_quit): New function poll for quit signal | |
595 | where needed. | |
596 | (default_callback): Include magic number. | |
597 | ||
0f2811d1 DE |
598 | Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com> |
599 | ||
63ddb6bd DE |
600 | * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h. |
601 | Check for functions getrusage, time. | |
602 | * sim-basics.h (SIM_ELAPSED_TIME): New typedef. | |
603 | (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes. | |
604 | * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able. | |
605 | (sim_elapsed_time_get, sim_elapsed_time_since): New functions. | |
606 | ||
ba65b2f4 DE |
607 | * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions. |
608 | ||
4ede3a83 | 609 | * sim-options.c, sim-options.h: New files. |
4b364b00 | 610 | * sim-config.h (WITH_DEBUG): Provide default value of zero. |
e9b2f579 | 611 | * Make-common.in (nrun.o): Add rules for. |
c95d08a8 | 612 | * nrun.c: New file. |
4ede3a83 | 613 | |
f7d2f538 DE |
614 | * run.c (main): Check return value of sim_open. |
615 | ||
e9b2f579 | 616 | * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules. |
0f2811d1 DE |
617 | (sim_main_headers): Add sim-trace.h. |
618 | * run.c (exec_bfd, target_byte_order): Delete. | |
619 | (main): Pass -E <endian> to sim_open. Delete code to load sections, | |
620 | call sim_load instead. Check return code of sim_create_inferior. | |
621 | * sim-base.h (CURRENT_STATE): Define. | |
622 | (sim_state_base): Make typedef. New members options, prog_argv, | |
623 | prog_bfd, text_{section,start,end}, start_addr, simcache_size, | |
624 | mem_size, memory [+ corresponding access macros]. | |
625 | (sim_cpu_base): New typedef. | |
626 | * sim-trace.h: New file. | |
e9b2f579 | 627 | * sim-trace.c: New file. |
0f2811d1 | 628 | * sim-basics.h: #include it. |
35c384f6 | 629 | * sim-load.c: New file. |
0f2811d1 | 630 | |
6808fd61 ILT |
631 | Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com> |
632 | ||
633 | * Make-common.in (INSTALL): Set to @INSTALL@. | |
634 | (INSTALL_XFORM, INSTALL_XFORM1): Remove. | |
635 | (install-common): Depend upon installdirs. Use | |
636 | $(program_transform_name) directly, rather than using | |
637 | $(INSTALL_XFORM). | |
638 | (installdirs): New target. | |
639 | * Makefile.in (INSTALL): Set to @INSTALL@. | |
640 | (INSTALL_XFORM, INSTALL_XFORM1): Remove. | |
641 | (install-man): Depend upon installdirs. Use | |
642 | $(program_transform_name) directly, rather than using | |
643 | $(INSTALL_XFORM). | |
644 | (installdirs): New target. | |
645 | ||
7ec396d2 AC |
646 | Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com> |
647 | ||
648 | * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to | |
649 | be overriden. | |
650 | ||
651 | Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
652 | ||
653 | * sim-basics.h: Only bring in config.h and tconfig.h if | |
654 | HAVE_CONFIG_H. | |
655 | ||
656 | Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
657 | ||
658 | * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit | |
659 | numbering convention of the target. | |
660 | * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE | |
661 | and WITH_TARGET_WORD_MSB. | |
662 | (sim_config): When possible, check for consistency with bitsize | |
663 | and msb. | |
664 | ||
665 | * sim-bits.h: Allow MSB to be other than zero. | |
666 | * sim-bits.c: Ditto. | |
667 | * sim-n-bits.h: Ditto. | |
668 | ||
669 | * sim-bits.h (MSMASK*): New macros - converce to LSMASK*. | |
670 | * sim-n-bits.h (MSMASKEDn): Ditto. | |
671 | ||
672 | Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com> | |
673 | ||
674 | * Makefile.in (INSTALL): Change install.sh to install-sh. | |
675 | ||
25a9c90b DE |
676 | Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com> |
677 | ||
678 | * sim-base.h (sim_state_base): Move `magic' to end of struct. | |
679 | ||
b4d88827 AC |
680 | Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
681 | ||
682 | * run.c (main): Check that a program to run was specified. | |
683 | ||
08db4a65 AC |
684 | Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
685 | ||
686 | * aclocal.m4 (AC_TYPE_SIGNAL): Add check. | |
687 | ||
688 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
689 | * config.in: Ditto. | |
690 | ||
fbda74b1 DE |
691 | Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com> |
692 | ||
21bfad86 DE |
693 | * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here, |
694 | * sim-config.h: To here. | |
695 | ||
00d74d3e DE |
696 | * Make-common.in (SIM_EXTRA_DEPS): New config var. |
697 | (sim_main_headers): Define. | |
698 | (sim-*.o): Depend on $(SIM_EXTRA_DEPS). | |
699 | (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in. | |
700 | (clean): Use it. | |
701 | (sim-utils.o): Add rule for. | |
702 | * sim-utils.o: New file. | |
703 | * sim-basics.h: #include sim-base.h. | |
704 | (zalloc): Make argument unsigned long. | |
705 | * sim-base.h: New file. | |
706 | * sim-inline.h (SIM_IO support): Delete. | |
707 | * sim-io.h: Delete inline support. | |
708 | * sim-io.c: Likewise. sim-state.h renamed to sim-main.h. | |
709 | * sim-config.c: sim-state.h renamed to sim-main.h. | |
710 | * sim-core.c: Likewise. | |
711 | * sim-events.c: Likewise. | |
712 | ||
bcd1475a DE |
713 | * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open. |
714 | ||
fbda74b1 DE |
715 | * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h. |
716 | (sim-debug): Allow arguments. Define WITH_DEBUG in addition to | |
717 | -DDEBUG. | |
718 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
719 | ||
a35e91c3 AC |
720 | Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
721 | ||
722 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
723 | ||
724 | Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
725 | ||
726 | * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT, | |
727 | WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these | |
728 | are defined by the configure. | |
729 | ||
730 | * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure. | |
731 | ||
732 | * aclocal.m4 (floating-point, xor-endian, alignment, smp, | |
733 | reserved-bits): Always define. | |
734 | ||
735 | * sim-config.h, sim-config.c (sim_config): New function - and new | |
736 | file - co-ordinate the setting/checking of the common simulator | |
737 | configuration options. | |
738 | ||
739 | * Make-common.in (sim-config.o): Add rule. | |
740 | ||
741 | Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com> | |
742 | ||
743 | * callback.c (os_{,e}vprintf_filtered): Change stdarg type to | |
744 | va_list from void *, since va_list might not be a pointer type. | |
745 | ||
746 | Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
747 | ||
748 | * sim-n-endian.h (offset_N): Correct assertion - word and sub word | |
749 | in wrong order. | |
750 | (offset_N): Correct computation of LE offset. | |
751 | ||
752 | * sim-io.c (sim_io_error): Include a new line when reporting | |
753 | errors. | |
754 | ||
755 | * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last | |
756 | `/'. | |
757 | ||
aa7cec3f JL |
758 | Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com) |
759 | ||
760 | * run.c: Include alloca-conf.h. | |
7c058c9e JL |
761 | |
762 | * callback.c (os_evprintf_filtered): Fix typo. | |
763 | ||
fa21d299 AC |
764 | Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
765 | ||
766 | * run.c (string.h, strings.h, stdlib.h): Include. | |
767 | ||
768 | * sim-events.c (sim_events_tick): Recent cleanup failed to return | |
769 | 0 when nothing pending. | |
770 | ||
771 | * run.c (sim_size, sim_trace): Plicate GCC - these two functions | |
772 | will soon be going away. | |
773 | (getopt): Plicate GCC. | |
774 | ||
775 | * sim-endian.c (sim-io.h): Plicate GCC. | |
776 | * sim-bits.c (sim-io.h): Ditto. | |
777 | * sim-n-bits.h (ROTn): Ditto. | |
778 | ||
779 | * sim-io.c (sim_io_error): Correct check for NULL. | |
780 | ||
781 | * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering | |
782 | the __FILE__. | |
783 | * sim-events.c: Use SIM_FILTER_PATH to filter out the filename | |
784 | path. | |
785 | ||
786 | Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
787 | ||
788 | * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of | |
789 | SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments. | |
790 | ||
4a5fb09d AC |
791 | Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
792 | ||
793 | * sim-alu.h: Include sim-xcat.h. | |
794 | ||
d11d59ac AC |
795 | Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
796 | ||
797 | * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c, | |
798 | sim-events.c, sim-inline.c, sim-io.c): Define rules for building | |
799 | these. | |
800 | ||
801 | * sim-events.c (sim_events_at_large_int): New function. Just | |
802 | schedules an event every large-int ticks. | |
803 | (sim_events_init): Call. | |
804 | (sim_events_tick, sim_events_process): Move async handing to | |
805 | sim_events_process. Move timer decrement so that it occures after | |
806 | events have been processed. | |
807 | ||
808 | * sim-basics.h (struct _engine): Remove declaration. | |
809 | ||
810 | * sim-events.h, sim-events.c: Rename type to sim_events. Prefix | |
811 | everything with same. Rename global struct to SIM_DESC. | |
812 | * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core. | |
813 | * sim-io.h, sim-io.c: Ditto. | |
814 | ||
815 | * sim-assert.h: New file. Optional assertion checking macros. | |
816 | * sim-io.c (sim_io_error): Make just this function tolerant to | |
817 | null pointers. | |
818 | ||
819 | * sim-xcat.h: New file. Define concatenate macros. | |
820 | * sim-basics.h (XCONCAT*): Move to sim-xcat.h. | |
821 | * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include | |
822 | concat macros. | |
823 | ||
824 | ||
752517cc AC |
825 | Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
826 | ||
827 | * sim-bits.h (LSMASK): New macro. Create mask of LS bits. | |
828 | ||
86eb1e29 AC |
829 | Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
830 | ||
831 | * sim-inline.h: Add definitions for sim-types. | |
832 | (ALL_BY_MODULE): New macro, encapsulate full inlining by the | |
833 | module. | |
834 | ||
231de1b8 AC |
835 | Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
836 | ||
837 | * sim-events.h: Remove defunct reference to callback struct. | |
838 | ||
a77aa7ec AC |
839 | Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
840 | ||
841 | * configure: Re-generate. | |
842 | ||
843 | Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
844 | ||
845 | * Make-common.in (CSEARCH): Do not include the gdb directory in | |
846 | the search path. | |
847 | ||
848 | Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
849 | ||
850 | * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE, | |
851 | SIM_WARNING): Drop, requiring the simulator specific Makefile.in | |
852 | to explicitly incorporate these. | |
853 | ||
854 | * aclocal.m4 (--enable-sim-alignment); New option. Strongly | |
855 | specify the alignment restrictions of the target architecture - | |
856 | without this option all alignment restrictions are accomodated. | |
857 | (--enable-sim-assert): New option. Conditionally compile in | |
858 | assertion statements. | |
859 | (--enable-sim-float): New option. Strongly specify the target's | |
860 | floating point support. | |
861 | (--enable-sim-hardware): New option. Specify the hardware devices | |
862 | included in the simulation. | |
863 | (--enable-sim-packages): New option. Specify the hardware | |
864 | packages included in the simulation. | |
865 | (--enable-sim-regparm): New option. Specify that parameters be | |
866 | passed in registers instead of on the stack. | |
867 | (--enable-sim-reserved-bits): New option. Specify that reserved | |
868 | bits within an instruction are are correctly set. | |
869 | (--enable-sim-smp): New option. Specify the level of SMP support | |
870 | to be included in the simulator. | |
871 | (--enable-sim-stdcall): New option. Specify an alternative | |
872 | function call convention. | |
873 | (--enable-sim-xor-endian): New option. Configure xor-endian | |
874 | support used by some targets to implement bi-endian support. | |
875 | ||
f2de7dfd AC |
876 | Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
877 | ||
878 | * aclocal.m4 (--enable-sim-hostendian): New option. Allow the | |
879 | host endianness to be overridden. | |
880 | (--enable-sim-endian): Allow the target platform's byte order | |
881 | to be overridden. | |
882 | (--enable-sim-inline): Control the inlining of common components. | |
883 | (--enable-sim-bswap): For compatibility, also define WITH_BSWAP. | |
884 | (--enable-sim-warnings): Enable additional GCC compiler checks. | |
885 | * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE, | |
886 | SIM_WARNINGS): Add. | |
887 | ||
888 | * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from | |
889 | sim-*-n.h so that the names are uniq on dos machines | |
890 | * sim-core.c, sim-bits.c, sim-endian.c: Update. | |
891 | ||
499aa792 DE |
892 | Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com> |
893 | ||
894 | * run.c: #include "libiberty.h". | |
895 | (main): New locals sd,no_args,sim_argv. | |
896 | Run buildargv on -a option. Pass argv to sim_open, argv[0] | |
897 | is program name. Update call to sim_set_callbacks. | |
898 | Record result of sim_open, pass to other sim_foo routines. | |
899 | ||
fd435e9f MM |
900 | Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com> |
901 | ||
902 | * callback.c (os_printf_filtered): Do not call exit(1) or print a | |
903 | final newline. | |
904 | ||
905 | Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
906 | ||
907 | * callback.c: Add os_flush_stdout and vprintf_filtered callbacks. | |
908 | Route stdout through buffered IO. | |
909 | ||
910 | * callback.c: Add os_flush_stderr, os_write_stderr, | |
911 | os_evprintf_filtered functions to route error output through | |
912 | stderr. | |
913 | ||
914 | * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout): | |
915 | Correct return type - should be void. | |
916 | ||
917 | Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
918 | ||
919 | * sim-basics.h: Clean up. Many macro's moved to sim-inline.h. | |
920 | ||
921 | * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do | |
922 | not provide a default value as undefined indicates disable code. | |
923 | ||
924 | Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
925 | ||
926 | * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc | |
927 | directory. | |
928 | * sim-events.h, sim-events.c: Ditto. | |
929 | * sim-io.h, sim-io.c: Ditto. | |
930 | ||
b3e426bc AC |
931 | Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
932 | ||
933 | * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation. | |
934 | ||
935 | * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's | |
936 | extract the tail or least signifiant bits from an integer of the | |
937 | specified size. | |
938 | ||
939 | * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if | |
940 | WITH_TARGET_BITSIZE so that the compilation will fail when an | |
941 | unsupported bitsize value is defined. | |
942 | ||
943 | (INSERTED*): Convert to functions. | |
944 | (EXTRACTED*): Ditto. | |
945 | ||
946 | (SIGN_EXTEND, SEXT): Change to more terse name. | |
947 | ||
17bbcaad AC |
948 | Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
949 | ||
950 | * sim-inline.h: Allow explicit control over which .c files will be | |
951 | included by their header. | |
952 | ||
953 | * sim-inline.h: Allow explicit control over which .c files use the | |
954 | alternative - REGPARM - parameter passing mechanism. | |
955 | ||
956 | * sim-inline.h, sim-inline.c: Don't attempt to include any of | |
957 | icache.c, idecode.c, semantics.c or support.c. Those names are | |
958 | not generally applicable. | |
959 | ||
b3e426bc AC |
960 | Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
961 | ||
962 | * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts | |
963 | in a fashion similar to sim-endian-n. | |
964 | ||
965 | * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include | |
966 | both value and address macro's. | |
967 | ||
968 | Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
969 | ||
970 | * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in. | |
971 | ||
972 | * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more | |
973 | generic L_word, H_word macro's. | |
974 | ||
17bbcaad AC |
975 | Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com> |
976 | ||
977 | * sim-basics.h: Borrow code from ppc directory. | |
978 | * sim-bits.c: Ditto. | |
979 | * sim-bits.h: Ditto. | |
980 | * sim-config.h: Ditto. | |
981 | * sim-endian-n.h: Ditto. | |
982 | * sim-endian.c: Ditto. | |
983 | * sim-endian.h: Ditto. | |
984 | * sim-inline.c: Ditto. | |
985 | * sim-inline.h: Ditto. | |
986 | * sim-types.h: Ditto. | |
987 | ||
988 | Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com> | |
989 | ||
990 | * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available | |
991 | all the ALU size alternatives and then auto-configure a default. | |
992 | ||
993 | * sim-alu.h: Copy ppc/idecode_expression.h. | |
994 | ||
995 | Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com> | |
996 | ||
997 | * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions, | |
998 | sign extend a bit within a value. | |
999 | ||
1000 | * sim-endian.h, sim-endian-n.h (offset_N): New functions - return | |
1001 | a pointer into the middle of a host word. | |
1002 | * sim-endian.h (MS2W_4, LS2W_4): Use this function. | |
1003 | ||
1004 | Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com> | |
1005 | ||
1006 | * callback.c: If HAVE_CONFIG_H is defined, include config.h from | |
1007 | autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get | |
1008 | appropriate definitions of read, write, etc. Add prototype for | |
1009 | system. | |
1010 | ||
1cc9ed29 DE |
1011 | Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com> |
1012 | ||
1013 | * Makefile.in (libcommon.a): Delete. | |
1014 | (callback.o,targ-map.o): Delete, moved to Make-common.in. | |
1015 | (gentmap,targ-vals.h,targ-map.c): Likewise. | |
1016 | (run-autoconf): Delete. | |
1017 | * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile. | |
1018 | (common makefile fragment): Moved back into ... | |
1019 | * Make-common.in: Resurrect. | |
1020 | * configure.in (AC_LINK_FILES): Delete, unnecessary now. | |
1021 | * configure: Regenerated. | |
1022 | ||
8cd89e77 DE |
1023 | Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com> |
1024 | ||
1025 | * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here. | |
1026 | (SIM_AC_OUTPUT): To here. | |
1027 | ||
76e2c9ae SG |
1028 | Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com) |
1029 | ||
1030 | * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in | |
1031 | comments and single quotes. Fixes a problem found on hpux. | |
1032 | ||
80b7b3a5 SG |
1033 | Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com) |
1034 | ||
e1dfb8c5 | 1035 | * aclocal.m4: Remove Make-common.in from dependencies. |
42653e99 | 1036 | * (distclean): Remove targ-vals.def. |
e1dfb8c5 | 1037 | |
80b7b3a5 SG |
1038 | * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in |
1039 | into here. Makes insertion into makefiles easier. Also, change | |
1040 | the way that callback.o, gentmap, targ-vals.h, targ-map.c, | |
1041 | targ-map.o, and run are built. They are now built in the | |
1042 | individual simulator directories, taking sources from ../common as | |
1043 | necessary. This replaces the merging of libcommon.a into | |
1044 | linsim.a, which was problematic for the WinGDB build process. | |
1045 | * run.c: Include config.h from . instead of ../common. | |
1046 | * Make-common.in: Remove. It's no longer necessary. | |
1047 | ||
1048 | Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com> | |
1049 | ||
1050 | * Make-common.in (ALL_CLAGS): Put CFLAGS at the end. | |
1051 | (.c.o): Put $(ALL_CFLAGS) before the file being compiled. | |
1052 | ||
1053 | Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com> | |
1054 | ||
1055 | * run.c (main): Set target_byte_order before call to sim_open. | |
1056 | ||
966f47b4 DE |
1057 | Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com> |
1058 | ||
1059 | * callback.c: #include <stdlib.h> | |
1060 | (os_error): New function. | |
1061 | (default_callback): Add os_error. | |
1062 | ||
1063 | Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com> | |
1064 | ||
1065 | * Make-common.in (Makefile): Set CONFIG_HEADERS="". | |
1066 | * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host | |
1067 | specific. | |
1068 | (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="". | |
1069 | ||
1070 | Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com> | |
1071 | ||
1072 | * run.c: #include ../common/config.h, tconfig.h. | |
1073 | (myname): New static global. | |
1074 | (main): Recognize new options -a, -c. Also recognize -h if h8/300. | |
1075 | Only process -c ifdef SIM_HAVE_SIMCACHE. | |
1076 | Only process -p/-s ifdef SIM_HAVE_PROFILE. | |
1077 | Parse program name from argv[0] and use in error messages. | |
1078 | Pass sim_args to sim_open. Pass prog_args to sim_create_inferior. | |
1079 | Add support for incomplete h8/300 termination indicators. | |
1080 | (usage): Make more verbose. | |
1081 | * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files. | |
1082 | * Makefile.in,Make-common.in,callback.c: New files. | |
1083 | * nltvals.def,gentmap.c,gentvals.sh: New files. | |
1084 | ||
1085 | Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com> | |
1086 | ||
1087 | * run.c: Include stdarg.h if __STDC__. | |
1088 | ||
1089 | Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com) | |
1090 | ||
1091 | * run.c (main): Don't print out anything if the signal | |
1092 | number is zero (ie no signal). | |
1093 | ||
57bc1a72 MM |
1094 | Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
1095 | ||
1096 | * run.c (main): Print out if the program raised a signal. | |
1097 | ||
1098 | Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1099 | ||
1100 | * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name. | |
1101 | (main): Ditto. | |
1102 | ||
3733d109 JSC |
1103 | Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk> |
1104 | ||
1105 | * run.c (main): Explicitly cast malloc() parameter. | |
1106 | ||
9b280a86 MM |
1107 | Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
1108 | ||
1109 | * run.c (sim_bfd): New global to hold the bfd pointer for the | |
1110 | executable. | |
1111 | (main): Initialize sim_bfd. | |
1112 | ||
1113 | Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com> | |
1114 | ||
1115 | * run.c (main): Use new bfd_big_endian macro. | |
1116 | ||
1117 | Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk> | |
1118 | ||
1119 | * run.c (main): Removed SH specific comments, so source is | |
1120 | generic. Also updated to only load relevant sections. Moved | |
1121 | sim_open() to after callback attach (to match GDB). | |
1122 | ||
1123 | * run.1: Removed SH specific comments. | |
1124 | ||
3be50301 JW |
1125 | Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com> |
1126 | ||
1127 | * run.c (main): Always return sigrc at end. | |
1128 | ||
1129 | Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com> | |
1130 | ||
1131 | * run.c (main): Print error diagnostic and exit if bfd_openr() or | |
1132 | bfd_check_format() fails. | |
1133 | ||
f025d903 SC |
1134 | Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com> |
1135 | ||
1136 | * run.c, run.1: From sh directory. | |
1137 | ||
1138 |