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