1 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
3 * configure: Regenerated to track ../common/aclocal.m4 changes.
5 Fri Apr 3 04:32:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
7 * mips.igen: Include tx.igen.
8 * Makefile.in (IGEN_INCLUDE): Add tx.igen.
9 * tx.igen: New file, contains MADD and MADDU.
11 * interp.c (load_memory): When shifting bytes, use LOADDRMASK not
12 the hardwired constant `7'.
13 (store_memory): Ditto.
14 (LOADDRMASK): Move definition to sim-main.h.
16 mips.igen (MTC0): Enable for r3900.
19 mips.igen (do_load_byte): Delete.
20 (do_load, do_store, do_load_left, do_load_write, do_store_left,
21 do_store_right): New functions.
22 (SW*, LW*, SD*, LD*, SH, LH, SB, LB): Use.
24 configure.in: Let the tx39 use igen again.
27 Thu Apr 2 10:59:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
29 * interp.c (sim_monitor): get_mem_info returns a 4 byte quantity,
30 not an address sized quantity. Return zero for cache sizes.
32 Wed Apr 1 23:47:53 1998 Andrew Cagney <cagney@b1.cygnus.com>
34 * mips.igen (r3900): r3900 does not support 64 bit integer
38 Wed Apr 1 08:20:31 1998 Frank Ch. Eigler <fche@cygnus.com>
40 * mips.igen (SQC2/LQC2): Make bodies sky-target-only also.
44 Mon Mar 30 18:41:43 1998 Frank Ch. Eigler <fche@cygnus.com>
46 * interp.c (decode_coproc): Continuing COP2 work.
47 (cop_[ls]q): Make sky-target-only.
49 * sim-main.h (COP_[LS]Q): Make sky-target-only.
52 Mon Mar 30 14:46:05 1998 Gavin Koch <gavin@cygnus.com>
54 * configure.in (mipstx39*-*-*): Use gencode simulator rather
56 * configure : Rebuild.
59 Sun Mar 29 17:50:11 Frank Ch. Eigler <fche@cygnus.com>
61 * interp.c (decode_coproc): Added a missing TARGET_SKY check
62 around COP2 implementation skeleton.
66 Fri Mar 27 16:19:29 1998 Frank Ch. Eigler <fche@cygnus.com>
69 * Makefile.in (SIM_SKY_OBJS): Replaced sky-vu[01].o with sky-vu.o.
71 * interp.c (sim_{load,store}_register): Use new vu[01]_device
72 static to access VU registers.
73 (decode_coproc): Added skeleton of sky COP2 (VU) instruction
74 decoding. Work in progress.
76 * mips.igen (LDCzz, SDCzz): Removed *5900 case for this
77 overlapping/redundant bit pattern.
78 (LQC2, SQC2): Added *5900 COP2 instruction skeleta. Work in
81 * sim-main.h (status_CU[012]): Added COP[n]-enabled flags for
84 * interp.c (cop_lq, cop_sq): New functions for future 128-bit
85 access to coprocessor registers.
87 * sim-main.h (COP_LQ, COP_SQ): New macro front-ends for above.
90 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
92 * configure: Regenerated to track ../common/aclocal.m4 changes.
94 Fri Mar 27 15:01:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
96 * interp.c (mips_option_handler): Iterate over MAX_NR_PROCESSORS.
98 Wed Mar 25 16:44:27 1998 Ian Carmichael <iancarm@cygnus.com>
100 * configure: Regenerated to track ../common/aclocal.m4 changes.
101 * config.in: Regenerated to track ../common/aclocal.m4 changes.
103 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
105 * configure: Regenerated to track ../common/aclocal.m4 changes.
107 Wed Mar 25 10:05:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
109 * interp.c (Max, Min): Comment out functions. Not yet used.
111 start-sanitize-vr4320
112 Wed Mar 25 10:04:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
114 * vr4320.igen (DCLZ): Pacify GCC, 64 bit arg, int format.
117 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
119 * configure: Regenerated to track ../common/aclocal.m4 changes.
121 Tue Mar 17 19:05:20 1998 Frank Ch. Eigler <fche@cygnus.com>
123 * Makefile.in (MIPS_EXTRA_LIBS, SIM_EXTRA_LIBS): Added
124 configurable settings for stand-alone simulator.
127 * configure.in: Added --with-sim-gpu2 option to specify path of
128 sky GPU2 library. Triggers -DSKY_GPU2 for sky-gpuif.c, and
129 links/compiles stand-alone simulator with this library.
131 * interp.c (MEM_SIZE): Increased default sky memory size to 16MB.
134 * configure.in: Added X11 search, just in case.
136 * configure: Regenerated.
138 Wed Mar 11 14:09:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
140 * interp.c (sim_write, sim_read, load_memory, store_memory):
141 Replace sim_core_*_map with read_map, write_map, exec_map resp.
143 start-sanitize-vr4320
144 Tue Mar 10 10:32:22 1998 Gavin Koch <gavin@cygnus.com>
146 * vr4320.igen (clz,dclz) : Added.
147 (dmac): Replaced 99, with LO.
150 start-sanitize-vr5400
151 Fri Mar 6 08:30:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
153 * mdmx.igen (SHFL.REPA.fmt, SHFL.REPB.fmt): Fix bit fields.
156 start-sanitize-vr4320
157 Tue Mar 3 11:56:29 1998 Gavin Koch <gavin@cygnus.com>
159 * vr4320.igen: New file.
160 * Makefile.in (vr4320.igen) : Added.
161 * configure.in (mips64vr4320-*-*): Added.
162 * configure : Rebuilt.
163 * mips.igen : Correct the bfd-names in the mips-ISA model entries.
164 Add the vr4320 model entry and mark the vr4320 insn as necessary.
167 Tue Mar 3 13:58:43 1998 Andrew Cagney <cagney@b1.cygnus.com>
169 * sim-main.h (GETFCC): Return an unsigned value.
172 * r5900.igen: Use an unsigned array index variable `i'.
173 (QFSRV): Ditto for variable bytes.
176 Tue Mar 3 13:21:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
178 * mips.igen (DIV): Fix check for -1 / MIN_INT.
179 (DADD): Result destination is RD not RT.
182 * r5900.igen (DIV1): Fix check for -1 / MIN_INT.
183 (DIVU1): Don't check for MIN_INT / -1 as performing unsigned
187 Fri Feb 27 13:49:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
189 * sim-main.h (HIACCESS, LOACCESS): Always define.
191 * mdmx.igen (Maxi, Mini): Rename Max, Min.
193 * interp.c (sim_info): Delete.
195 Fri Feb 27 18:41:01 1998 Doug Evans <devans@canuck.cygnus.com>
197 * interp.c (DECLARE_OPTION_HANDLER): Use it.
198 (mips_option_handler): New argument `cpu'.
199 (sim_open): Update call to sim_add_option_table.
201 Wed Feb 25 18:56:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
203 * mips.igen (CxC1): Add tracing.
206 Wed Feb 25 13:59:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
208 * r5900.igen (StoreFP): Delete.
209 (r59fp_store, r59fp_overflow, r59fp_op1, r59fp_op2, r59fp_op3):
211 (rsqrt.s, sqrt.s): Implement.
212 (r59cond): New function.
213 (C.COND.S): Call r59cond in assembler line.
214 (cvt.w.s, cvt.s.w): Implement.
216 * mips.igen (rsqrt.fmt, sqrt.fmt, cvt.*.*): Remove from r5900
219 * sim-main.h: Define an enum of r5900 FCSR bit fields.
223 Tue Feb 24 14:44:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
225 * r5900.igen: Add tracing to all p* instructions.
227 Tue Feb 24 02:47:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
229 * interp.c (sim_store_register, sim_fetch_register): Pull swifty
230 to get gdb talking to re-aranged sim_cpu register structure.
233 Fri Feb 20 17:43:21 1998 Andrew Cagney <cagney@b1.cygnus.com>
235 * sim-main.h (Max, Min): Declare.
237 * interp.c (Max, Min): New functions.
239 * mips.igen (BC1): Add tracing.
241 start-sanitize-vr5400
242 Fri Feb 20 16:27:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
244 * mdmx.igen: Tag all functions as requiring either with mdmx or
249 Fri Feb 20 15:55:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
251 * configure.in (SIM_AC_OPTION_FLOAT): For r5900, set FP bit size
253 (SIM_AC_OPTION_BITSIZE): For r5900, set nr address bits to 32.
255 * mips.igen (C.cond.fmt, ..): Not part of r5900 insn set.
257 * r5900.igen: Rewrite.
259 * sim-main.h: Move r5900 registers to a separate _sim_r5900_cpu
261 (GPR_SB, GPR_SH, GPR_SW, GPR_SD, GPR_UB, GPR_UH, GPR_UW, GPR_UD):
262 Define in terms of GPR/GPR1 instead of REGISTERS/REGISTERS.1
265 Thu Feb 19 14:50:00 1998 John Metzler <jmetzler@cygnus.com>
267 * interp.c Added memory map for stack in vr4100
269 Thu Feb 19 10:21:21 1998 Gavin Koch <gavin@cygnus.com>
271 * interp.c (load_memory): Add missing "break"'s.
273 Tue Feb 17 12:45:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
275 * interp.c (sim_store_register, sim_fetch_register): Pass in
276 length parameter. Return -1.
278 Tue Feb 10 11:57:40 1998 Ian Carmichael <iancarm@cygnus.com>
280 * interp.c: Added hardware init hook, fixed warnings.
282 Sat Feb 7 17:16:20 1998 Andrew Cagney <cagney@b1.cygnus.com>
284 * Makefile.in (itable.h itable.c): Depend on SIM_@sim_gen@_ALL.
286 Tue Feb 3 11:36:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
288 * interp.c (ifetch16): New function.
290 * sim-main.h (IMEM32): Rename IMEM.
291 (IMEM16_IMMED): Define.
293 (DELAY_SLOT): Update.
295 * m16run.c (sim_engine_run): New file.
297 * m16.igen: All instructions except LB.
298 (LB): Call do_load_byte.
299 * mips.igen (do_load_byte): New function.
300 (LB): Call do_load_byte.
302 * mips.igen: Move spec for insn bit size and high bit from here.
303 * Makefile.in (tmp-igen, tmp-m16): To here.
305 * m16.dc: New file, decode mips16 instructions.
307 * Makefile.in (SIM_NO_ALL): Define.
308 (tmp-m16): Generate both 16 bit and 32 bit simulator engines.
311 * m16.igen: Mark all mips16 insns as being part of the tx19 insn
315 Tue Feb 3 11:28:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
317 * configure.in (mips_fpu_bitsize): For tx39, restrict floating
318 point unit to 32 bit registers.
319 * configure: Re-generate.
321 Sun Feb 1 15:47:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
323 * configure.in (sim_use_gen): Make IGEN the default simulator
324 generator for generic 32 and 64 bit mips targets.
325 * configure: Re-generate.
327 Sun Feb 1 16:52:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
329 * sim-main.h (SizeFGR): Determine from floating-point and not gpr
332 * interp.c (sim_fetch_register, sim_store_register): Read/write
333 FGR from correct location.
334 (sim_open): Set size of FGR's according to
335 WITH_TARGET_FLOATING_POINT_BITSIZE.
337 * sim-main.h (FGR): Store floating point registers in a separate
340 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
342 * configure: Regenerated to track ../common/aclocal.m4 changes.
344 start-sanitize-vr5400
345 * mdmx.igen: Mark all instructions as 64bit/fp specific.
348 Tue Feb 3 00:10:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
350 * interp.c (ColdReset): Call PENDING_INVALIDATE.
352 * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Call PENDING_TICK.
354 * interp.c (pending_tick): New function. Deliver pending writes.
356 * sim-main.h (PENDING_FILL, PENDING_TICK, PENDING_SCHED,
357 PENDING_BIT, PENDING_INVALIDATE): Re-write pipeline code so that
358 it can handle mixed sized quantites and single bits.
360 Mon Feb 2 17:43:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
362 * interp.c (oengine.h): Do not include when building with IGEN.
363 (sim_open): Replace GPRLEN by WITH_TARGET_WORD_BITSIZE.
364 (sim_info): Ditto for PROCESSOR_64BIT.
365 (sim_monitor): Replace ut_reg with unsigned_word.
366 (*): Ditto for t_reg.
367 (LOADDRMASK): Define.
368 (sim_open): Remove defunct check that host FP is IEEE compliant,
369 using software to emulate floating point.
370 (value_fpr, ...): Always compile, was conditional on HASFPU.
372 Sun Feb 1 11:15:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
374 * sim-main.h (sim_state): Make the cpu array MAX_NR_PROCESSORS in
377 * interp.c (SD, CPU): Define.
378 (mips_option_handler): Set flags in each CPU.
379 (interrupt_event): Assume CPU 0 is the one being iterrupted.
380 (sim_close): Do not clear STATE, deleted anyway.
381 (sim_write, sim_read): Assume CPU zero's vm should be used for
383 (sim_create_inferior): Set the PC for all processors.
384 (sim_monitor, store_word, load_word, mips16_entry): Add cpu
386 (mips16_entry): Pass correct nr of args to store_word, load_word.
387 (ColdReset): Cold reset all cpu's.
388 (signal_exception): Pass cpu to sim_monitor & mips16_entry.
389 (sim_monitor, load_memory, store_memory, signal_exception): Use
390 `CPU' instead of STATE_CPU.
393 * sim-main.h: Replace uses of STATE_CPU with CPU. Replace sd with
396 * sim-main.h (signal_exception): Add sim_cpu arg.
397 (SignalException*): Pass both SD and CPU to signal_exception.
398 * interp.c (signal_exception): Update.
400 * sim-main.h (value_fpr, store_fpr, dotrace, ifetch32), interp.c:
402 (sync_operation, prefetch, cache_op, store_memory, load_memory,
403 address_translation): Ditto
404 (decode_coproc, cop_lw, cop_ld, cop_sw, cop_sd): Ditto.
406 start-sanitize-vr5400
407 * mdmx.igen (get_scale): Pass CPU_ to semantic_illegal instead of
409 (ByteAlign): Use StoreFPR, pass args in correct order.
413 Sun Feb 1 10:59:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
415 * configure.in (sim_igen_filter): For r5900, configure as SMP.
418 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
420 * configure: Regenerated to track ../common/aclocal.m4 changes.
422 Sat Jan 31 14:49:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
425 * configure.in (sim_igen_filter): For r5900, use igen.
426 * configure: Re-generate.
429 * interp.c (sim_engine_run): Add `nr_cpus' argument.
431 * mips.igen (model): Map processor names onto BFD name.
433 * sim-main.h (CPU_CIA): Delete.
434 (SET_CIA, GET_CIA): Define
436 Wed Jan 21 16:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
438 * sim-main.h (GPR_SET): Define, used by igen when zeroing a
441 * configure.in (default_endian): Configure a big-endian simulator
443 * configure: Re-generate.
445 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
447 * configure: Regenerated to track ../common/aclocal.m4 changes.
449 Mon Jan 5 20:38:54 1998 Mark Alexander <marka@cygnus.com>
451 * interp.c (sim_monitor): Handle Densan monitor outbyte
452 and inbyte functions.
454 1997-12-29 Felix Lee <flee@cygnus.com>
456 * interp.c (sim_engine_run): msvc cpp barfs on #if (a==b!=c).
458 Wed Dec 17 14:48:20 1997 Jeffrey A Law (law@cygnus.com)
460 * Makefile.in (tmp-igen): Arrange for $zero to always be
461 reset to zero after every instruction.
463 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
465 * configure: Regenerated to track ../common/aclocal.m4 changes.
468 start-sanitize-vr5400
469 Sat Dec 13 15:18:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
471 * vr5400.igen (Low32Bits, High32Bits): Sign extend extracted 32
475 start-sanitize-vr5400
476 Fri Dec 12 12:26:07 1997 Jeffrey A Law (law@cygnus.com)
478 * configure.in (sim_igen_filter): Multi-sim vr5000 - vr5000 or
479 vr5400 with the vr5000 as the default.
482 Wed Dec 10 17:10:45 1997 Jeffrey A Law (law@cygnus.com)
484 * mips.igen (MSUB): Fix to work like MADD.
485 * gencode.c (MSUB): Similarly.
487 start-sanitize-vr5400
488 Tue Dec 9 12:02:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
490 * configure.in (sim_igen_filter): Multi-sim vr5400 - vr5000 or
494 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
496 * configure: Regenerated to track ../common/aclocal.m4 changes.
498 Wed Nov 26 11:00:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
500 * mips.igen (LWC1): Correct assembler - lwc1 not swc1.
502 start-sanitize-vr5400
503 * mdmx.igen (value_vr): Correct sim_io_eprintf format argument.
504 (value_cc, store_cc): Implement.
506 * sim-main.h: Add 8*3*8 bit accumulator.
508 * vr5400.igen: Move mdmx instructins from here
509 * mdmx.igen: To here - new file. Add/fix missing instructions.
510 * mips.igen: Include mdmx.igen.
511 * Makefile.in (IGEN_INCLUDE): Add mdmx.igen.
514 Sun Nov 23 01:45:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
516 * sim-main.h (sim-fpu.h): Include.
518 * interp.c (convert, SquareRoot, Recip, Divide, Multiply, Sub,
519 Add, Negate, AbsoluteValue, Equal, Less, Infinity, NaN): Rewrite
520 using host independant sim_fpu module.
522 Thu Nov 20 19:56:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
524 * interp.c (signal_exception): Report internal errors with SIGABRT
527 * sim-main.h (C0_CONFIG): New register.
528 (signal.h): No longer include.
530 * interp.c (decode_coproc): Allow access C0_CONFIG to register.
532 Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
534 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
536 Fri Nov 14 11:56:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
538 * mips.igen: Tag vr5000 instructions.
539 (ANDI): Was missing mipsIV model, fix assembler syntax.
540 (do_c_cond_fmt): New function.
541 (C.cond.fmt): Handle mips I-III which do not support CC field
543 (bc1): Handle mips IV which do not have a delaed FCC separatly.
544 (SDR): Mask paddr when BigEndianMem, not the converse as specified
546 (DMULT, DMULTU): Force use of hosts 64bit multiplication. Handle
547 vr5000 which saves LO in a GPR separatly.
549 * configure.in (enable-sim-igen): For vr5000, select vr5000
550 specific instructions.
551 * configure: Re-generate.
553 Wed Nov 12 14:42:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
555 * Makefile.in (SIM_OBJS): Add sim-fpu module.
557 * interp.c (store_fpr), sim-main.h: Add separate fmt_uninterpreted_32 and
558 fmt_uninterpreted_64 bit cases to switch. Convert to
561 * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Define,
563 * mips.igen (SWR): Mask paddr when BigEndianMem, not the converse
564 as specified in IV3.2 spec.
565 (MTC1, DMTC1): Call StoreFPR to store the GPR in the FPR.
567 Tue Nov 11 12:38:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
569 * mips.igen: Delay slot branches add OFFSET to NIA not CIA.
570 (MFC0, MTC0, SWC1, LWC1, SDC1, LDC1): Implement.
571 (start-sanitize-r5900):
572 (LWXC1, SWXC1): Delete from r5900 instruction set.
573 (end-sanitize-r5900):
574 (MTC1, MFC1, DMTC1, DMFC1, CFC1, CTC1): Implement separate non
575 PENDING_FILL versions of instructions. Simplify.
577 (MULT, MULTU): Implement separate RD==0 and RD!=0 versions of
579 (BEQZ, ..., SLT, SLTI, TLT, TLE, TLI, ...): Explicitly cast GPR to
581 (MTHI, MFHI): Disable code checking HI-LO.
583 * sim-main.h (dotrace,tracefh), interp.c: Make dotrace & tracefh
585 (NULLIFY_NEXT_INSTRUCTION): Call dotrace.
587 Thu Nov 6 16:36:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
589 * gencode.c (build_mips16_operands): Replace IPC with cia.
591 * interp.c (sim_monitor, signal_exception, cache_op, store_fpr,
592 value_fpr, cop_ld, cop_lw, cop_sw, cop_sd, decode_coproc): Replace
594 (UndefinedResult): Replace function with macro/function
596 (sim_engine_run): Don't save PC in IPC.
598 * sim-main.h (IPC): Delete.
600 start-sanitize-vr5400
601 * vr5400.igen (vr): Add missing cia argument to value_fpr.
602 (do_select): Rename function select.
605 * interp.c (signal_exception, store_word, load_word,
606 address_translation, load_memory, store_memory, cache_op,
607 prefetch, sync_operation, ifetch, value_fpr, store_fpr, convert,
608 cop_lw, cop_ld, cop_sw, cop_sd, decode_coproc, sim_monitor): Add
609 current instruction address - cia - argument.
610 (sim_read, sim_write): Call address_translation directly.
611 (sim_engine_run): Rename variable vaddr to cia.
612 (signal_exception): Pass cia to sim_monitor
614 * sim-main.h (SignalException, LoadWord, StoreWord, CacheOp,
615 Prefetch, SyncOperation, ValueFPR, StoreFPR, Convert, COP_LW,
616 COP_LD, COP_SW, COP_SD, DecodeCoproc): Update.
618 * sim-main.h (SignalExceptionSimulatorFault): Delete definition.
619 * interp.c (sim_open): Replace SignalExceptionSimulatorFault with
622 * interp.c (signal_exception): Pass restart address to
625 * Makefile.in (semantics.o, engine.o, support.o, itable.o,
626 idecode.o): Add dependency.
628 * sim-main.h (SIM_ENGINE_HALT_HOOK, SIM_ENGINE_RESUME_HOOK):
630 (DELAY_SLOT): Update NIA not PC with branch address.
631 (NULLIFY_NEXT_INSTRUCTION): Set NIA to instruction after next.
633 * mips.igen: Use CIA not PC in branch calculations.
634 (illegal): Call SignalException.
635 (BEQ, ADDIU): Fix assembler.
637 Wed Nov 5 12:19:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
639 * m16.igen (JALX): Was missing.
641 * configure.in (enable-sim-igen): New configuration option.
642 * configure: Re-generate.
644 * sim-main.h (MAX_INSNS, INSN_NAME): Define.
646 * interp.c (load_memory, store_memory): Delete parameter RAW.
647 (sim_read, sim_write): Use sim_core_{read,write}_buffer directly
648 bypassing {load,store}_memory.
650 * sim-main.h (ByteSwapMem): Delete definition.
652 * Makefile.in (SIM_OBJS): Add sim-memopt module.
654 * interp.c (sim_do_command, sim_commands): Delete mips specific
655 commands. Handled by module sim-options.
657 * sim-main.h (SIM_HAVE_FLATMEM): Undefine, use sim-core.o module.
658 (WITH_MODULO_MEMORY): Define.
660 * interp.c (sim_info): Delete code printing memory size.
662 * interp.c (mips_size): Nee sim_size, delete function.
664 (monitor, monitor_base, monitor_size): Delete global variables.
665 (sim_open, sim_close): Delete code creating monitor and other
666 memory regions. Use sim-memopts module, via sim_do_commandf, to
667 manage memory regions.
668 (load_memory, store_memory): Use sim-core for memory model.
670 * interp.c (address_translation): Delete all memory map code
671 except line forcing 32 bit addresses.
673 Wed Nov 5 11:21:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
675 * sim-main.h (WITH_TRACE): Delete definition. Enables common
678 * interp.c (logfh, logfile): Delete globals.
679 (sim_open, sim_close): Delete code opening & closing log file.
680 (mips_option_handler): Delete -l and -n options.
681 (OPTION mips_options): Ditto.
683 * interp.c (OPTION mips_options): Rename option trace to dinero.
684 (mips_option_handler): Update.
686 Wed Nov 5 09:35:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
688 * interp.c (fetch_str): New function.
689 (sim_monitor): Rewrite using sim_read & sim_write.
690 (sim_open): Check magic number.
691 (sim_open): Write monitor vectors into memory using sim_write.
692 (MONITOR_BASE, MONITOR_SIZE, MEM_SIZE): Define.
693 (sim_read, sim_write): Simplify - transfer data one byte at a
695 (load_memory, store_memory): Clarify meaning of parameter RAW.
697 * sim-main.h (isHOST): Defete definition.
698 (isTARGET): Mark as depreciated.
699 (address_translation): Delete parameter HOST.
701 * interp.c (address_translation): Delete parameter HOST.
704 Wed Oct 29 14:21:32 1997 Gavin Koch <gavin@cygnus.com>
706 * gencode.c: Add tx49 configury and insns.
707 * configure.in: Add tx49 configury.
711 Wed Oct 29 11:13:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
715 * Makefile.in (IGEN_INCLUDE): Files included by mips.igen.
716 (tmp-igen, tmp-m16): Depend on IGEN_INCLUDE.
718 Tue Oct 28 11:06:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
720 * mips.igen: Add model filter field to records.
722 Mon Oct 27 17:53:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
724 * Makefile.in (SIM_NO_CFLAGS): Define. Define WITH_IGEN=0.
726 interp.c (sim_engine_run): Do not compile function sim_engine_run
729 * configure.in (sim_igen_flags, sim_m16_flags): Set according to
732 Makefile.in (tmp-igen, tmp-m16): Drop -F and -M options to
733 igen. Replace with configuration variables sim_igen_flags /
737 * r5900.igen: New file. Copy r5900 insns here.
739 start-sanitize-vr5400
740 * vr5400.igen: New file.
742 * m16.igen: New file. Copy mips16 insns here.
743 * mips.igen: From here.
745 Mon Oct 27 13:53:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
747 start-sanitize-vr5400
748 * mips.igen: Tag all mipsIV instructions with vr5400 model.
750 * configure.in: Add mips64vr5400 target.
751 * configure: Re-generate.
754 * Makefile.in (SIM_NO_OBJ): Define, move SIM_M16_OBJ, SIM_IGEN_OBJ
756 (tmp-igen, tmp-m16): Pass -I srcdir to igen.
758 Sat Oct 25 16:51:40 1997 Gavin Koch <gavin@cygnus.com>
760 * gencode.c (build_instruction): Follow sim_write's lead in using
761 BigEndianMem instead of !ByteSwapMem.
763 Fri Oct 24 17:41:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
765 * configure.in (sim_gen): Dependent on target, select type of
766 generator. Always select old style generator.
768 configure: Re-generate.
770 Makefile.in (tmp-igen, tmp-m16, clean-m16, clean-igen): New
772 (SIM_M16_CFLAGS, SIM_M16_ALL, SIM_M16_OBJ, BUILT_SRC_FROM_M16,
773 SIM_IGEN_CFLAGS, SIM_IGEN_ALL, SIM_IGEN_OBJ, BUILT_SRC_FROM_IGEN,
774 IGEN_TRACE, IGEN_INSN, IGEN_DC): Define
775 (SIM_EXTRA_CFLAGS, SIM_EXTRA_ALL, SIM_OBJS): Add member
776 SIM_@sim_gen@_*, set by autoconf.
778 Wed Oct 22 12:52:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
780 * sim-main.h (NULLIFY_NEXT_INSTRUCTION, DELAY_SLOT): Define.
782 * interp.c (ColdReset): Remove #ifdef HASFPU, check
783 CURRENT_FLOATING_POINT instead.
785 * interp.c (ifetch32): New function. Fetch 32 bit instruction.
786 (address_translation): Raise exception InstructionFetch when
787 translation fails and isINSTRUCTION.
789 * interp.c (sim_open, sim_write, sim_monitor, store_word,
790 sim_engine_run): Change type of of vaddr and paddr to
792 (address_translation, prefetch, load_memory, store_memory,
793 cache_op): Change type of vAddr and pAddr to address_word.
795 * gencode.c (build_instruction): Change type of vaddr and paddr to
798 Mon Oct 20 15:29:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
800 * sim-main.h (ALU64_END, ALU32_END): Use ALU*_OVERFLOW_RESULT
801 macro to obtain result of ALU op.
803 Tue Oct 21 17:39:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
805 * interp.c (sim_info): Call profile_print.
807 Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
809 * Makefile.in (SIM_OBJS): Add sim-profile.o module.
811 * sim-main.h (WITH_PROFILE): Do not define, defined in
812 common/sim-config.h. Use sim-profile module.
813 (simPROFILE): Delete defintion.
815 * interp.c (PROFILE): Delete definition.
816 (mips_option_handler): Delete 'p', 'y' and 'x' profile options.
817 (sim_close): Delete code writing profile histogram.
818 (mips_set_profile, mips_set_profile_size, writeout16, writeout32):
820 (sim_engine_run): Delete code profiling the PC.
822 Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
824 * sim-main.h (SIGNEXTEND): Force type of result to unsigned_word.
826 * interp.c (sim_monitor): Make register pointers of type
829 * sim-main.h: Make registers of type unsigned_word not
832 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
835 * sim-main.h (BYTES_IN_MMI_REGS, ..., SUB_REG_FETCH, ..., GPR_SB,
836 ...): Move to sim-main.h
839 * interp.c (sync_operation): Rename from SyncOperation, make
840 global, add SD argument.
841 (prefetch): Rename from Prefetch, make global, add SD argument.
842 (decode_coproc): Make global.
844 * sim-main.h (SyncOperation, DecodeCoproc, Pefetch): Define.
846 * gencode.c (build_instruction): Generate DecodeCoproc not
849 * interp.c (SETFCC, GETFCC, PREVCOC1): Move to sim-main.h
850 (SizeFGR): Move to sim-main.h
851 (simHALTEX, simHALTIN, simTRACE, simPROFILE, simDELAYSLOT,
852 simSIGINT, simJALDELAYSLOT): Move to sim-main.h
853 (FP_FLAGS, FP_ENABLE, FP_CAUSE, IR, UF, OF, DZ, IO, UO): Move to
855 (FP_FS, FP_MASK_RM, FP_SH_RM, FP_RM_NEAREST, FP_RM_TOPINF,
856 FP_RM_TOMINF, GETRM): Move to sim-main.h.
857 (Uncached, CachedNoncoherent, CachedCoherent, Cached,
858 isINSTRUCTION, ..., AccessLength_BYTE, ...): Move to sim-main.h.
859 (UserMode, BigEndianMem, ByteSwapMem, ReverseEndian,
860 BigEndianCPU, status_KSU_mask, ...). Moved to sim-main.h
862 * sim-main.h (ALU32_END, ALU64_END): Define. When overflow raise
864 (sim-alu.h): Include.
865 (NULLIFY_NIA, NULL_CIA, CPU_CIA): Define.
866 (sim_cia): Typedef to instruction_address.
868 Thu Oct 16 10:31:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
870 * Makefile.in (interp.o): Rename generated file engine.c to
875 Thu Oct 16 10:31:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
877 * gencode.c (build_instruction): Use FPR_STATE not fpr_state.
879 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
881 * gencode.c (build_instruction): For "FPSQRT", output correct
882 number of arguments to Recip.
884 Tue Oct 14 17:38:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
886 * Makefile.in (interp.o): Depends on sim-main.h
888 * interp.c (mips16_entry, ColdReset,dotrace): Add SD argument. Use GPR not registers.
890 * sim-main.h (sim_cpu): Add registers, register_widths, fpr_state,
891 ipc, dspc, pending_*, hiaccess, loaccess, state, dsstate fields.
892 (REGISTERS, REGISTER_WIDTHS, FPR_STATE, IPC, DSPC, PENDING_*,
893 STATE, DSSTATE): Define
894 (GPR, FGRIDX, ..): Define.
896 * interp.c (registers, register_widths, fpr_state, ipc, dspc,
897 pending_*, hiaccess, loaccess, state, dsstate): Delete globals.
898 (GPR, FGRIDX, ...): Delete macros.
900 * interp.c: Update names to match defines from sim-main.h
902 Tue Oct 14 15:11:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
904 * interp.c (sim_monitor): Add SD argument.
905 (sim_warning): Delete. Replace calls with calls to
907 (sim_error): Delete. Replace calls with sim_io_error.
908 (open_trace, writeout32, writeout16, getnum): Add SD argument.
909 (mips_set_profile): Rename from sim_set_profile. Add SD argument.
910 (mips_set_profile_size): Rename from sim_set_profile_size. Add SD
912 (mips_size): Rename from sim_size. Add SD argument.
914 * interp.c (simulator): Delete global variable.
915 (callback): Delete global variable.
916 (mips_option_handler, sim_open, sim_write, sim_read,
917 sim_store_register, sim_fetch_register, sim_info, sim_do_command,
918 sim_size,sim_monitor): Use sim_io_* not callback->*.
919 (sim_open): ZALLOC simulator struct.
920 (PROFILE): Do not define.
922 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
924 * interp.c (sim_open), support.h: Replace CHECKSIM macro found in
925 support.h with corresponding code.
927 * sim-main.h (word64, uword64), support.h: Move definition to
929 (WORD64LO, WORD64HI, SET64LO, SET64HI, WORD64, UWORD64): Ditto.
932 * Makefile.in: Update dependencies
933 * interp.c: Do not include.
935 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
937 * interp.c (address_translation, load_memory, store_memory,
938 cache_op): Rename to from AddressTranslation et.al., make global,
941 * sim-main.h (AddressTranslation, LoadMemory, StoreMemory,
944 * interp.c (SignalException): Rename to signal_exception, make
947 * interp.c (Interrupt, ...): Move definitions to sim-main.h.
949 * sim-main.h (SignalException, SignalExceptionInterrupt,
950 SignalExceptionInstructionFetch, SignalExceptionAddressStore,
951 SignalExceptionAddressLoad, SignalExceptionSimulatorFault,
952 SignalExceptionIntegerOverflow, SignalExceptionCoProcessorUnusable):
955 * interp.c, support.h: Use.
957 Tue Oct 14 13:19:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
959 * interp.c (ValueFPR, StoreFPR), sim-main.h: Make global, rename
960 to value_fpr / store_fpr. Add SD argument.
961 (NaN, Infinity, Less, Equal, AbsoluteValue, Negate, Add, Sub,
962 Multiply, Divide, Recip, SquareRoot, Convert): Make global.
964 * sim-main.h (ValueFPR, StoreFPR): Define.
966 Tue Oct 14 13:06:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
968 * interp.c (sim_engine_run): Check consistency between configure
969 WITH_TARGET_WORD_BITSIZE and WITH_FLOATING_POINT and gensim GPRLEN
972 * configure.in (mips_bitsize): Configure WITH_TARGET_WORD_BITSIZE.
973 (mips_fpu): Configure WITH_FLOATING_POINT.
974 (mips_endian): Configure WITH_TARGET_ENDIAN.
977 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
979 * configure: Regenerated to track ../common/aclocal.m4 changes.
982 Mon Aug 25 19:11:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
984 * interp.c (MAX_REG): Allow up-to 128 registers.
985 (LO1, HI1): Define value that matches REGISTER_NAMES in gdb.
986 (REGISTER_SA): Ditto.
987 (sim_open): Initialize register_widths for r5900 specific
989 (sim_fetch_register, sim_store_register): Check for request of
990 r5900 specific SA register. Check for request for hi 64 bits of
991 r5900 specific registers.
994 Mon Sep 29 14:45:00 1997 Bob Manson <manson@charmed.cygnus.com>
996 * configure: Regenerated.
998 Fri Sep 26 12:48:18 1997 Mark Alexander <marka@cygnus.com>
1000 * interp.c: Allow Debug, DEPC, and EPC registers to be examined in GDB.
1002 Thu Sep 25 11:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1004 * gencode.c (print_igen_insn_models): Assume certain architectures
1005 include all mips* instructions.
1006 (print_igen_insn_format): Use data_size==-1 as marker for MIPS16
1009 * Makefile.in (tmp.igen): Add target. Generate igen input from
1012 * gencode.c (FEATURE_IGEN): Define.
1013 (main): Add --igen option. Generate output in igen format.
1014 (process_instructions): Format output according to igen option.
1015 (print_igen_insn_format): New function.
1016 (print_igen_insn_models): New function.
1017 (process_instructions): Only issue warnings and ignore
1018 instructions when no FEATURE_IGEN.
1020 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1022 * interp.c (COP_SD, COP_LD): Add UNUSED to pacify GCC for some
1025 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1027 * configure: Regenerated to track ../common/aclocal.m4 changes.
1029 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
1031 * Makefile.in (SIM_ALIGNMENT, SIM_ENDIAN, SIM_HOSTENDIAN,
1032 SIM_RESERVED_BITS): Delete, moved to common.
1033 (SIM_EXTRA_CFLAGS): Update.
1035 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1037 * configure.in: Configure non-strict memory alignment.
1038 * configure: Regenerated to track ../common/aclocal.m4 changes.
1040 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1042 * configure: Regenerated to track ../common/aclocal.m4 changes.
1044 Sat Sep 20 14:07:28 1997 Gavin Koch <gavin@cygnus.com>
1046 * gencode.c (SDBBP,DERET): Added (3900) insns.
1047 (RFE): Turn on for 3900.
1048 * interp.c (DebugBreakPoint,DEPC,Debug,Debug_*): Added.
1049 (dsstate): Made global.
1050 (SUBTARGET_R3900): Added.
1051 (CANCELDELAYSLOT): New.
1052 (SignalException): Ignore SystemCall rather than ignore and
1053 terminate. Add DebugBreakPoint handling.
1054 (decode_coproc): New insns RFE, DERET; and new registers Debug
1055 and DEPC protected by SUBTARGET_R3900.
1056 (sim_engine_run): Use CANCELDELAYSLOT rather than clearing
1058 * Makefile.in,configure.in: Add mips subtarget option.
1059 * configure: Update.
1061 Fri Sep 19 09:33:27 1997 Gavin Koch <gavin@cygnus.com>
1063 * gencode.c: Add r3900 (tx39).
1066 * gencode.c: Fix some configuration problems by improving
1067 the relationship between tx19 and tx39.
1070 Tue Sep 16 15:52:04 1997 Gavin Koch <gavin@cygnus.com>
1072 * gencode.c (build_instruction): Don't need to subtract 4 for
1075 Tue Sep 16 11:32:28 1997 Gavin Koch <gavin@cygnus.com>
1077 * interp.c: Correct some HASFPU problems.
1079 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1081 * configure: Regenerated to track ../common/aclocal.m4 changes.
1083 Fri Sep 12 12:01:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
1085 * interp.c (mips_options): Fix samples option short form, should
1088 Thu Sep 11 09:35:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
1090 * interp.c (sim_info): Enable info code. Was just returning.
1092 Tue Sep 9 17:30:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1094 * interp.c (decode_coproc): Clarify warning about unsuported MTC0,
1097 Tue Sep 9 16:28:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
1099 * gencode.c (build_instruction): Use SIGNED64 for 64 bit
1101 (build_instruction): Ditto for LL.
1104 Sun Sep 7 16:05:46 1997 Gavin Koch <gavin@cygnus.com>
1106 * mips/configure.in, mips/gencode: Add tx19/r1900.
1109 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
1111 * configure: Regenerated to track ../common/aclocal.m4 changes.
1113 start-sanitize-r5900
1114 Mon Sep 1 18:43:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
1116 * gencode.c (build_instruction): For "pabsw" and "pabsh", check
1117 for overflow due to ABS of MININT, set result to MAXINT.
1118 (build_instruction): For "psrlvw", signextend bit 31.
1121 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1123 * configure: Regenerated to track ../common/aclocal.m4 changes.
1126 Wed Aug 27 14:12:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
1128 * interp.c (sim_open): Add call to sim_analyze_program, update
1131 Tue Aug 26 10:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
1133 * interp.c (sim_kill): Delete.
1134 (sim_create_inferior): Add ABFD argument. Set PC from same.
1135 (sim_load): Move code initializing trap handlers from here.
1136 (sim_open): To here.
1137 (sim_load): Delete, use sim-hload.c.
1139 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
1141 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1143 * configure: Regenerated to track ../common/aclocal.m4 changes.
1146 Mon Aug 25 15:59:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1148 * interp.c (sim_open): Add ABFD argument.
1149 (sim_load): Move call to sim_config from here.
1150 (sim_open): To here. Check return status.
1152 start-sanitize-r5900
1153 * gencode.c (build_instruction): Do not define x8000000000000000,
1154 x7FFFFFFFFFFFFFFF, or xFFFFFFFF80000000.
1157 start-sanitize-r5900
1158 Mon Jul 28 19:49:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
1160 * gencode.c (build_instruction): For "pdivw", "pdivbw" and
1161 "pdivuw" check for overflow due to signed divide by -1.
1164 Fri Jul 25 15:00:45 1997 Gavin Koch <gavin@cygnus.com>
1166 * gencode.c (build_instruction): Two arg MADD should
1167 not assign result to $0.
1169 start-sanitize-r5900
1170 Thu Jul 10 11:58:48 1997 Andrew Cagney <cagney@critters.cygnus.com>
1172 * gencode.c (build_instruction): For "ppac5" use unsigned
1173 arrithmetic so that the sign bit doesn't smear when right shifted.
1174 (build_instruction): For "pdiv" perform sign extension when
1175 storing results in HI and LO.
1176 (build_instructions): For "pdiv" and "pdivbw" check for
1178 (build_instruction): For "pmfhl.slw" update hi part of dest
1179 register as well as low part.
1180 (build_instruction): For "pmfhl" portably handle long long values.
1181 (build_instruction): For "pmfhl.sh" correctly negative values.
1182 Store half words 2 and three in the correct place.
1183 (build_instruction): For "psllvw", sign extend value after shift.
1186 Thu Jun 26 12:13:17 1997 Angela Marie Thomas (angela@cygnus.com)
1188 * sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
1189 * sim/mips/configure.in: Regenerate.
1191 Wed Jul 9 10:29:21 1997 Andrew Cagney <cagney@critters.cygnus.com>
1193 * interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
1194 signed8, unsigned8 et.al. types.
1196 start-sanitize-r5900
1197 * gencode.c (build_instruction): For PMULTU* do not sign extend
1198 registers. Make generated code easier to debug.
1201 * interp.c (SUB_REG_FETCH): Handle both little and big endian
1202 hosts when selecting subreg.
1204 start-sanitize-r5900
1205 Tue Jul 8 18:07:20 1997 Andrew Cagney <cagney@andros.cygnus.com>
1207 * gencode.c (type_for_data_len): For 32bit operations concerned
1208 with overflow, perform op using 64bits.
1209 (build_instruction): For PADD, always compute operation using type
1210 returned by type_for_data_len.
1211 (build_instruction): For PSUBU, when overflow, saturate to zero as
1215 Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com)
1217 start-sanitize-r5900
1218 * gencode.c (build_instruction): Handle "pext5" according to
1219 version 1.95 of the r5900 ISA.
1221 * gencode.c (build_instruction): Handle "ppac5" according to
1222 version 1.95 of the r5900 ISA.
1225 * interp.c (sim_engine_run): Reset the ZERO register to zero
1226 regardless of FEATURE_WARN_ZERO.
1227 * gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
1229 Wed Jun 4 10:43:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
1231 * interp.c (decode_coproc): Implement MTC0 N, CAUSE.
1232 (SignalException): For BreakPoints ignore any mode bits and just
1234 (SignalException): Always set the CAUSE register.
1236 Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
1238 * interp.c (SignalException): Clear the simDELAYSLOT flag when an
1239 exception has been taken.
1241 * interp.c: Implement the ERET and mt/f sr instructions.
1243 start-sanitize-r5900
1244 Mon Jun 2 23:28:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
1246 * gencode.c (build_instruction): For paddu, extract unsigned
1249 * gencode.c (build_instruction): Saturate padds instead of padd
1253 Sat May 31 00:44:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
1255 * interp.c (SignalException): Don't bother restarting an
1258 Fri May 30 23:41:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1260 * interp.c (SignalException): Really take an interrupt.
1261 (interrupt_event): Only deliver interrupts when enabled.
1263 Tue May 27 20:08:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1265 * interp.c (sim_info): Only print info when verbose.
1266 (sim_info) Use sim_io_printf for output.
1268 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
1270 * interp.c (CoProcPresent): Add UNUSED attribute - not used by all
1273 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
1275 * interp.c (sim_do_command): Check for common commands if a
1276 simulator specific command fails.
1278 Thu May 22 09:32:03 1997 Gavin Koch <gavin@cygnus.com>
1280 * interp.c (sim_engine_run): ifdef out uses of simSTOP, simSTEP
1281 and simBE when DEBUG is defined.
1283 Wed May 21 09:08:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
1285 * interp.c (interrupt_event): New function. Pass exception event
1286 onto exception handler.
1288 * configure.in: Check for stdlib.h.
1289 * configure: Regenerate.
1291 * gencode.c (build_instruction): Add UNUSED attribute to tempS
1292 variable declaration.
1293 (build_instruction): Initialize memval1.
1294 (build_instruction): Add UNUSED attribute to byte, bigend,
1296 (build_operands): Ditto.
1298 * interp.c: Fix GCC warnings.
1299 (sim_get_quit_code): Delete.
1301 * configure.in: Add INLINE, ENDIAN, HOSTENDIAN and WARNINGS.
1302 * Makefile.in: Ditto.
1303 * configure: Re-generate.
1305 * Makefile.in (SIM_OBJS): Add sim-watch.o module.
1307 Tue May 20 15:08:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
1309 * interp.c (mips_option_handler): New function parse argumes using
1311 (myname): Replace with STATE_MY_NAME.
1312 (sim_open): Delete check for host endianness - performed by
1314 (simHOSTBE, simBE): Delete, replaced by sim-endian flags.
1315 (sim_open): Move much of the initialization from here.
1316 (sim_load): To here. After the image has been loaded and
1318 (sim_open): Move ColdReset from here.
1319 (sim_create_inferior): To here.
1320 (sim_open): Make FP check less dependant on host endianness.
1322 * Makefile.in (SIM_RUN_OBJS): Set to nrun.o - use new version or
1324 * interp.c (sim_set_callbacks): Delete.
1326 * interp.c (membank, membank_base, membank_size): Replace with
1327 STATE_MEMORY, STATE_MEM_SIZE, STATE_MEM_BASE.
1328 (sim_open): Remove call to callback->init. gdb/run do this.
1332 * sim-main.h (SIM_HAVE_FLATMEM): Define.
1334 * interp.c (big_endian_p): Delete, replaced by
1335 current_target_byte_order.
1337 Tue May 20 13:55:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1339 * interp.c (host_read_long, host_read_word, host_swap_word,
1340 host_swap_long): Delete. Using common sim-endian.
1341 (sim_fetch_register, sim_store_register): Use H2T.
1342 (pipeline_ticks): Delete. Handled by sim-events.
1344 (sim_engine_run): Update.
1346 Tue May 20 13:42:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
1348 * interp.c (sim_stop_reason): Move code determining simEXCEPTION
1350 (SignalException): To here. Signal using sim_engine_halt.
1351 (sim_stop_reason): Delete, moved to common.
1353 Tue May 20 10:19:48 1997 Andrew Cagney <cagney@b2.cygnus.com>
1355 * interp.c (sim_open): Add callback argument.
1356 (sim_set_callbacks): Delete SIM_DESC argument.
1359 Mon May 19 18:20:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1361 * Makefile.in (SIM_OBJS): Add common modules.
1363 * interp.c (sim_set_callbacks): Also set SD callback.
1364 (set_endianness, xfer_*, swap_*): Delete.
1365 (host_read_word, host_read_long, host_swap_word, host_swap_long):
1366 Change to functions using sim-endian macros.
1367 (control_c, sim_stop): Delete, use common version.
1368 (simulate): Convert into.
1369 (sim_engine_run): This function.
1370 (sim_resume): Delete.
1372 * interp.c (simulation): New variable - the simulator object.
1373 (sim_kind): Delete global - merged into simulation.
1374 (sim_load): Cleanup. Move PC assignment from here.
1375 (sim_create_inferior): To here.
1377 * sim-main.h: New file.
1378 * interp.c (sim-main.h): Include.
1380 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1382 * configure: Regenerated to track ../common/aclocal.m4 changes.
1384 Wed Apr 23 17:32:19 1997 Doug Evans <dje@canuck.cygnus.com>
1386 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
1388 Mon Apr 21 17:16:13 1997 Gavin Koch <gavin@cygnus.com>
1390 * gencode.c (build_instruction): DIV instructions: check
1391 for division by zero and integer overflow before using
1392 host's division operation.
1394 Thu Apr 17 03:18:14 1997 Doug Evans <dje@canuck.cygnus.com>
1396 * Makefile.in (SIM_OBJS): Add sim-load.o.
1397 * interp.c: #include bfd.h.
1398 (target_byte_order): Delete.
1399 (sim_kind, myname, big_endian_p): New static locals.
1400 (sim_open): Set sim_kind, myname. Move call to set_endianness to
1401 after argument parsing. Recognize -E arg, set endianness accordingly.
1402 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
1403 load file into simulator. Set PC from bfd.
1404 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1405 (set_endianness): Use big_endian_p instead of target_byte_order.
1407 Wed Apr 16 17:55:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
1409 * interp.c (sim_size): Delete prototype - conflicts with
1410 definition in remote-sim.h. Correct definition.
1412 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1414 * configure: Regenerated to track ../common/aclocal.m4 changes.
1417 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1419 * interp.c (sim_open): New arg `kind'.
1421 * configure: Regenerated to track ../common/aclocal.m4 changes.
1423 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1425 * configure: Regenerated to track ../common/aclocal.m4 changes.
1427 Tue Mar 25 11:38:22 1997 Doug Evans <dje@canuck.cygnus.com>
1429 * interp.c (sim_open): Set optind to 0 before calling getopt.
1431 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1433 * configure: Regenerated to track ../common/aclocal.m4 changes.
1435 Mon Mar 17 10:52:59 1997 Gavin Koch <gavin@cetus.cygnus.com>
1437 * interp.c : Replace uses of pr_addr with pr_uword64
1438 where the bit length is always 64 independent of SIM_ADDR.
1439 (pr_uword64) : added.
1441 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1443 * configure: Re-generate.
1445 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1447 * configure: Regenerate to track ../common/aclocal.m4 changes.
1449 Thu Mar 13 12:51:36 1997 Doug Evans <dje@canuck.cygnus.com>
1451 * interp.c (sim_open): New SIM_DESC result. Argument is now
1453 (other sim_*): New SIM_DESC argument.
1455 start-sanitize-r5900
1456 Wed Feb 26 18:32:21 1997 Gavin Koch <gavin@cygnus.com>
1458 * gencode.c (POP_AND,POP_OR,POP_NOR,POP_XOR):
1459 Change values to avoid overloading DOUBLEWORD which is tested
1461 * gencode.c: reinstate "offending code".
1464 Mon Feb 24 22:47:14 1997 Dawn Perchik <dawn@cygnus.com>
1466 * interp.c: Fix printing of addresses for non-64-bit targets.
1467 (pr_addr): Add function to print address based on size.
1468 start-sanitize-r5900
1469 * gencode.c: #ifdef out offending code until a permanent fix
1470 can be added. Code is causing build errors for non-5900 mips targets.
1473 start-sanitize-r5900
1474 Thu Feb 20 10:40:24 1997 Gavin Koch <gavin@cetus.cygnus.com>
1476 * gencode.c (process_instructions): Correct test for ISA dependent
1477 architecture bits in isa field of MIPS_DECODE.
1480 Wed Feb 19 14:42:09 1997 Mark Alexander <marka@cygnus.com>
1482 * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
1484 start-sanitize-r5900
1485 Tue Feb 18 17:03:47 1997 Gavin Koch <gavin@cygnus.com>
1487 * gencode.c (MIPS_DECODE): Correct instruction feature flags for
1491 Thu Feb 13 14:08:30 1997 Ian Lance Taylor <ian@cygnus.com>
1493 * gencode.c (build_mips16_operands): Correct computation of base
1494 address for extended PC relative instruction.
1496 start-sanitize-r5900
1497 Fri Feb 7 11:12:44 1997 Gavin Koch <gavin@cygnus.com>
1499 * Makefile.in, configure, configure.in, gencode.c,
1500 interp.c, support.h: add r5900.
1503 Thu Feb 6 17:16:15 1997 Ian Lance Taylor <ian@cygnus.com>
1505 * interp.c (mips16_entry): Add support for floating point cases.
1506 (SignalException): Pass floating point cases to mips16_entry.
1507 (ValueFPR): Don't restrict fmt_single and fmt_word to even
1509 (StoreFPR): Likewise. Also, don't clobber fpr + 1 for fmt_single
1511 (COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
1512 and then set the state to fmt_uninterpreted.
1513 (COP_SW): Temporarily set the state to fmt_word while calling
1516 Tue Feb 4 16:48:25 1997 Ian Lance Taylor <ian@cygnus.com>
1518 * gencode.c (build_instruction): The high order may be set in the
1519 comparison flags at any ISA level, not just ISA 4.
1521 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
1523 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1524 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1525 * configure.in: sinclude ../common/aclocal.m4.
1526 * configure: Regenerated.
1528 Fri Jan 31 11:11:45 1997 Ian Lance Taylor <ian@cygnus.com>
1530 * configure: Rebuild after change to aclocal.m4.
1532 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1534 * configure configure.in Makefile.in: Update to new configure
1535 scheme which is more compatible with WinGDB builds.
1536 * configure.in: Improve comment on how to run autoconf.
1537 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1538 * Makefile.in: Use autoconf substitution to install common
1541 Wed Jan 8 12:39:03 1997 Jim Wilson <wilson@cygnus.com>
1543 * gencode.c (build_instruction): Use BigEndianCPU instead of
1546 Thu Jan 02 22:23:04 1997 Mark Alexander <marka@cygnus.com>
1548 * interp.c (sim_monitor): Make output to stdout visible in
1549 wingdb's I/O log window.
1551 Tue Dec 31 07:04:00 1996 Mark Alexander <marka@cygnus.com>
1553 * support.h: Undo previous change to SIGTRAP
1556 Mon Dec 30 17:36:06 1996 Ian Lance Taylor <ian@cygnus.com>
1558 * interp.c (store_word, load_word): New static functions.
1559 (mips16_entry): New static function.
1560 (SignalException): Look for mips16 entry and exit instructions.
1561 (simulate): Use the correct index when setting fpr_state after
1562 doing a pending move.
1564 Sun Dec 29 09:37:18 1996 Mark Alexander <marka@cygnus.com>
1566 * interp.c: Fix byte-swapping code throughout to work on
1567 both little- and big-endian hosts.
1569 Sun Dec 29 09:18:32 1996 Mark Alexander <marka@cygnus.com>
1571 * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
1572 with gdb/config/i386/xm-windows.h.
1574 Fri Dec 27 22:48:51 1996 Mark Alexander <marka@cygnus.com>
1576 * gencode.c (build_instruction): Work around MSVC++ code gen bug
1577 that messes up arithmetic shifts.
1579 Fri Dec 20 11:04:05 1996 Stu Grossman (grossman@critters.cygnus.com)
1581 * support.h: Use _WIN32 instead of __WIN32__. Also add defs for
1582 SIGTRAP and SIGQUIT for _WIN32.
1584 Thu Dec 19 14:07:27 1996 Ian Lance Taylor <ian@cygnus.com>
1586 * gencode.c (build_instruction) [MUL]: Cast operands to word64, to
1587 force a 64 bit multiplication.
1588 (build_instruction) [OR]: In mips16 mode, don't do anything if the
1589 destination register is 0, since that is the default mips16 nop
1592 Mon Dec 16 14:59:38 1996 Ian Lance Taylor <ian@cygnus.com>
1594 * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
1595 (build_endian_shift): Don't check proc64.
1596 (build_instruction): Always set memval to uword64. Cast op2 to
1597 uword64 when shifting it left in memory instructions. Always use
1598 the same code for stores--don't special case proc64.
1600 * gencode.c (build_mips16_operands): Fix base PC value for PC
1602 (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
1604 * interp.c (simJALDELAYSLOT): Define.
1605 (JALDELAYSLOT): Define.
1606 (INDELAYSLOT, INJALDELAYSLOT): Define.
1607 (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
1609 Tue Dec 24 22:11:20 1996 Angela Marie Thomas (angela@cygnus.com)
1611 * interp.c (sim_open): add flush_cache as a PMON routine
1612 (sim_monitor): handle flush_cache by ignoring it
1614 Wed Dec 11 13:53:51 1996 Jim Wilson <wilson@cygnus.com>
1616 * gencode.c (build_instruction): Use !ByteSwapMem instead of
1618 * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
1619 (BigEndianMem): Rename to ByteSwapMem and change sense.
1620 (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
1621 BigEndianMem references to !ByteSwapMem.
1622 (set_endianness): New function, with prototype.
1623 (sim_open): Call set_endianness.
1624 (sim_info): Use simBE instead of BigEndianMem.
1625 (xfer_direct_word, xfer_direct_long, swap_direct_word,
1626 swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
1627 xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
1628 ifdefs, keeping the prototype declaration.
1629 (swap_word): Rewrite correctly.
1630 (ColdReset): Delete references to CONFIG. Delete endianness related
1631 code; moved to set_endianness.
1633 Tue Dec 10 11:32:04 1996 Jim Wilson <wilson@cygnus.com>
1635 * gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
1636 * interp.c (CHECKHILO): Define away.
1637 (simSIGINT): New macro.
1638 (membank_size): Increase from 1MB to 2MB.
1639 (control_c): New function.
1640 (sim_resume): Rename parameter signal to signal_number. Add local
1641 variable prev. Call signal before and after simulate.
1642 (sim_stop_reason): Add simSIGINT support.
1643 (sim_warning, sim_error, dotrace, SignalException): Define as stdarg
1645 (sim_warning): Delete call to SignalException. Do call printf_filtered
1647 (AddressTranslation): Add #ifdef DEBUG around debugging message and
1648 a call to sim_warning.
1650 Wed Nov 27 11:53:50 1996 Ian Lance Taylor <ian@cygnus.com>
1652 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
1653 16 bit instructions.
1655 Tue Nov 26 11:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
1657 Add support for mips16 (16 bit MIPS implementation):
1658 * gencode.c (inst_type): Add mips16 instruction encoding types.
1659 (GETDATASIZEINSN): Define.
1660 (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add
1661 jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and
1663 (MIPS16_DECODE): New table, for mips16 instructions.
1664 (bitmap_val): New static function.
1665 (struct mips16_op): Define.
1666 (mips16_op_table): New table, for mips16 operands.
1667 (build_mips16_operands): New static function.
1668 (process_instructions): If PC is odd, decode a mips16
1669 instruction. Break out instruction handling into new
1670 build_instruction function.
1671 (build_instruction): New static function, broken out of
1672 process_instructions. Check modifiers rather than flags for SHIFT
1673 bit count and m[ft]{hi,lo} direction.
1674 (usage): Pass program name to fprintf.
1675 (main): Remove unused variable this_option_optind. Change
1676 ``*loptarg++'' to ``loptarg++''.
1677 (my_strtoul): Parenthesize && within ||.
1678 * interp.c (LoadMemory): Accept a halfword pAddr if vAddr is odd.
1679 (simulate): If PC is odd, fetch a 16 bit instruction, and
1680 increment PC by 2 rather than 4.
1681 * configure.in: Add case for mips16*-*-*.
1682 * configure: Rebuild.
1684 Fri Nov 22 08:49:36 1996 Mark Alexander <marka@cygnus.com>
1686 * interp.c: Allow -t to enable tracing in standalone simulator.
1687 Fix garbage output in trace file and error messages.
1689 Wed Nov 20 01:54:37 1996 Doug Evans <dje@canuck.cygnus.com>
1691 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
1692 (SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
1693 * configure.in: Simplify using macros in ../common/aclocal.m4.
1694 * configure: Regenerated.
1695 * tconfig.in: New file.
1697 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
1699 * interp.c: Fix bugs in 64-bit port.
1700 Use ansi function declarations for msvc compiler.
1701 Initialize and test file pointer in trace code.
1702 Prevent duplicate definition of LAST_EMED_REGNUM.
1704 Tue Oct 15 11:07:06 1996 Mark Alexander <marka@cygnus.com>
1706 * interp.c (xfer_big_long): Prevent unwanted sign extension.
1708 Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
1710 * interp.c (SignalException): Check for explicit terminating
1712 * gencode.c: Pass instruction value through SignalException()
1713 calls for Trap, Breakpoint and Syscall.
1715 Thu Sep 26 11:35:17 1996 James G. Smith <jsmith@cygnus.co.uk>
1717 * interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
1718 only used on those hosts that provide it.
1719 * configure.in: Add sqrt() to list of functions to be checked for.
1720 * config.in: Re-generated.
1721 * configure: Re-generated.
1723 Fri Sep 20 15:47:12 1996 Ian Lance Taylor <ian@cygnus.com>
1725 * gencode.c (process_instructions): Call build_endian_shift when
1726 expanding STORE RIGHT, to fix swr.
1727 * support.h (SIGNEXTEND): If the sign bit is not set, explicitly
1728 clear the high bits.
1729 * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
1730 Fix float to int conversions to produce signed values.
1732 Thu Sep 19 15:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
1734 * gencode.c (MIPS_DECODE): Set UNSIGNED for multu instruction.
1735 (process_instructions): Correct handling of nor instruction.
1736 Correct shift count for 32 bit shift instructions. Correct sign
1737 extension for arithmetic shifts to not shift the number of bits in
1738 the type. Fix 64 bit multiply high word calculation. Fix 32 bit
1739 unsigned multiply. Fix ldxc1 and friends to use coprocessor 1.
1741 * interp.c (CHECKHILO): Don't set HIACCESS, LOACCESS, or HLPC.
1742 It's OK to have a mult follow a mult. What's not OK is to have a
1743 mult follow an mfhi.
1744 (Convert): Comment out incorrect rounding code.
1746 Mon Sep 16 11:38:16 1996 James G. Smith <jsmith@cygnus.co.uk>
1748 * interp.c (sim_monitor): Improved monitor printf
1749 simulation. Tidied up simulator warnings, and added "--log" option
1750 for directing warning message output.
1751 * gencode.c: Use sim_warning() rather than WARNING macro.
1753 Thu Aug 22 15:03:12 1996 Ian Lance Taylor <ian@cygnus.com>
1755 * Makefile.in (gencode): Depend upon gencode.o, getopt.o, and
1756 getopt1.o, rather than on gencode.c. Link objects together.
1757 Don't link against -liberty.
1758 (gencode.o, getopt.o, getopt1.o): New targets.
1759 * gencode.c: Include <ctype.h> and "ansidecl.h".
1760 (AND): Undefine after including "ansidecl.h".
1761 (ULONG_MAX): Define if not defined.
1762 (OP_*): Don't define macros; now defined in opcode/mips.h.
1763 (main): Call my_strtoul rather than strtoul.
1764 (my_strtoul): New static function.
1766 Wed Jul 17 18:12:38 1996 Stu Grossman (grossman@critters.cygnus.com)
1768 * gencode.c (process_instructions): Generate word64 and uword64
1769 instead of `long long' and `unsigned long long' data types.
1770 * interp.c: #include sysdep.h to get signals, and define default
1772 * (Convert): Work around for Visual-C++ compiler bug with type
1774 * support.h: Make things compile under Visual-C++ by using
1775 __int64 instead of `long long'. Change many refs to long long
1776 into word64/uword64 typedefs.
1778 Wed Jun 26 12:24:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1780 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1781 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1783 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1784 (AC_PROG_INSTALL): Added.
1785 (AC_PROG_CC): Moved to before configure.host call.
1786 * configure: Rebuilt.
1788 Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
1790 * configure.in: Define @SIMCONF@ depending on mips target.
1791 * configure: Rebuild.
1792 * Makefile.in (run): Add @SIMCONF@ to control simulator
1794 * gencode.c: Change LOADDRMASK to 64bit memory model only.
1795 * interp.c: Remove some debugging, provide more detailed error
1796 messages, update memory accesses to use LOADDRMASK.
1798 Mon Jun 3 11:55:03 1996 Ian Lance Taylor <ian@cygnus.com>
1800 * configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
1801 AC_CHECK_LIB, and AC_CHECK_FUNCS. Change AC_OUTPUT to set
1803 * configure: Rebuild.
1804 * config.in: New file, generated by autoheader.
1805 * interp.c: Include "config.h". Include <stdlib.h>, <string.h>,
1806 and <strings.h> if they exist. Replace #ifdef sun with #ifdef
1807 HAVE_ANINT and HAVE_AINT, as appropriate.
1808 * Makefile.in (run): Use @LIBS@ rather than -lm.
1809 (interp.o): Depend upon config.h.
1810 (Makefile): Just rebuild Makefile.
1811 (clean): Remove stamp-h.
1812 (mostlyclean): Make the same as clean, not as distclean.
1813 (config.h, stamp-h): New targets.
1815 Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
1817 * interp.c (ColdReset): Fix boolean test. Make all simulator
1820 Wed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
1822 * interp.c (xfer_direct_word, xfer_direct_long,
1823 swap_direct_word, swap_direct_long, xfer_big_word,
1824 xfer_big_long, xfer_little_word, xfer_little_long,
1825 swap_word,swap_long): Added.
1826 * interp.c (ColdReset): Provide function indirection to
1827 host<->simulated_target transfer routines.
1828 * interp.c (sim_store_register, sim_fetch_register): Updated to
1829 make use of indirected transfer routines.
1831 Fri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
1833 * gencode.c (process_instructions): Ensure FP ABS instruction
1835 * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
1836 system call support.
1838 Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
1840 * interp.c (sim_do_command): Complain if callback structure not
1843 Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
1845 * interp.c (Convert): Provide round-to-nearest and round-to-zero
1846 support for Sun hosts.
1847 * Makefile.in (gencode): Ensure the host compiler and libraries
1848 used for cross-hosted build.
1850 Wed Mar 27 14:42:12 1996 James G. Smith <jsmith@cygnus.co.uk>
1852 * interp.c, gencode.c: Some more (TODO) tidying.
1854 Thu Mar 7 11:19:33 1996 James G. Smith <jsmith@cygnus.co.uk>
1856 * gencode.c, interp.c: Replaced explicit long long references with
1857 WORD64HI, WORD64LO, SET64HI and SET64LO macro calls.
1858 * support.h (SET64LO, SET64HI): Macros added.
1860 Wed Feb 21 12:16:21 1996 Ian Lance Taylor <ian@cygnus.com>
1862 * configure: Regenerate with autoconf 2.7.
1864 Tue Jan 30 08:48:18 1996 Fred Fish <fnf@cygnus.com>
1866 * interp.c (LoadMemory): Enclose text following #endif in /* */.
1867 * support.h: Remove superfluous "1" from #if.
1868 * support.h (CHECKSIM): Remove stray 'a' at end of line.
1870 Mon Dec 4 11:44:40 1995 Jamie Smith <jsmith@cygnus.com>
1872 * interp.c (StoreFPR): Control UndefinedResult() call on
1873 WARN_RESULT manifest.
1875 Fri Dec 1 16:37:19 1995 James G. Smith <jsmith@cygnus.co.uk>
1877 * gencode.c: Tidied instruction decoding, and added FP instruction
1880 * interp.c: Added dineroIII, and BSD profiling support. Also
1881 run-time FP handling.
1883 Sun Oct 22 00:57:18 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
1885 * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
1886 gencode.c, interp.c, support.h: created.