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