Remove need to update <targ>/Makefile.in when adding optional options
[deliverable/binutils-gdb.git] / sim / mips / ChangeLog
1 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
2
3 * configure: Regenerated to track ../common/aclocal.m4 changes.
4
5 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
6
7 * Makefile.in (SIM_ALIGNMENT, SIM_ENDIAN, SIM_HOSTENDIAN,
8 SIM_RESERVED_BITS): Delete, moved to common.
9 (SIM_EXTRA_CFLAGS): Update.
10
11 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
12
13 * configure.in: Configure non-strict memory alignment.
14 * configure: Regenerated to track ../common/aclocal.m4 changes.
15
16 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
17
18 * configure: Regenerated to track ../common/aclocal.m4 changes.
19
20 Sat Sep 20 14:07:28 1997 Gavin Koch <gavin@cygnus.com>
21
22 * gencode.c (SDBBP,DERET): Added (3900) insns.
23 (RFE): Turn on for 3900.
24 * interp.c (DebugBreakPoint,DEPC,Debug,Debug_*): Added.
25 (dsstate): Made global.
26 (SUBTARGET_R3900): Added.
27 (CANCELDELAYSLOT): New.
28 (SignalException): Ignore SystemCall rather than ignore and
29 terminate. Add DebugBreakPoint handling.
30 (decode_coproc): New insns RFE, DERET; and new registers Debug
31 and DEPC protected by SUBTARGET_R3900.
32 (sim_engine_run): Use CANCELDELAYSLOT rather than clearing
33 bits explicitly.
34 * Makefile.in,configure.in: Add mips subtarget option.
35 * configure: Update.
36
37 Fri Sep 19 09:33:27 1997 Gavin Koch <gavin@cygnus.com>
38
39 * gencode.c: Add r3900 (tx39).
40
41 start-sanitize-tx19
42 * gencode.c: Fix some configuration problems by improving
43 the relationship between tx19 and tx39.
44 end-sanitize-tx19
45
46 Tue Sep 16 15:52:04 1997 Gavin Koch <gavin@cygnus.com>
47
48 * gencode.c (build_instruction): Don't need to subtract 4 for
49 JALR, just 2.
50
51 Tue Sep 16 11:32:28 1997 Gavin Koch <gavin@cygnus.com>
52
53 * interp.c: Correct some HASFPU problems.
54
55 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
56
57 * configure: Regenerated to track ../common/aclocal.m4 changes.
58
59 Fri Sep 12 12:01:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
60
61 * interp.c (mips_options): Fix samples option short form, should
62 be `x'.
63
64 Thu Sep 11 09:35:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
65
66 * interp.c (sim_info): Enable info code. Was just returning.
67
68 Tue Sep 9 17:30:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
69
70 * interp.c (decode_coproc): Clarify warning about unsuported MTC0,
71 MFC0.
72
73 Tue Sep 9 16:28:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
74
75 * gencode.c (build_instruction): Use SIGNED64 for 64 bit
76 constants.
77 (build_instruction): Ditto for LL.
78
79 start-sanitize-tx19
80 Sun Sep 7 16:05:46 1997 Gavin Koch <gavin@cygnus.com>
81
82 * mips/configure.in, mips/gencode: Add tx19/r1900.
83
84 end-sanitize-tx19
85 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
86
87 * configure: Regenerated to track ../common/aclocal.m4 changes.
88
89 start-sanitize-r5900
90 Mon Sep 1 18:43:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
91
92 * gencode.c (build_instruction): For "pabsw" and "pabsh", check
93 for overflow due to ABS of MININT, set result to MAXINT.
94 (build_instruction): For "psrlvw", signextend bit 31.
95
96 end-sanitize-r5900
97 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
98
99 * configure: Regenerated to track ../common/aclocal.m4 changes.
100 * config.in: Ditto.
101
102 Wed Aug 27 14:12:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
103
104 * interp.c (sim_open): Add call to sim_analyze_program, update
105 call to sim_config.
106
107 Tue Aug 26 10:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
108
109 * interp.c (sim_kill): Delete.
110 (sim_create_inferior): Add ABFD argument. Set PC from same.
111 (sim_load): Move code initializing trap handlers from here.
112 (sim_open): To here.
113 (sim_load): Delete, use sim-hload.c.
114
115 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
116
117 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
118
119 * configure: Regenerated to track ../common/aclocal.m4 changes.
120 * config.in: Ditto.
121
122 Mon Aug 25 15:59:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
123
124 * interp.c (sim_open): Add ABFD argument.
125 (sim_load): Move call to sim_config from here.
126 (sim_open): To here. Check return status.
127
128 start-sanitize-r5900
129 * gencode.c (build_instruction): Do not define x8000000000000000,
130 x7FFFFFFFFFFFFFFF, or xFFFFFFFF80000000.
131
132 end-sanitize-r5900
133 start-sanitize-r5900
134 Mon Jul 28 19:49:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
135
136 * gencode.c (build_instruction): For "pdivw", "pdivbw" and
137 "pdivuw" check for overflow due to signed divide by -1.
138
139 end-sanitize-r5900
140 Fri Jul 25 15:00:45 1997 Gavin Koch <gavin@cygnus.com>
141
142 * gencode.c (build_instruction): Two arg MADD should
143 not assign result to $0.
144
145 start-sanitize-r5900
146 Thu Jul 10 11:58:48 1997 Andrew Cagney <cagney@critters.cygnus.com>
147
148 * gencode.c (build_instruction): For "ppac5" use unsigned
149 arrithmetic so that the sign bit doesn't smear when right shifted.
150 (build_instruction): For "pdiv" perform sign extension when
151 storing results in HI and LO.
152 (build_instructions): For "pdiv" and "pdivbw" check for
153 divide-by-zero.
154 (build_instruction): For "pmfhl.slw" update hi part of dest
155 register as well as low part.
156 (build_instruction): For "pmfhl" portably handle long long values.
157 (build_instruction): For "pmfhl.sh" correctly negative values.
158 Store half words 2 and three in the correct place.
159 (build_instruction): For "psllvw", sign extend value after shift.
160
161 end-sanitize-r5900
162 Thu Jun 26 12:13:17 1997 Angela Marie Thomas (angela@cygnus.com)
163
164 * sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
165 * sim/mips/configure.in: Regenerate.
166
167 Wed Jul 9 10:29:21 1997 Andrew Cagney <cagney@critters.cygnus.com>
168
169 * interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
170 signed8, unsigned8 et.al. types.
171
172 start-sanitize-r5900
173 * gencode.c (build_instruction): For PMULTU* do not sign extend
174 registers. Make generated code easier to debug.
175
176 end-sanitize-r5900
177 * interp.c (SUB_REG_FETCH): Handle both little and big endian
178 hosts when selecting subreg.
179
180 start-sanitize-r5900
181 Tue Jul 8 18:07:20 1997 Andrew Cagney <cagney@andros.cygnus.com>
182
183 * gencode.c (type_for_data_len): For 32bit operations concerned
184 with overflow, perform op using 64bits.
185 (build_instruction): For PADD, always compute operation using type
186 returned by type_for_data_len.
187 (build_instruction): For PSUBU, when overflow, saturate to zero as
188 actually underflow.
189
190 end-sanitize-r5900
191 Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com)
192
193 start-sanitize-r5900
194 * gencode.c (build_instruction): Handle "pext5" according to
195 version 1.95 of the r5900 ISA.
196
197 * gencode.c (build_instruction): Handle "ppac5" according to
198 version 1.95 of the r5900 ISA.
199
200 end-sanitize-r5900
201 * interp.c (sim_engine_run): Reset the ZERO register to zero
202 regardless of FEATURE_WARN_ZERO.
203 * gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
204
205 Wed Jun 4 10:43:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
206
207 * interp.c (decode_coproc): Implement MTC0 N, CAUSE.
208 (SignalException): For BreakPoints ignore any mode bits and just
209 save the PC.
210 (SignalException): Always set the CAUSE register.
211
212 Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
213
214 * interp.c (SignalException): Clear the simDELAYSLOT flag when an
215 exception has been taken.
216
217 * interp.c: Implement the ERET and mt/f sr instructions.
218
219 start-sanitize-r5900
220 Mon Jun 2 23:28:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
221
222 * gencode.c (build_instruction): For paddu, extract unsigned
223 sub-fields.
224
225 * gencode.c (build_instruction): Saturate padds instead of padd
226 instructions.
227
228 end-sanitize-r5900
229 Sat May 31 00:44:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
230
231 * interp.c (SignalException): Don't bother restarting an
232 interrupt.
233
234 Fri May 30 23:41:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
235
236 * interp.c (SignalException): Really take an interrupt.
237 (interrupt_event): Only deliver interrupts when enabled.
238
239 Tue May 27 20:08:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
240
241 * interp.c (sim_info): Only print info when verbose.
242 (sim_info) Use sim_io_printf for output.
243
244 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
245
246 * interp.c (CoProcPresent): Add UNUSED attribute - not used by all
247 mips architectures.
248
249 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
250
251 * interp.c (sim_do_command): Check for common commands if a
252 simulator specific command fails.
253
254 Thu May 22 09:32:03 1997 Gavin Koch <gavin@cygnus.com>
255
256 * interp.c (sim_engine_run): ifdef out uses of simSTOP, simSTEP
257 and simBE when DEBUG is defined.
258
259 Wed May 21 09:08:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
260
261 * interp.c (interrupt_event): New function. Pass exception event
262 onto exception handler.
263
264 * configure.in: Check for stdlib.h.
265 * configure: Regenerate.
266
267 * gencode.c (build_instruction): Add UNUSED attribute to tempS
268 variable declaration.
269 (build_instruction): Initialize memval1.
270 (build_instruction): Add UNUSED attribute to byte, bigend,
271 reverse.
272 (build_operands): Ditto.
273
274 * interp.c: Fix GCC warnings.
275 (sim_get_quit_code): Delete.
276
277 * configure.in: Add INLINE, ENDIAN, HOSTENDIAN and WARNINGS.
278 * Makefile.in: Ditto.
279 * configure: Re-generate.
280
281 * Makefile.in (SIM_OBJS): Add sim-watch.o module.
282
283 Tue May 20 15:08:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
284
285 * interp.c (mips_option_handler): New function parse argumes using
286 sim-options.
287 (myname): Replace with STATE_MY_NAME.
288 (sim_open): Delete check for host endianness - performed by
289 sim_config.
290 (simHOSTBE, simBE): Delete, replaced by sim-endian flags.
291 (sim_open): Move much of the initialization from here.
292 (sim_load): To here. After the image has been loaded and
293 endianness set.
294 (sim_open): Move ColdReset from here.
295 (sim_create_inferior): To here.
296 (sim_open): Make FP check less dependant on host endianness.
297
298 * Makefile.in (SIM_RUN_OBJS): Set to nrun.o - use new version or
299 run.
300 * interp.c (sim_set_callbacks): Delete.
301
302 * interp.c (membank, membank_base, membank_size): Replace with
303 STATE_MEMORY, STATE_MEM_SIZE, STATE_MEM_BASE.
304 (sim_open): Remove call to callback->init. gdb/run do this.
305
306 * interp.c: Update
307
308 * sim-main.h (SIM_HAVE_FLATMEM): Define.
309
310 * interp.c (big_endian_p): Delete, replaced by
311 current_target_byte_order.
312
313 Tue May 20 13:55:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
314
315 * interp.c (host_read_long, host_read_word, host_swap_word,
316 host_swap_long): Delete. Using common sim-endian.
317 (sim_fetch_register, sim_store_register): Use H2T.
318 (pipeline_ticks): Delete. Handled by sim-events.
319 (sim_info): Update.
320 (sim_engine_run): Update.
321
322 Tue May 20 13:42:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
323
324 * interp.c (sim_stop_reason): Move code determining simEXCEPTION
325 reason from here.
326 (SignalException): To here. Signal using sim_engine_halt.
327 (sim_stop_reason): Delete, moved to common.
328
329 Tue May 20 10:19:48 1997 Andrew Cagney <cagney@b2.cygnus.com>
330
331 * interp.c (sim_open): Add callback argument.
332 (sim_set_callbacks): Delete SIM_DESC argument.
333 (sim_size): Ditto.
334
335 Mon May 19 18:20:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
336
337 * Makefile.in (SIM_OBJS): Add common modules.
338
339 * interp.c (sim_set_callbacks): Also set SD callback.
340 (set_endianness, xfer_*, swap_*): Delete.
341 (host_read_word, host_read_long, host_swap_word, host_swap_long):
342 Change to functions using sim-endian macros.
343 (control_c, sim_stop): Delete, use common version.
344 (simulate): Convert into.
345 (sim_engine_run): This function.
346 (sim_resume): Delete.
347
348 * interp.c (simulation): New variable - the simulator object.
349 (sim_kind): Delete global - merged into simulation.
350 (sim_load): Cleanup. Move PC assignment from here.
351 (sim_create_inferior): To here.
352
353 * sim-main.h: New file.
354 * interp.c (sim-main.h): Include.
355
356 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
357
358 * configure: Regenerated to track ../common/aclocal.m4 changes.
359
360 Wed Apr 23 17:32:19 1997 Doug Evans <dje@canuck.cygnus.com>
361
362 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
363
364 Mon Apr 21 17:16:13 1997 Gavin Koch <gavin@cygnus.com>
365
366 * gencode.c (build_instruction): DIV instructions: check
367 for division by zero and integer overflow before using
368 host's division operation.
369
370 Thu Apr 17 03:18:14 1997 Doug Evans <dje@canuck.cygnus.com>
371
372 * Makefile.in (SIM_OBJS): Add sim-load.o.
373 * interp.c: #include bfd.h.
374 (target_byte_order): Delete.
375 (sim_kind, myname, big_endian_p): New static locals.
376 (sim_open): Set sim_kind, myname. Move call to set_endianness to
377 after argument parsing. Recognize -E arg, set endianness accordingly.
378 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
379 load file into simulator. Set PC from bfd.
380 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
381 (set_endianness): Use big_endian_p instead of target_byte_order.
382
383 Wed Apr 16 17:55:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
384
385 * interp.c (sim_size): Delete prototype - conflicts with
386 definition in remote-sim.h. Correct definition.
387
388 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
389
390 * configure: Regenerated to track ../common/aclocal.m4 changes.
391 * config.in: Ditto.
392
393 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
394
395 * interp.c (sim_open): New arg `kind'.
396
397 * configure: Regenerated to track ../common/aclocal.m4 changes.
398
399 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
400
401 * configure: Regenerated to track ../common/aclocal.m4 changes.
402
403 Tue Mar 25 11:38:22 1997 Doug Evans <dje@canuck.cygnus.com>
404
405 * interp.c (sim_open): Set optind to 0 before calling getopt.
406
407 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
408
409 * configure: Regenerated to track ../common/aclocal.m4 changes.
410
411 Mon Mar 17 10:52:59 1997 Gavin Koch <gavin@cetus.cygnus.com>
412
413 * interp.c : Replace uses of pr_addr with pr_uword64
414 where the bit length is always 64 independent of SIM_ADDR.
415 (pr_uword64) : added.
416
417 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
418
419 * configure: Re-generate.
420
421 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
422
423 * configure: Regenerate to track ../common/aclocal.m4 changes.
424
425 Thu Mar 13 12:51:36 1997 Doug Evans <dje@canuck.cygnus.com>
426
427 * interp.c (sim_open): New SIM_DESC result. Argument is now
428 in argv form.
429 (other sim_*): New SIM_DESC argument.
430
431 start-sanitize-r5900
432 Wed Feb 26 18:32:21 1997 Gavin Koch <gavin@cygnus.com>
433
434 * gencode.c (POP_AND,POP_OR,POP_NOR,POP_XOR):
435 Change values to avoid overloading DOUBLEWORD which is tested
436 for all insns.
437 * gencode.c: reinstate "offending code".
438
439 end-sanitize-r5900
440 Mon Feb 24 22:47:14 1997 Dawn Perchik <dawn@cygnus.com>
441
442 * interp.c: Fix printing of addresses for non-64-bit targets.
443 (pr_addr): Add function to print address based on size.
444 start-sanitize-r5900
445 * gencode.c: #ifdef out offending code until a permanent fix
446 can be added. Code is causing build errors for non-5900 mips targets.
447 end-sanitize-r5900
448
449 start-sanitize-r5900
450 Thu Feb 20 10:40:24 1997 Gavin Koch <gavin@cetus.cygnus.com>
451
452 * gencode.c (process_instructions): Correct test for ISA dependent
453 architecture bits in isa field of MIPS_DECODE.
454
455 end-sanitize-r5900
456 Wed Feb 19 14:42:09 1997 Mark Alexander <marka@cygnus.com>
457
458 * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
459
460 start-sanitize-r5900
461 Tue Feb 18 17:03:47 1997 Gavin Koch <gavin@cygnus.com>
462
463 * gencode.c (MIPS_DECODE): Correct instruction feature flags for
464 PMADDUW.
465
466 end-sanitize-r5900
467 Thu Feb 13 14:08:30 1997 Ian Lance Taylor <ian@cygnus.com>
468
469 * gencode.c (build_mips16_operands): Correct computation of base
470 address for extended PC relative instruction.
471
472 start-sanitize-r5900
473 Fri Feb 7 11:12:44 1997 Gavin Koch <gavin@cygnus.com>
474
475 * Makefile.in, configure, configure.in, gencode.c,
476 interp.c, support.h: add r5900.
477
478 end-sanitize-r5900
479 Thu Feb 6 17:16:15 1997 Ian Lance Taylor <ian@cygnus.com>
480
481 * interp.c (mips16_entry): Add support for floating point cases.
482 (SignalException): Pass floating point cases to mips16_entry.
483 (ValueFPR): Don't restrict fmt_single and fmt_word to even
484 registers.
485 (StoreFPR): Likewise. Also, don't clobber fpr + 1 for fmt_single
486 or fmt_word.
487 (COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
488 and then set the state to fmt_uninterpreted.
489 (COP_SW): Temporarily set the state to fmt_word while calling
490 ValueFPR.
491
492 Tue Feb 4 16:48:25 1997 Ian Lance Taylor <ian@cygnus.com>
493
494 * gencode.c (build_instruction): The high order may be set in the
495 comparison flags at any ISA level, not just ISA 4.
496
497 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
498
499 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
500 COMMON_{PRE,POST}_CONFIG_FRAG instead.
501 * configure.in: sinclude ../common/aclocal.m4.
502 * configure: Regenerated.
503
504 Fri Jan 31 11:11:45 1997 Ian Lance Taylor <ian@cygnus.com>
505
506 * configure: Rebuild after change to aclocal.m4.
507
508 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
509
510 * configure configure.in Makefile.in: Update to new configure
511 scheme which is more compatible with WinGDB builds.
512 * configure.in: Improve comment on how to run autoconf.
513 * configure: Re-run autoconf to get new ../common/aclocal.m4.
514 * Makefile.in: Use autoconf substitution to install common
515 makefile fragment.
516
517 Wed Jan 8 12:39:03 1997 Jim Wilson <wilson@cygnus.com>
518
519 * gencode.c (build_instruction): Use BigEndianCPU instead of
520 ByteSwapMem.
521
522 Thu Jan 02 22:23:04 1997 Mark Alexander <marka@cygnus.com>
523
524 * interp.c (sim_monitor): Make output to stdout visible in
525 wingdb's I/O log window.
526
527 Tue Dec 31 07:04:00 1996 Mark Alexander <marka@cygnus.com>
528
529 * support.h: Undo previous change to SIGTRAP
530 and SIGQUIT values.
531
532 Mon Dec 30 17:36:06 1996 Ian Lance Taylor <ian@cygnus.com>
533
534 * interp.c (store_word, load_word): New static functions.
535 (mips16_entry): New static function.
536 (SignalException): Look for mips16 entry and exit instructions.
537 (simulate): Use the correct index when setting fpr_state after
538 doing a pending move.
539
540 Sun Dec 29 09:37:18 1996 Mark Alexander <marka@cygnus.com>
541
542 * interp.c: Fix byte-swapping code throughout to work on
543 both little- and big-endian hosts.
544
545 Sun Dec 29 09:18:32 1996 Mark Alexander <marka@cygnus.com>
546
547 * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
548 with gdb/config/i386/xm-windows.h.
549
550 Fri Dec 27 22:48:51 1996 Mark Alexander <marka@cygnus.com>
551
552 * gencode.c (build_instruction): Work around MSVC++ code gen bug
553 that messes up arithmetic shifts.
554
555 Fri Dec 20 11:04:05 1996 Stu Grossman (grossman@critters.cygnus.com)
556
557 * support.h: Use _WIN32 instead of __WIN32__. Also add defs for
558 SIGTRAP and SIGQUIT for _WIN32.
559
560 Thu Dec 19 14:07:27 1996 Ian Lance Taylor <ian@cygnus.com>
561
562 * gencode.c (build_instruction) [MUL]: Cast operands to word64, to
563 force a 64 bit multiplication.
564 (build_instruction) [OR]: In mips16 mode, don't do anything if the
565 destination register is 0, since that is the default mips16 nop
566 instruction.
567
568 Mon Dec 16 14:59:38 1996 Ian Lance Taylor <ian@cygnus.com>
569
570 * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
571 (build_endian_shift): Don't check proc64.
572 (build_instruction): Always set memval to uword64. Cast op2 to
573 uword64 when shifting it left in memory instructions. Always use
574 the same code for stores--don't special case proc64.
575
576 * gencode.c (build_mips16_operands): Fix base PC value for PC
577 relative operands.
578 (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
579 jal instruction.
580 * interp.c (simJALDELAYSLOT): Define.
581 (JALDELAYSLOT): Define.
582 (INDELAYSLOT, INJALDELAYSLOT): Define.
583 (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
584
585 Tue Dec 24 22:11:20 1996 Angela Marie Thomas (angela@cygnus.com)
586
587 * interp.c (sim_open): add flush_cache as a PMON routine
588 (sim_monitor): handle flush_cache by ignoring it
589
590 Wed Dec 11 13:53:51 1996 Jim Wilson <wilson@cygnus.com>
591
592 * gencode.c (build_instruction): Use !ByteSwapMem instead of
593 BigEndianMem.
594 * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
595 (BigEndianMem): Rename to ByteSwapMem and change sense.
596 (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
597 BigEndianMem references to !ByteSwapMem.
598 (set_endianness): New function, with prototype.
599 (sim_open): Call set_endianness.
600 (sim_info): Use simBE instead of BigEndianMem.
601 (xfer_direct_word, xfer_direct_long, swap_direct_word,
602 swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
603 xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
604 ifdefs, keeping the prototype declaration.
605 (swap_word): Rewrite correctly.
606 (ColdReset): Delete references to CONFIG. Delete endianness related
607 code; moved to set_endianness.
608
609 Tue Dec 10 11:32:04 1996 Jim Wilson <wilson@cygnus.com>
610
611 * gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
612 * interp.c (CHECKHILO): Define away.
613 (simSIGINT): New macro.
614 (membank_size): Increase from 1MB to 2MB.
615 (control_c): New function.
616 (sim_resume): Rename parameter signal to signal_number. Add local
617 variable prev. Call signal before and after simulate.
618 (sim_stop_reason): Add simSIGINT support.
619 (sim_warning, sim_error, dotrace, SignalException): Define as stdarg
620 functions always.
621 (sim_warning): Delete call to SignalException. Do call printf_filtered
622 if logfh is NULL.
623 (AddressTranslation): Add #ifdef DEBUG around debugging message and
624 a call to sim_warning.
625
626 Wed Nov 27 11:53:50 1996 Ian Lance Taylor <ian@cygnus.com>
627
628 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
629 16 bit instructions.
630
631 Tue Nov 26 11:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
632
633 Add support for mips16 (16 bit MIPS implementation):
634 * gencode.c (inst_type): Add mips16 instruction encoding types.
635 (GETDATASIZEINSN): Define.
636 (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add
637 jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and
638 mtlo.
639 (MIPS16_DECODE): New table, for mips16 instructions.
640 (bitmap_val): New static function.
641 (struct mips16_op): Define.
642 (mips16_op_table): New table, for mips16 operands.
643 (build_mips16_operands): New static function.
644 (process_instructions): If PC is odd, decode a mips16
645 instruction. Break out instruction handling into new
646 build_instruction function.
647 (build_instruction): New static function, broken out of
648 process_instructions. Check modifiers rather than flags for SHIFT
649 bit count and m[ft]{hi,lo} direction.
650 (usage): Pass program name to fprintf.
651 (main): Remove unused variable this_option_optind. Change
652 ``*loptarg++'' to ``loptarg++''.
653 (my_strtoul): Parenthesize && within ||.
654 * interp.c (LoadMemory): Accept a halfword pAddr if vAddr is odd.
655 (simulate): If PC is odd, fetch a 16 bit instruction, and
656 increment PC by 2 rather than 4.
657 * configure.in: Add case for mips16*-*-*.
658 * configure: Rebuild.
659
660 Fri Nov 22 08:49:36 1996 Mark Alexander <marka@cygnus.com>
661
662 * interp.c: Allow -t to enable tracing in standalone simulator.
663 Fix garbage output in trace file and error messages.
664
665 Wed Nov 20 01:54:37 1996 Doug Evans <dje@canuck.cygnus.com>
666
667 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
668 (SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
669 * configure.in: Simplify using macros in ../common/aclocal.m4.
670 * configure: Regenerated.
671 * tconfig.in: New file.
672
673 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
674
675 * interp.c: Fix bugs in 64-bit port.
676 Use ansi function declarations for msvc compiler.
677 Initialize and test file pointer in trace code.
678 Prevent duplicate definition of LAST_EMED_REGNUM.
679
680 Tue Oct 15 11:07:06 1996 Mark Alexander <marka@cygnus.com>
681
682 * interp.c (xfer_big_long): Prevent unwanted sign extension.
683
684 Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
685
686 * interp.c (SignalException): Check for explicit terminating
687 breakpoint value.
688 * gencode.c: Pass instruction value through SignalException()
689 calls for Trap, Breakpoint and Syscall.
690
691 Thu Sep 26 11:35:17 1996 James G. Smith <jsmith@cygnus.co.uk>
692
693 * interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
694 only used on those hosts that provide it.
695 * configure.in: Add sqrt() to list of functions to be checked for.
696 * config.in: Re-generated.
697 * configure: Re-generated.
698
699 Fri Sep 20 15:47:12 1996 Ian Lance Taylor <ian@cygnus.com>
700
701 * gencode.c (process_instructions): Call build_endian_shift when
702 expanding STORE RIGHT, to fix swr.
703 * support.h (SIGNEXTEND): If the sign bit is not set, explicitly
704 clear the high bits.
705 * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
706 Fix float to int conversions to produce signed values.
707
708 Thu Sep 19 15:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
709
710 * gencode.c (MIPS_DECODE): Set UNSIGNED for multu instruction.
711 (process_instructions): Correct handling of nor instruction.
712 Correct shift count for 32 bit shift instructions. Correct sign
713 extension for arithmetic shifts to not shift the number of bits in
714 the type. Fix 64 bit multiply high word calculation. Fix 32 bit
715 unsigned multiply. Fix ldxc1 and friends to use coprocessor 1.
716 Fix madd.
717 * interp.c (CHECKHILO): Don't set HIACCESS, LOACCESS, or HLPC.
718 It's OK to have a mult follow a mult. What's not OK is to have a
719 mult follow an mfhi.
720 (Convert): Comment out incorrect rounding code.
721
722 Mon Sep 16 11:38:16 1996 James G. Smith <jsmith@cygnus.co.uk>
723
724 * interp.c (sim_monitor): Improved monitor printf
725 simulation. Tidied up simulator warnings, and added "--log" option
726 for directing warning message output.
727 * gencode.c: Use sim_warning() rather than WARNING macro.
728
729 Thu Aug 22 15:03:12 1996 Ian Lance Taylor <ian@cygnus.com>
730
731 * Makefile.in (gencode): Depend upon gencode.o, getopt.o, and
732 getopt1.o, rather than on gencode.c. Link objects together.
733 Don't link against -liberty.
734 (gencode.o, getopt.o, getopt1.o): New targets.
735 * gencode.c: Include <ctype.h> and "ansidecl.h".
736 (AND): Undefine after including "ansidecl.h".
737 (ULONG_MAX): Define if not defined.
738 (OP_*): Don't define macros; now defined in opcode/mips.h.
739 (main): Call my_strtoul rather than strtoul.
740 (my_strtoul): New static function.
741
742 Wed Jul 17 18:12:38 1996 Stu Grossman (grossman@critters.cygnus.com)
743
744 * gencode.c (process_instructions): Generate word64 and uword64
745 instead of `long long' and `unsigned long long' data types.
746 * interp.c: #include sysdep.h to get signals, and define default
747 for SIGBUS.
748 * (Convert): Work around for Visual-C++ compiler bug with type
749 conversion.
750 * support.h: Make things compile under Visual-C++ by using
751 __int64 instead of `long long'. Change many refs to long long
752 into word64/uword64 typedefs.
753
754 Wed Jun 26 12:24:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
755
756 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
757 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
758 (docdir): Removed.
759 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
760 (AC_PROG_INSTALL): Added.
761 (AC_PROG_CC): Moved to before configure.host call.
762 * configure: Rebuilt.
763
764 Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
765
766 * configure.in: Define @SIMCONF@ depending on mips target.
767 * configure: Rebuild.
768 * Makefile.in (run): Add @SIMCONF@ to control simulator
769 construction.
770 * gencode.c: Change LOADDRMASK to 64bit memory model only.
771 * interp.c: Remove some debugging, provide more detailed error
772 messages, update memory accesses to use LOADDRMASK.
773
774 Mon Jun 3 11:55:03 1996 Ian Lance Taylor <ian@cygnus.com>
775
776 * configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
777 AC_CHECK_LIB, and AC_CHECK_FUNCS. Change AC_OUTPUT to set
778 stamp-h.
779 * configure: Rebuild.
780 * config.in: New file, generated by autoheader.
781 * interp.c: Include "config.h". Include <stdlib.h>, <string.h>,
782 and <strings.h> if they exist. Replace #ifdef sun with #ifdef
783 HAVE_ANINT and HAVE_AINT, as appropriate.
784 * Makefile.in (run): Use @LIBS@ rather than -lm.
785 (interp.o): Depend upon config.h.
786 (Makefile): Just rebuild Makefile.
787 (clean): Remove stamp-h.
788 (mostlyclean): Make the same as clean, not as distclean.
789 (config.h, stamp-h): New targets.
790
791 Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
792
793 * interp.c (ColdReset): Fix boolean test. Make all simulator
794 globals static.
795
796 Wed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
797
798 * interp.c (xfer_direct_word, xfer_direct_long,
799 swap_direct_word, swap_direct_long, xfer_big_word,
800 xfer_big_long, xfer_little_word, xfer_little_long,
801 swap_word,swap_long): Added.
802 * interp.c (ColdReset): Provide function indirection to
803 host<->simulated_target transfer routines.
804 * interp.c (sim_store_register, sim_fetch_register): Updated to
805 make use of indirected transfer routines.
806
807 Fri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
808
809 * gencode.c (process_instructions): Ensure FP ABS instruction
810 recognised.
811 * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
812 system call support.
813
814 Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
815
816 * interp.c (sim_do_command): Complain if callback structure not
817 initialised.
818
819 Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
820
821 * interp.c (Convert): Provide round-to-nearest and round-to-zero
822 support for Sun hosts.
823 * Makefile.in (gencode): Ensure the host compiler and libraries
824 used for cross-hosted build.
825
826 Wed Mar 27 14:42:12 1996 James G. Smith <jsmith@cygnus.co.uk>
827
828 * interp.c, gencode.c: Some more (TODO) tidying.
829
830 Thu Mar 7 11:19:33 1996 James G. Smith <jsmith@cygnus.co.uk>
831
832 * gencode.c, interp.c: Replaced explicit long long references with
833 WORD64HI, WORD64LO, SET64HI and SET64LO macro calls.
834 * support.h (SET64LO, SET64HI): Macros added.
835
836 Wed Feb 21 12:16:21 1996 Ian Lance Taylor <ian@cygnus.com>
837
838 * configure: Regenerate with autoconf 2.7.
839
840 Tue Jan 30 08:48:18 1996 Fred Fish <fnf@cygnus.com>
841
842 * interp.c (LoadMemory): Enclose text following #endif in /* */.
843 * support.h: Remove superfluous "1" from #if.
844 * support.h (CHECKSIM): Remove stray 'a' at end of line.
845
846 Mon Dec 4 11:44:40 1995 Jamie Smith <jsmith@cygnus.com>
847
848 * interp.c (StoreFPR): Control UndefinedResult() call on
849 WARN_RESULT manifest.
850
851 Fri Dec 1 16:37:19 1995 James G. Smith <jsmith@cygnus.co.uk>
852
853 * gencode.c: Tidied instruction decoding, and added FP instruction
854 support.
855
856 * interp.c: Added dineroIII, and BSD profiling support. Also
857 run-time FP handling.
858
859 Sun Oct 22 00:57:18 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
860
861 * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
862 gencode.c, interp.c, support.h: created.
This page took 0.048931 seconds and 4 git commands to generate.