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