1 Tue May 12 15:22:11 1998 Andrew Cagney <cagney@b1.cygnus.com>
3 * configure.in (SUBTARGET_R3900): Define for mipstx39 target.
4 Document a replacement.
6 Fri May 8 17:48:19 1998 Ian Carmichael <iancarm@cygnus.com>
8 * interp.c (sim_monitor): Make mon_printf work.
10 Wed May 6 19:42:19 1998 Doug Evans <devans@canuck.cygnus.com>
12 * sim-main.h (INSN_NAME): New arg `cpu'.
15 Thu Apr 30 18:51:26 1998 Andrew Cagney <cagney@b1.cygnus.com>
17 * sky-libvpe.c (FMAdd, FMSub): Replace r59fp_op3 call with
22 Wed Apr 29 22:54:45 1998 Andrew Cagney <cagney@b1.cygnus.com>
24 * sim-main.h (R5900_FP_MAX, R5900_FP_MIN): Define.
25 * r5900.igen (r59fp_overflow): Use.
27 * r5900.igen (r59fp_op3): Rename to
28 (r59fp_mula): This, delete opm argument.
29 (MADD.S, MADDA.S, MSUB.S, MSUBS.S): Update.
30 (r59fp_mula): Overflowing product propogates through to result.
31 (r59fp_mula): ACC to the MAX propogates to result.
32 (r59fp_mula): Underflow during multiply only sets SU.
35 Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
37 * configure: Regenerated to track ../common/aclocal.m4 changes.
39 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
41 * configure: Regenerated to track ../common/aclocal.m4 changes.
44 Sun Apr 26 15:20:01 1998 Tom Tromey <tromey@cygnus.com>
46 * acconfig.h: New file.
47 * configure.in: Reverted change of Apr 24; use sinclude again.
49 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
51 * configure: Regenerated to track ../common/aclocal.m4 changes.
54 Fri Apr 24 11:19:20 1998 Tom Tromey <tromey@cygnus.com>
56 * configure.in: Don't call sinclude.
58 Fri Apr 24 11:35:01 1998 Andrew Cagney <cagney@chook.cygnus.com>
60 * mips.igen (do_store_left): Pass 0 not NULL to store_memory.
62 Tue Apr 21 11:59:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
64 * mips.igen (ERET): Implement.
66 * interp.c (decode_coproc): Return sign-extended EPC.
68 * mips.igen (ANDI, LUI, MFC0): Add tracing code.
70 * interp.c (signal_exception): Do not ignore Trap.
71 (signal_exception): On TRAP, restart at exception address.
72 (HALT_INSTRUCTION, HALT_INSTRUCTION_MASK): Define.
73 (signal_exception): Update.
74 (sim_open): Patch V_COMMON interrupt vector with an abort sequence
75 so that TRAP instructions are caught.
77 Mon Apr 20 11:26:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
79 * sim-main.h (struct hilo_access, struct hilo_history): Define,
80 contains HI/LO access history.
81 (struct _sim_cpu): Make hiaccess and loaccess of type hilo_access.
82 (HIACCESS, LOACCESS): Delete, replace with
83 (HIHISTORY, LOHISTORY): New macros.
84 (start-sanitize-r5900):
85 (struct sim_5900_cpu): Make hi1access, lo1access of type
87 (HI1ACCESS, LO1ACCESS): Delete, replace with
88 (HI1HISTORY, LO1HISTORY): New macros.
90 (CHECKHILO): Delete all, moved to mips.igen
92 * gencode.c (build_instruction): Do not generate checks for
93 correct HI/LO register usage.
95 * interp.c (old_engine_run): Delete checks for correct HI/LO
98 * mips.igen (check_mt_hilo, check_mf_hilo, check_op_hilo,
99 check_mf_cycles): New functions.
100 (do_mfhi, do_mflo, "mthi", "mtlo", do_ddiv, do_ddivu, do_div,
101 do_divu, domultx, do_mult, do_multu): Use.
103 * tx.igen ("madd", "maddu"): Use.
104 (start-sanitize-r5900):
106 r5900.igen: Update all HI/LO checks.
107 ("mfhi1", "mflo1", "mthi1", "mthi1", "pmfhi", "pmflo", "pmfhl",
108 "pmthi", "pmtlo", "mpthl"): Check MF/MT HI/LO.
109 ("mult1", "div1", "divu1", "multu1", "madd1", "maddu1", "pdivbw",
110 "pdivuw", "pdivw", "phmaddh", "phmsubh", "pmaddh", "madduw",
111 "pmaddw", "pmsubh", "pmsubw", "pmulth", "pmultuw", "pmultw"):
113 (end-sanitize-r5900):
116 Mon Apr 20 18:39:47 1998 Frank Ch. Eigler <fche@cygnus.com>
118 * interp.c (decode_coproc): Correct CMFC2/QMTC2
121 * r5900.igen (LQ,SQ): Use a pair of 64-bit accesses
122 instead of a single 128-bit access.
126 Fri Apr 17 14:50:39 1998 Frank Ch. Eigler <fche@cygnus.com>
128 * r5900.igen (COP_[LS]Q): Transfer COP2 quadwords.
129 * interp.c (cop_[ls]q): Fixes corresponding to above.
133 Thu Apr 16 15:24:14 1998 Frank Ch. Eigler <fche@cygnus.com>
135 * interp.c (decode_coproc): Adapt COP2 micro interlock to
136 clarified specs. Reset "M" bit; exit also on "E" bit.
140 Thu Apr 16 10:40:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
142 * r5900.igen (CFC1, CTC1): Implement R5900 specific version.
143 * mips.igen (CFC1, CTC1): R5900 des not use generic version.
145 * r5900.igen (r59fp_unpack): New function.
146 (r59fp_op1, r59fp_op2, r59fp_op3, C.cond.S, CVT.S.W, DIV.S,
147 RSQRT.S, SQRT.S): Use.
148 (r59fp_zero): New function.
149 (r59fp_overflow): Generate r5900 specific overflow value.
150 (r59fp_store): Re-write, overflow to MAX_R5900_FP value, underflow
152 (CVT.S.W, CVT.W.S): Exchange implementations.
154 * sim-main.h (R5900_EXPMAX, R5900_EXPMIN, R5900_EXPBIAS): Defile.
158 Thu Apr 16 09:14:44 1998 Andrew Cagney <cagney@b1.cygnus.com>
160 * configure.in (tx19, sim_use_gen): Switch to igen.
161 * configure: Re-build.
165 Wed Apr 15 12:41:18 1998 Frank Ch. Eigler <fche@cygnus.com>
167 * interp.c (decode_coproc): Make COP2 branch code compile after
168 igen signature changes.
171 Wed Apr 15 18:31:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
173 * mips.igen (DSRAV): Use function do_dsrav.
174 (SRAV): Use new function do_srav.
176 * m16.igen (BEQZ, BNEZ): Compare GPR[TRX] not GPR[RX].
177 (B): Sign extend 11 bit immediate.
178 (EXT-B*): Shift 16 bit immediate left by 1.
179 (ADDIU*): Don't sign extend immediate value.
181 Wed Apr 15 10:32:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
183 * m16run.c (sim_engine_run): Restore CIA after handling an event.
186 * mips.igen (mtc0): Valid tx19 instruction.
189 * sim-main.h (DELAY_SLOT, NULLIFY_NEXT_INSTRUCTION): For IGEN, use
192 * mips.igen (delayslot32, nullify_next_insn): New functions.
193 (m16.igen): Always include.
194 (do_*): Add more tracing.
196 * m16.igen (delayslot16): Add NIA argument, could be called by a
197 32 bit MIPS16 instruction.
199 * interp.c (ifetch16): Move function from here.
200 * sim-main.c (ifetch16): To here.
202 * sim-main.c (ifetch16, ifetch32): Update to match current
203 implementations of LH, LW.
204 (signal_exception): Don't print out incorrect hex value of illegal
207 Wed Apr 15 00:17:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
209 * m16run.c (sim_engine_run): Use IMEM16 and IMEM32 to fetch an
212 * m16.igen: Implement MIPS16 instructions.
214 * mips.igen (do_addiu, do_addu, do_and, do_daddiu, do_daddu,
215 do_ddiv, do_ddivu, do_div, do_divu, do_dmultx, do_dmultu, do_srav,
216 do_dsubu, do_mfhi, do_mflo, do_mult, do_multu, do_nor, do_or,
217 do_sll, do_sllv, do_slt, do_slti, do_sltiu, do_sltu, do_sra,
218 do_srl, do_srlv, do_subu, do_xor, do_xori): New functions. Move
219 bodies of corresponding code from 32 bit insn to these. Also used
220 by MIPS16 versions of functions.
222 * sim-main.h (RAIDX, T8IDX, T8, SPIDX): Define.
223 (IMEM16): Drop NR argument from macro.
226 Mon Apr 13 16:28:52 1998 Frank Ch. Eigler <fche@cygnus.com>
228 * interp.c (decode_coproc): Add proper 1000000 bit-string at top
229 of VU lower instruction.
233 Thu Apr 9 16:38:23 1998 Frank Ch. Eigler <fche@cygnus.com>
235 * r5900.igen (LQC,SQC): Adapted code to DOUBLEWORD accesses
238 * sim-main.h: Removed attempt at allowing 128-bit access.
242 Wed Apr 8 18:12:13 1998 Frank Ch. Eigler <fche@cygnus.com>
244 * Makefile.in (SIM_SKY_OBJS): Added sky-vudis.o.
246 * interp.c (decode_coproc): Refer to VU CIA as a "special"
247 register, not as a "misc" register. Aha. Add activity
248 assertions after VCALLMS* instructions.
252 Tue Apr 7 18:32:49 1998 Frank Ch. Eigler <fche@cygnus.com>
254 * interp.c (decode_coproc): Do not apply superfluous E (end) flag
255 to upper code of generated VU instruction.
259 Mon Apr 6 19:55:56 1998 Frank Ch. Eigler <fche@cygnus.com>
261 * interp.c (cop_[ls]q): Replaced stub with proper COP2 code.
263 * sim-main.h (LOADADDRMASK): Redefine to allow 128-bit accesses
266 * r5900.igen (SQC2): Thinko.
270 Sun Apr 5 12:05:44 1998 Frank Ch. Eigler <fche@cygnus.com>
272 * interp.c (*): Adapt code to merged VU device & state structs.
273 (decode_coproc): Execute COP2 each macroinstruction without
274 pipelining, by stepping VU to completion state. Adapted to
275 read_vu_*_reg style of register access.
277 * mips.igen ([SL]QC2): Removed these COP2 instructions.
279 * r5900.igen ([SL]QC2): Transplanted these COP2 instructions here.
281 * sim-main.h (cop_[ls]q): Enclosed in TARGET_SKY guards.
284 Sat Apr 4 22:39:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
286 * Makefile.in (SIM_OBJS): Add sim-main.o.
288 * sim-main.h (address_translation, load_memory, store_memory,
289 cache_op, sync_operation, prefetch, ifetch32, pending_tick): Mark
291 (pr_addr, pr_uword64): Declare.
292 (sim-main.c): Include when H_REVEALS_MODULE_P.
294 * interp.c (address_translation, load_memory, store_memory,
295 cache_op, sync_operation, prefetch, ifetch32, pending_tick): Move
297 * sim-main.c: To here. Fix compilation problems.
299 * configure.in: Enable inlining.
300 * configure: Re-config.
302 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
304 * configure: Regenerated to track ../common/aclocal.m4 changes.
306 Fri Apr 3 04:32:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
308 * mips.igen: Include tx.igen.
309 * Makefile.in (IGEN_INCLUDE): Add tx.igen.
310 * tx.igen: New file, contains MADD and MADDU.
312 * interp.c (load_memory): When shifting bytes, use LOADDRMASK not
313 the hardwired constant `7'.
314 (store_memory): Ditto.
315 (LOADDRMASK): Move definition to sim-main.h.
317 mips.igen (MTC0): Enable for r3900.
320 mips.igen (do_load_byte): Delete.
321 (do_load, do_store, do_load_left, do_load_write, do_store_left,
322 do_store_right): New functions.
323 (SW*, LW*, SD*, LD*, SH, LH, SB, LB): Use.
325 configure.in: Let the tx39 use igen again.
328 Thu Apr 2 10:59:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
330 * interp.c (sim_monitor): get_mem_info returns a 4 byte quantity,
331 not an address sized quantity. Return zero for cache sizes.
333 Wed Apr 1 23:47:53 1998 Andrew Cagney <cagney@b1.cygnus.com>
335 * mips.igen (r3900): r3900 does not support 64 bit integer
339 Wed Apr 1 08:20:31 1998 Frank Ch. Eigler <fche@cygnus.com>
341 * mips.igen (SQC2/LQC2): Make bodies sky-target-only also.
345 Mon Mar 30 18:41:43 1998 Frank Ch. Eigler <fche@cygnus.com>
347 * interp.c (decode_coproc): Continuing COP2 work.
348 (cop_[ls]q): Make sky-target-only.
350 * sim-main.h (COP_[LS]Q): Make sky-target-only.
352 Mon Mar 30 14:46:05 1998 Gavin Koch <gavin@cygnus.com>
354 * configure.in (mipstx39*-*-*): Use gencode simulator rather
356 * configure : Rebuild.
359 Sun Mar 29 17:50:11 Frank Ch. Eigler <fche@cygnus.com>
361 * interp.c (decode_coproc): Added a missing TARGET_SKY check
362 around COP2 implementation skeleton.
366 Fri Mar 27 16:19:29 1998 Frank Ch. Eigler <fche@cygnus.com>
368 * Makefile.in (SIM_SKY_OBJS): Replaced sky-vu[01].o with sky-vu.o.
370 * interp.c (sim_{load,store}_register): Use new vu[01]_device
371 static to access VU registers.
372 (decode_coproc): Added skeleton of sky COP2 (VU) instruction
373 decoding. Work in progress.
375 * mips.igen (LDCzz, SDCzz): Removed *5900 case for this
376 overlapping/redundant bit pattern.
377 (LQC2, SQC2): Added *5900 COP2 instruction skeleta. Work in
380 * sim-main.h (status_CU[012]): Added COP[n]-enabled flags for
383 * interp.c (cop_lq, cop_sq): New functions for future 128-bit
384 access to coprocessor registers.
386 * sim-main.h (COP_LQ, COP_SQ): New macro front-ends for above.
388 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
390 * configure: Regenerated to track ../common/aclocal.m4 changes.
392 Fri Mar 27 15:01:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
394 * interp.c (mips_option_handler): Iterate over MAX_NR_PROCESSORS.
396 Wed Mar 25 16:44:27 1998 Ian Carmichael <iancarm@cygnus.com>
398 * configure: Regenerated to track ../common/aclocal.m4 changes.
399 * config.in: Regenerated to track ../common/aclocal.m4 changes.
401 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
403 * configure: Regenerated to track ../common/aclocal.m4 changes.
405 Wed Mar 25 10:05:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
407 * interp.c (Max, Min): Comment out functions. Not yet used.
409 start-sanitize-vr4320
410 Wed Mar 25 10:04:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
412 * vr4320.igen (DCLZ): Pacify GCC, 64 bit arg, int format.
415 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
417 * configure: Regenerated to track ../common/aclocal.m4 changes.
419 Tue Mar 17 19:05:20 1998 Frank Ch. Eigler <fche@cygnus.com>
421 * Makefile.in (MIPS_EXTRA_LIBS, SIM_EXTRA_LIBS): Added
422 configurable settings for stand-alone simulator.
425 * configure.in: Added --with-sim-gpu2 option to specify path of
426 sky GPU2 library. Triggers -DSKY_GPU2 for sky-gpuif.c, and
427 links/compiles stand-alone simulator with this library.
429 * interp.c (MEM_SIZE): Increased default sky memory size to 16MB.
431 * configure.in: Added X11 search, just in case.
433 * configure: Regenerated.
435 Wed Mar 11 14:09:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
437 * interp.c (sim_write, sim_read, load_memory, store_memory):
438 Replace sim_core_*_map with read_map, write_map, exec_map resp.
440 start-sanitize-vr4320
441 Tue Mar 10 10:32:22 1998 Gavin Koch <gavin@cygnus.com>
443 * vr4320.igen (clz,dclz) : Added.
444 (dmac): Replaced 99, with LO.
447 start-sanitize-vr5400
448 Fri Mar 6 08:30:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
450 * mdmx.igen (SHFL.REPA.fmt, SHFL.REPB.fmt): Fix bit fields.
453 start-sanitize-vr4320
454 Tue Mar 3 11:56:29 1998 Gavin Koch <gavin@cygnus.com>
456 * vr4320.igen: New file.
457 * Makefile.in (vr4320.igen) : Added.
458 * configure.in (mips64vr4320-*-*): Added.
459 * configure : Rebuilt.
460 * mips.igen : Correct the bfd-names in the mips-ISA model entries.
461 Add the vr4320 model entry and mark the vr4320 insn as necessary.
464 Tue Mar 3 13:58:43 1998 Andrew Cagney <cagney@b1.cygnus.com>
466 * sim-main.h (GETFCC): Return an unsigned value.
469 * r5900.igen: Use an unsigned array index variable `i'.
470 (QFSRV): Ditto for variable bytes.
473 Tue Mar 3 13:21:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
475 * mips.igen (DIV): Fix check for -1 / MIN_INT.
476 (DADD): Result destination is RD not RT.
479 * r5900.igen (DIV1): Fix check for -1 / MIN_INT.
480 (DIVU1): Don't check for MIN_INT / -1 as performing unsigned
484 Fri Feb 27 13:49:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
486 * sim-main.h (HIACCESS, LOACCESS): Always define.
488 * mdmx.igen (Maxi, Mini): Rename Max, Min.
490 * interp.c (sim_info): Delete.
492 Fri Feb 27 18:41:01 1998 Doug Evans <devans@canuck.cygnus.com>
494 * interp.c (DECLARE_OPTION_HANDLER): Use it.
495 (mips_option_handler): New argument `cpu'.
496 (sim_open): Update call to sim_add_option_table.
498 Wed Feb 25 18:56:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
500 * mips.igen (CxC1): Add tracing.
503 Wed Feb 25 13:59:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
505 * r5900.igen (StoreFP): Delete.
506 (r59fp_store, r59fp_overflow, r59fp_op1, r59fp_op2, r59fp_op3):
508 (rsqrt.s, sqrt.s): Implement.
509 (r59cond): New function.
510 (C.COND.S): Call r59cond in assembler line.
511 (cvt.w.s, cvt.s.w): Implement.
513 * mips.igen (rsqrt.fmt, sqrt.fmt, cvt.*.*): Remove from r5900
516 * sim-main.h: Define an enum of r5900 FCSR bit fields.
520 Tue Feb 24 14:44:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
522 * r5900.igen: Add tracing to all p* instructions.
524 Tue Feb 24 02:47:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
526 * interp.c (sim_store_register, sim_fetch_register): Pull swifty
527 to get gdb talking to re-aranged sim_cpu register structure.
530 Fri Feb 20 17:43:21 1998 Andrew Cagney <cagney@b1.cygnus.com>
532 * sim-main.h (Max, Min): Declare.
534 * interp.c (Max, Min): New functions.
536 * mips.igen (BC1): Add tracing.
538 start-sanitize-vr5400
539 Fri Feb 20 16:27:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
541 * mdmx.igen: Tag all functions as requiring either with mdmx or
546 Fri Feb 20 15:55:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
548 * configure.in (SIM_AC_OPTION_FLOAT): For r5900, set FP bit size
550 (SIM_AC_OPTION_BITSIZE): For r5900, set nr address bits to 32.
552 * mips.igen (C.cond.fmt, ..): Not part of r5900 insn set.
554 * r5900.igen: Rewrite.
556 * sim-main.h: Move r5900 registers to a separate _sim_r5900_cpu
558 (GPR_SB, GPR_SH, GPR_SW, GPR_SD, GPR_UB, GPR_UH, GPR_UW, GPR_UD):
559 Define in terms of GPR/GPR1 instead of REGISTERS/REGISTERS.1
562 Thu Feb 19 14:50:00 1998 John Metzler <jmetzler@cygnus.com>
564 * interp.c Added memory map for stack in vr4100
566 Thu Feb 19 10:21:21 1998 Gavin Koch <gavin@cygnus.com>
568 * interp.c (load_memory): Add missing "break"'s.
570 Tue Feb 17 12:45:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
572 * interp.c (sim_store_register, sim_fetch_register): Pass in
573 length parameter. Return -1.
575 Tue Feb 10 11:57:40 1998 Ian Carmichael <iancarm@cygnus.com>
577 * interp.c: Added hardware init hook, fixed warnings.
579 Sat Feb 7 17:16:20 1998 Andrew Cagney <cagney@b1.cygnus.com>
581 * Makefile.in (itable.h itable.c): Depend on SIM_@sim_gen@_ALL.
583 Tue Feb 3 11:36:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
585 * interp.c (ifetch16): New function.
587 * sim-main.h (IMEM32): Rename IMEM.
588 (IMEM16_IMMED): Define.
590 (DELAY_SLOT): Update.
592 * m16run.c (sim_engine_run): New file.
594 * m16.igen: All instructions except LB.
595 (LB): Call do_load_byte.
596 * mips.igen (do_load_byte): New function.
597 (LB): Call do_load_byte.
599 * mips.igen: Move spec for insn bit size and high bit from here.
600 * Makefile.in (tmp-igen, tmp-m16): To here.
602 * m16.dc: New file, decode mips16 instructions.
604 * Makefile.in (SIM_NO_ALL): Define.
605 (tmp-m16): Generate both 16 bit and 32 bit simulator engines.
608 * m16.igen: Mark all mips16 insns as being part of the tx19 insn
612 Tue Feb 3 11:28:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
614 * configure.in (mips_fpu_bitsize): For tx39, restrict floating
615 point unit to 32 bit registers.
616 * configure: Re-generate.
618 Sun Feb 1 15:47:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
620 * configure.in (sim_use_gen): Make IGEN the default simulator
621 generator for generic 32 and 64 bit mips targets.
622 * configure: Re-generate.
624 Sun Feb 1 16:52:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
626 * sim-main.h (SizeFGR): Determine from floating-point and not gpr
629 * interp.c (sim_fetch_register, sim_store_register): Read/write
630 FGR from correct location.
631 (sim_open): Set size of FGR's according to
632 WITH_TARGET_FLOATING_POINT_BITSIZE.
634 * sim-main.h (FGR): Store floating point registers in a separate
637 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
639 * configure: Regenerated to track ../common/aclocal.m4 changes.
641 start-sanitize-vr5400
642 * mdmx.igen: Mark all instructions as 64bit/fp specific.
645 Tue Feb 3 00:10:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
647 * interp.c (ColdReset): Call PENDING_INVALIDATE.
649 * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Call PENDING_TICK.
651 * interp.c (pending_tick): New function. Deliver pending writes.
653 * sim-main.h (PENDING_FILL, PENDING_TICK, PENDING_SCHED,
654 PENDING_BIT, PENDING_INVALIDATE): Re-write pipeline code so that
655 it can handle mixed sized quantites and single bits.
657 Mon Feb 2 17:43:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
659 * interp.c (oengine.h): Do not include when building with IGEN.
660 (sim_open): Replace GPRLEN by WITH_TARGET_WORD_BITSIZE.
661 (sim_info): Ditto for PROCESSOR_64BIT.
662 (sim_monitor): Replace ut_reg with unsigned_word.
663 (*): Ditto for t_reg.
664 (LOADDRMASK): Define.
665 (sim_open): Remove defunct check that host FP is IEEE compliant,
666 using software to emulate floating point.
667 (value_fpr, ...): Always compile, was conditional on HASFPU.
669 Sun Feb 1 11:15:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
671 * sim-main.h (sim_state): Make the cpu array MAX_NR_PROCESSORS in
674 * interp.c (SD, CPU): Define.
675 (mips_option_handler): Set flags in each CPU.
676 (interrupt_event): Assume CPU 0 is the one being iterrupted.
677 (sim_close): Do not clear STATE, deleted anyway.
678 (sim_write, sim_read): Assume CPU zero's vm should be used for
680 (sim_create_inferior): Set the PC for all processors.
681 (sim_monitor, store_word, load_word, mips16_entry): Add cpu
683 (mips16_entry): Pass correct nr of args to store_word, load_word.
684 (ColdReset): Cold reset all cpu's.
685 (signal_exception): Pass cpu to sim_monitor & mips16_entry.
686 (sim_monitor, load_memory, store_memory, signal_exception): Use
687 `CPU' instead of STATE_CPU.
690 * sim-main.h: Replace uses of STATE_CPU with CPU. Replace sd with
693 * sim-main.h (signal_exception): Add sim_cpu arg.
694 (SignalException*): Pass both SD and CPU to signal_exception.
695 * interp.c (signal_exception): Update.
697 * sim-main.h (value_fpr, store_fpr, dotrace, ifetch32), interp.c:
699 (sync_operation, prefetch, cache_op, store_memory, load_memory,
700 address_translation): Ditto
701 (decode_coproc, cop_lw, cop_ld, cop_sw, cop_sd): Ditto.
703 start-sanitize-vr5400
704 * mdmx.igen (get_scale): Pass CPU_ to semantic_illegal instead of
706 (ByteAlign): Use StoreFPR, pass args in correct order.
710 Sun Feb 1 10:59:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
712 * configure.in (sim_igen_filter): For r5900, configure as SMP.
715 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
717 * configure: Regenerated to track ../common/aclocal.m4 changes.
719 Sat Jan 31 14:49:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
722 * configure.in (sim_igen_filter): For r5900, use igen.
723 * configure: Re-generate.
726 * interp.c (sim_engine_run): Add `nr_cpus' argument.
728 * mips.igen (model): Map processor names onto BFD name.
730 * sim-main.h (CPU_CIA): Delete.
731 (SET_CIA, GET_CIA): Define
733 Wed Jan 21 16:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
735 * sim-main.h (GPR_SET): Define, used by igen when zeroing a
738 * configure.in (default_endian): Configure a big-endian simulator
740 * configure: Re-generate.
742 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
744 * configure: Regenerated to track ../common/aclocal.m4 changes.
746 Mon Jan 5 20:38:54 1998 Mark Alexander <marka@cygnus.com>
748 * interp.c (sim_monitor): Handle Densan monitor outbyte
749 and inbyte functions.
751 1997-12-29 Felix Lee <flee@cygnus.com>
753 * interp.c (sim_engine_run): msvc cpp barfs on #if (a==b!=c).
755 Wed Dec 17 14:48:20 1997 Jeffrey A Law (law@cygnus.com)
757 * Makefile.in (tmp-igen): Arrange for $zero to always be
758 reset to zero after every instruction.
760 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
762 * configure: Regenerated to track ../common/aclocal.m4 changes.
765 start-sanitize-vr5400
766 Sat Dec 13 15:18:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
768 * vr5400.igen (Low32Bits, High32Bits): Sign extend extracted 32
772 start-sanitize-vr5400
773 Fri Dec 12 12:26:07 1997 Jeffrey A Law (law@cygnus.com)
775 * configure.in (sim_igen_filter): Multi-sim vr5000 - vr5000 or
776 vr5400 with the vr5000 as the default.
779 Wed Dec 10 17:10:45 1997 Jeffrey A Law (law@cygnus.com)
781 * mips.igen (MSUB): Fix to work like MADD.
782 * gencode.c (MSUB): Similarly.
784 start-sanitize-vr5400
785 Tue Dec 9 12:02:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
787 * configure.in (sim_igen_filter): Multi-sim vr5400 - vr5000 or
791 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
793 * configure: Regenerated to track ../common/aclocal.m4 changes.
795 Wed Nov 26 11:00:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
797 * mips.igen (LWC1): Correct assembler - lwc1 not swc1.
799 start-sanitize-vr5400
800 * mdmx.igen (value_vr): Correct sim_io_eprintf format argument.
801 (value_cc, store_cc): Implement.
803 * sim-main.h: Add 8*3*8 bit accumulator.
805 * vr5400.igen: Move mdmx instructins from here
806 * mdmx.igen: To here - new file. Add/fix missing instructions.
807 * mips.igen: Include mdmx.igen.
808 * Makefile.in (IGEN_INCLUDE): Add mdmx.igen.
811 Sun Nov 23 01:45:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
813 * sim-main.h (sim-fpu.h): Include.
815 * interp.c (convert, SquareRoot, Recip, Divide, Multiply, Sub,
816 Add, Negate, AbsoluteValue, Equal, Less, Infinity, NaN): Rewrite
817 using host independant sim_fpu module.
819 Thu Nov 20 19:56:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
821 * interp.c (signal_exception): Report internal errors with SIGABRT
824 * sim-main.h (C0_CONFIG): New register.
825 (signal.h): No longer include.
827 * interp.c (decode_coproc): Allow access C0_CONFIG to register.
829 Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
831 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
833 Fri Nov 14 11:56:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
835 * mips.igen: Tag vr5000 instructions.
836 (ANDI): Was missing mipsIV model, fix assembler syntax.
837 (do_c_cond_fmt): New function.
838 (C.cond.fmt): Handle mips I-III which do not support CC field
840 (bc1): Handle mips IV which do not have a delaed FCC separatly.
841 (SDR): Mask paddr when BigEndianMem, not the converse as specified
843 (DMULT, DMULTU): Force use of hosts 64bit multiplication. Handle
844 vr5000 which saves LO in a GPR separatly.
846 * configure.in (enable-sim-igen): For vr5000, select vr5000
847 specific instructions.
848 * configure: Re-generate.
850 Wed Nov 12 14:42:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
852 * Makefile.in (SIM_OBJS): Add sim-fpu module.
854 * interp.c (store_fpr), sim-main.h: Add separate fmt_uninterpreted_32 and
855 fmt_uninterpreted_64 bit cases to switch. Convert to
858 * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Define,
860 * mips.igen (SWR): Mask paddr when BigEndianMem, not the converse
861 as specified in IV3.2 spec.
862 (MTC1, DMTC1): Call StoreFPR to store the GPR in the FPR.
864 Tue Nov 11 12:38:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
866 * mips.igen: Delay slot branches add OFFSET to NIA not CIA.
867 (MFC0, MTC0, SWC1, LWC1, SDC1, LDC1): Implement.
868 (start-sanitize-r5900):
869 (LWXC1, SWXC1): Delete from r5900 instruction set.
870 (end-sanitize-r5900):
871 (MTC1, MFC1, DMTC1, DMFC1, CFC1, CTC1): Implement separate non
872 PENDING_FILL versions of instructions. Simplify.
874 (MULT, MULTU): Implement separate RD==0 and RD!=0 versions of
876 (BEQZ, ..., SLT, SLTI, TLT, TLE, TLI, ...): Explicitly cast GPR to
878 (MTHI, MFHI): Disable code checking HI-LO.
880 * sim-main.h (dotrace,tracefh), interp.c: Make dotrace & tracefh
882 (NULLIFY_NEXT_INSTRUCTION): Call dotrace.
884 Thu Nov 6 16:36:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
886 * gencode.c (build_mips16_operands): Replace IPC with cia.
888 * interp.c (sim_monitor, signal_exception, cache_op, store_fpr,
889 value_fpr, cop_ld, cop_lw, cop_sw, cop_sd, decode_coproc): Replace
891 (UndefinedResult): Replace function with macro/function
893 (sim_engine_run): Don't save PC in IPC.
895 * sim-main.h (IPC): Delete.
897 start-sanitize-vr5400
898 * vr5400.igen (vr): Add missing cia argument to value_fpr.
899 (do_select): Rename function select.
902 * interp.c (signal_exception, store_word, load_word,
903 address_translation, load_memory, store_memory, cache_op,
904 prefetch, sync_operation, ifetch, value_fpr, store_fpr, convert,
905 cop_lw, cop_ld, cop_sw, cop_sd, decode_coproc, sim_monitor): Add
906 current instruction address - cia - argument.
907 (sim_read, sim_write): Call address_translation directly.
908 (sim_engine_run): Rename variable vaddr to cia.
909 (signal_exception): Pass cia to sim_monitor
911 * sim-main.h (SignalException, LoadWord, StoreWord, CacheOp,
912 Prefetch, SyncOperation, ValueFPR, StoreFPR, Convert, COP_LW,
913 COP_LD, COP_SW, COP_SD, DecodeCoproc): Update.
915 * sim-main.h (SignalExceptionSimulatorFault): Delete definition.
916 * interp.c (sim_open): Replace SignalExceptionSimulatorFault with
919 * interp.c (signal_exception): Pass restart address to
922 * Makefile.in (semantics.o, engine.o, support.o, itable.o,
923 idecode.o): Add dependency.
925 * sim-main.h (SIM_ENGINE_HALT_HOOK, SIM_ENGINE_RESUME_HOOK):
927 (DELAY_SLOT): Update NIA not PC with branch address.
928 (NULLIFY_NEXT_INSTRUCTION): Set NIA to instruction after next.
930 * mips.igen: Use CIA not PC in branch calculations.
931 (illegal): Call SignalException.
932 (BEQ, ADDIU): Fix assembler.
934 Wed Nov 5 12:19:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
936 * m16.igen (JALX): Was missing.
938 * configure.in (enable-sim-igen): New configuration option.
939 * configure: Re-generate.
941 * sim-main.h (MAX_INSNS, INSN_NAME): Define.
943 * interp.c (load_memory, store_memory): Delete parameter RAW.
944 (sim_read, sim_write): Use sim_core_{read,write}_buffer directly
945 bypassing {load,store}_memory.
947 * sim-main.h (ByteSwapMem): Delete definition.
949 * Makefile.in (SIM_OBJS): Add sim-memopt module.
951 * interp.c (sim_do_command, sim_commands): Delete mips specific
952 commands. Handled by module sim-options.
954 * sim-main.h (SIM_HAVE_FLATMEM): Undefine, use sim-core.o module.
955 (WITH_MODULO_MEMORY): Define.
957 * interp.c (sim_info): Delete code printing memory size.
959 * interp.c (mips_size): Nee sim_size, delete function.
961 (monitor, monitor_base, monitor_size): Delete global variables.
962 (sim_open, sim_close): Delete code creating monitor and other
963 memory regions. Use sim-memopts module, via sim_do_commandf, to
964 manage memory regions.
965 (load_memory, store_memory): Use sim-core for memory model.
967 * interp.c (address_translation): Delete all memory map code
968 except line forcing 32 bit addresses.
970 Wed Nov 5 11:21:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
972 * sim-main.h (WITH_TRACE): Delete definition. Enables common
975 * interp.c (logfh, logfile): Delete globals.
976 (sim_open, sim_close): Delete code opening & closing log file.
977 (mips_option_handler): Delete -l and -n options.
978 (OPTION mips_options): Ditto.
980 * interp.c (OPTION mips_options): Rename option trace to dinero.
981 (mips_option_handler): Update.
983 Wed Nov 5 09:35:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
985 * interp.c (fetch_str): New function.
986 (sim_monitor): Rewrite using sim_read & sim_write.
987 (sim_open): Check magic number.
988 (sim_open): Write monitor vectors into memory using sim_write.
989 (MONITOR_BASE, MONITOR_SIZE, MEM_SIZE): Define.
990 (sim_read, sim_write): Simplify - transfer data one byte at a
992 (load_memory, store_memory): Clarify meaning of parameter RAW.
994 * sim-main.h (isHOST): Defete definition.
995 (isTARGET): Mark as depreciated.
996 (address_translation): Delete parameter HOST.
998 * interp.c (address_translation): Delete parameter HOST.
1001 Wed Oct 29 14:21:32 1997 Gavin Koch <gavin@cygnus.com>
1003 * gencode.c: Add tx49 configury and insns.
1004 * configure.in: Add tx49 configury.
1005 * configure: Update.
1008 Wed Oct 29 11:13:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
1012 * Makefile.in (IGEN_INCLUDE): Files included by mips.igen.
1013 (tmp-igen, tmp-m16): Depend on IGEN_INCLUDE.
1015 Tue Oct 28 11:06:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
1017 * mips.igen: Add model filter field to records.
1019 Mon Oct 27 17:53:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
1021 * Makefile.in (SIM_NO_CFLAGS): Define. Define WITH_IGEN=0.
1023 interp.c (sim_engine_run): Do not compile function sim_engine_run
1024 when WITH_IGEN == 1.
1026 * configure.in (sim_igen_flags, sim_m16_flags): Set according to
1027 target architecture.
1029 Makefile.in (tmp-igen, tmp-m16): Drop -F and -M options to
1030 igen. Replace with configuration variables sim_igen_flags /
1033 start-sanitize-r5900
1034 * r5900.igen: New file. Copy r5900 insns here.
1036 start-sanitize-vr5400
1037 * vr5400.igen: New file.
1039 * m16.igen: New file. Copy mips16 insns here.
1040 * mips.igen: From here.
1042 Mon Oct 27 13:53:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
1044 start-sanitize-vr5400
1045 * mips.igen: Tag all mipsIV instructions with vr5400 model.
1047 * configure.in: Add mips64vr5400 target.
1048 * configure: Re-generate.
1051 * Makefile.in (SIM_NO_OBJ): Define, move SIM_M16_OBJ, SIM_IGEN_OBJ
1053 (tmp-igen, tmp-m16): Pass -I srcdir to igen.
1055 Sat Oct 25 16:51:40 1997 Gavin Koch <gavin@cygnus.com>
1057 * gencode.c (build_instruction): Follow sim_write's lead in using
1058 BigEndianMem instead of !ByteSwapMem.
1060 Fri Oct 24 17:41:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
1062 * configure.in (sim_gen): Dependent on target, select type of
1063 generator. Always select old style generator.
1065 configure: Re-generate.
1067 Makefile.in (tmp-igen, tmp-m16, clean-m16, clean-igen): New
1069 (SIM_M16_CFLAGS, SIM_M16_ALL, SIM_M16_OBJ, BUILT_SRC_FROM_M16,
1070 SIM_IGEN_CFLAGS, SIM_IGEN_ALL, SIM_IGEN_OBJ, BUILT_SRC_FROM_IGEN,
1071 IGEN_TRACE, IGEN_INSN, IGEN_DC): Define
1072 (SIM_EXTRA_CFLAGS, SIM_EXTRA_ALL, SIM_OBJS): Add member
1073 SIM_@sim_gen@_*, set by autoconf.
1075 Wed Oct 22 12:52:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1077 * sim-main.h (NULLIFY_NEXT_INSTRUCTION, DELAY_SLOT): Define.
1079 * interp.c (ColdReset): Remove #ifdef HASFPU, check
1080 CURRENT_FLOATING_POINT instead.
1082 * interp.c (ifetch32): New function. Fetch 32 bit instruction.
1083 (address_translation): Raise exception InstructionFetch when
1084 translation fails and isINSTRUCTION.
1086 * interp.c (sim_open, sim_write, sim_monitor, store_word,
1087 sim_engine_run): Change type of of vaddr and paddr to
1089 (address_translation, prefetch, load_memory, store_memory,
1090 cache_op): Change type of vAddr and pAddr to address_word.
1092 * gencode.c (build_instruction): Change type of vaddr and paddr to
1095 Mon Oct 20 15:29:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
1097 * sim-main.h (ALU64_END, ALU32_END): Use ALU*_OVERFLOW_RESULT
1098 macro to obtain result of ALU op.
1100 Tue Oct 21 17:39:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
1102 * interp.c (sim_info): Call profile_print.
1104 Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1106 * Makefile.in (SIM_OBJS): Add sim-profile.o module.
1108 * sim-main.h (WITH_PROFILE): Do not define, defined in
1109 common/sim-config.h. Use sim-profile module.
1110 (simPROFILE): Delete defintion.
1112 * interp.c (PROFILE): Delete definition.
1113 (mips_option_handler): Delete 'p', 'y' and 'x' profile options.
1114 (sim_close): Delete code writing profile histogram.
1115 (mips_set_profile, mips_set_profile_size, writeout16, writeout32):
1117 (sim_engine_run): Delete code profiling the PC.
1119 Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1121 * sim-main.h (SIGNEXTEND): Force type of result to unsigned_word.
1123 * interp.c (sim_monitor): Make register pointers of type
1126 * sim-main.h: Make registers of type unsigned_word not
1129 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
1131 start-sanitize-r5900
1132 * sim-main.h (BYTES_IN_MMI_REGS, ..., SUB_REG_FETCH, ..., GPR_SB,
1133 ...): Move to sim-main.h
1136 * interp.c (sync_operation): Rename from SyncOperation, make
1137 global, add SD argument.
1138 (prefetch): Rename from Prefetch, make global, add SD argument.
1139 (decode_coproc): Make global.
1141 * sim-main.h (SyncOperation, DecodeCoproc, Pefetch): Define.
1143 * gencode.c (build_instruction): Generate DecodeCoproc not
1144 decode_coproc calls.
1146 * interp.c (SETFCC, GETFCC, PREVCOC1): Move to sim-main.h
1147 (SizeFGR): Move to sim-main.h
1148 (simHALTEX, simHALTIN, simTRACE, simPROFILE, simDELAYSLOT,
1149 simSIGINT, simJALDELAYSLOT): Move to sim-main.h
1150 (FP_FLAGS, FP_ENABLE, FP_CAUSE, IR, UF, OF, DZ, IO, UO): Move to
1152 (FP_FS, FP_MASK_RM, FP_SH_RM, FP_RM_NEAREST, FP_RM_TOPINF,
1153 FP_RM_TOMINF, GETRM): Move to sim-main.h.
1154 (Uncached, CachedNoncoherent, CachedCoherent, Cached,
1155 isINSTRUCTION, ..., AccessLength_BYTE, ...): Move to sim-main.h.
1156 (UserMode, BigEndianMem, ByteSwapMem, ReverseEndian,
1157 BigEndianCPU, status_KSU_mask, ...). Moved to sim-main.h
1159 * sim-main.h (ALU32_END, ALU64_END): Define. When overflow raise
1161 (sim-alu.h): Include.
1162 (NULLIFY_NIA, NULL_CIA, CPU_CIA): Define.
1163 (sim_cia): Typedef to instruction_address.
1165 Thu Oct 16 10:31:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
1167 * Makefile.in (interp.o): Rename generated file engine.c to
1172 Thu Oct 16 10:31:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
1174 * gencode.c (build_instruction): Use FPR_STATE not fpr_state.
1176 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
1178 * gencode.c (build_instruction): For "FPSQRT", output correct
1179 number of arguments to Recip.
1181 Tue Oct 14 17:38:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
1183 * Makefile.in (interp.o): Depends on sim-main.h
1185 * interp.c (mips16_entry, ColdReset,dotrace): Add SD argument. Use GPR not registers.
1187 * sim-main.h (sim_cpu): Add registers, register_widths, fpr_state,
1188 ipc, dspc, pending_*, hiaccess, loaccess, state, dsstate fields.
1189 (REGISTERS, REGISTER_WIDTHS, FPR_STATE, IPC, DSPC, PENDING_*,
1190 STATE, DSSTATE): Define
1191 (GPR, FGRIDX, ..): Define.
1193 * interp.c (registers, register_widths, fpr_state, ipc, dspc,
1194 pending_*, hiaccess, loaccess, state, dsstate): Delete globals.
1195 (GPR, FGRIDX, ...): Delete macros.
1197 * interp.c: Update names to match defines from sim-main.h
1199 Tue Oct 14 15:11:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
1201 * interp.c (sim_monitor): Add SD argument.
1202 (sim_warning): Delete. Replace calls with calls to
1204 (sim_error): Delete. Replace calls with sim_io_error.
1205 (open_trace, writeout32, writeout16, getnum): Add SD argument.
1206 (mips_set_profile): Rename from sim_set_profile. Add SD argument.
1207 (mips_set_profile_size): Rename from sim_set_profile_size. Add SD
1209 (mips_size): Rename from sim_size. Add SD argument.
1211 * interp.c (simulator): Delete global variable.
1212 (callback): Delete global variable.
1213 (mips_option_handler, sim_open, sim_write, sim_read,
1214 sim_store_register, sim_fetch_register, sim_info, sim_do_command,
1215 sim_size,sim_monitor): Use sim_io_* not callback->*.
1216 (sim_open): ZALLOC simulator struct.
1217 (PROFILE): Do not define.
1219 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1221 * interp.c (sim_open), support.h: Replace CHECKSIM macro found in
1222 support.h with corresponding code.
1224 * sim-main.h (word64, uword64), support.h: Move definition to
1226 (WORD64LO, WORD64HI, SET64LO, SET64HI, WORD64, UWORD64): Ditto.
1229 * Makefile.in: Update dependencies
1230 * interp.c: Do not include.
1232 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1234 * interp.c (address_translation, load_memory, store_memory,
1235 cache_op): Rename to from AddressTranslation et.al., make global,
1238 * sim-main.h (AddressTranslation, LoadMemory, StoreMemory,
1241 * interp.c (SignalException): Rename to signal_exception, make
1244 * interp.c (Interrupt, ...): Move definitions to sim-main.h.
1246 * sim-main.h (SignalException, SignalExceptionInterrupt,
1247 SignalExceptionInstructionFetch, SignalExceptionAddressStore,
1248 SignalExceptionAddressLoad, SignalExceptionSimulatorFault,
1249 SignalExceptionIntegerOverflow, SignalExceptionCoProcessorUnusable):
1252 * interp.c, support.h: Use.
1254 Tue Oct 14 13:19:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1256 * interp.c (ValueFPR, StoreFPR), sim-main.h: Make global, rename
1257 to value_fpr / store_fpr. Add SD argument.
1258 (NaN, Infinity, Less, Equal, AbsoluteValue, Negate, Add, Sub,
1259 Multiply, Divide, Recip, SquareRoot, Convert): Make global.
1261 * sim-main.h (ValueFPR, StoreFPR): Define.
1263 Tue Oct 14 13:06:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
1265 * interp.c (sim_engine_run): Check consistency between configure
1266 WITH_TARGET_WORD_BITSIZE and WITH_FLOATING_POINT and gensim GPRLEN
1269 * configure.in (mips_bitsize): Configure WITH_TARGET_WORD_BITSIZE.
1270 (mips_fpu): Configure WITH_FLOATING_POINT.
1271 (mips_endian): Configure WITH_TARGET_ENDIAN.
1272 * configure: Update.
1274 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1276 * configure: Regenerated to track ../common/aclocal.m4 changes.
1278 start-sanitize-r5900
1279 Mon Aug 25 19:11:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1281 * interp.c (MAX_REG): Allow up-to 128 registers.
1282 (LO1, HI1): Define value that matches REGISTER_NAMES in gdb.
1283 (REGISTER_SA): Ditto.
1284 (sim_open): Initialize register_widths for r5900 specific
1286 (sim_fetch_register, sim_store_register): Check for request of
1287 r5900 specific SA register. Check for request for hi 64 bits of
1288 r5900 specific registers.
1291 Mon Sep 29 14:45:00 1997 Bob Manson <manson@charmed.cygnus.com>
1293 * configure: Regenerated.
1295 Fri Sep 26 12:48:18 1997 Mark Alexander <marka@cygnus.com>
1297 * interp.c: Allow Debug, DEPC, and EPC registers to be examined in GDB.
1299 Thu Sep 25 11:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1301 * gencode.c (print_igen_insn_models): Assume certain architectures
1302 include all mips* instructions.
1303 (print_igen_insn_format): Use data_size==-1 as marker for MIPS16
1306 * Makefile.in (tmp.igen): Add target. Generate igen input from
1309 * gencode.c (FEATURE_IGEN): Define.
1310 (main): Add --igen option. Generate output in igen format.
1311 (process_instructions): Format output according to igen option.
1312 (print_igen_insn_format): New function.
1313 (print_igen_insn_models): New function.
1314 (process_instructions): Only issue warnings and ignore
1315 instructions when no FEATURE_IGEN.
1317 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1319 * interp.c (COP_SD, COP_LD): Add UNUSED to pacify GCC for some
1322 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1324 * configure: Regenerated to track ../common/aclocal.m4 changes.
1326 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
1328 * Makefile.in (SIM_ALIGNMENT, SIM_ENDIAN, SIM_HOSTENDIAN,
1329 SIM_RESERVED_BITS): Delete, moved to common.
1330 (SIM_EXTRA_CFLAGS): Update.
1332 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1334 * configure.in: Configure non-strict memory alignment.
1335 * configure: Regenerated to track ../common/aclocal.m4 changes.
1337 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1339 * configure: Regenerated to track ../common/aclocal.m4 changes.
1341 Sat Sep 20 14:07:28 1997 Gavin Koch <gavin@cygnus.com>
1343 * gencode.c (SDBBP,DERET): Added (3900) insns.
1344 (RFE): Turn on for 3900.
1345 * interp.c (DebugBreakPoint,DEPC,Debug,Debug_*): Added.
1346 (dsstate): Made global.
1347 (SUBTARGET_R3900): Added.
1348 (CANCELDELAYSLOT): New.
1349 (SignalException): Ignore SystemCall rather than ignore and
1350 terminate. Add DebugBreakPoint handling.
1351 (decode_coproc): New insns RFE, DERET; and new registers Debug
1352 and DEPC protected by SUBTARGET_R3900.
1353 (sim_engine_run): Use CANCELDELAYSLOT rather than clearing
1355 * Makefile.in,configure.in: Add mips subtarget option.
1356 * configure: Update.
1358 Fri Sep 19 09:33:27 1997 Gavin Koch <gavin@cygnus.com>
1360 * gencode.c: Add r3900 (tx39).
1363 * gencode.c: Fix some configuration problems by improving
1364 the relationship between tx19 and tx39.
1367 Tue Sep 16 15:52:04 1997 Gavin Koch <gavin@cygnus.com>
1369 * gencode.c (build_instruction): Don't need to subtract 4 for
1372 Tue Sep 16 11:32:28 1997 Gavin Koch <gavin@cygnus.com>
1374 * interp.c: Correct some HASFPU problems.
1376 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1378 * configure: Regenerated to track ../common/aclocal.m4 changes.
1380 Fri Sep 12 12:01:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
1382 * interp.c (mips_options): Fix samples option short form, should
1385 Thu Sep 11 09:35:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
1387 * interp.c (sim_info): Enable info code. Was just returning.
1389 Tue Sep 9 17:30:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1391 * interp.c (decode_coproc): Clarify warning about unsuported MTC0,
1394 Tue Sep 9 16:28:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
1396 * gencode.c (build_instruction): Use SIGNED64 for 64 bit
1398 (build_instruction): Ditto for LL.
1401 Sun Sep 7 16:05:46 1997 Gavin Koch <gavin@cygnus.com>
1403 * mips/configure.in, mips/gencode: Add tx19/r1900.
1406 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
1408 * configure: Regenerated to track ../common/aclocal.m4 changes.
1410 start-sanitize-r5900
1411 Mon Sep 1 18:43:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
1413 * gencode.c (build_instruction): For "pabsw" and "pabsh", check
1414 for overflow due to ABS of MININT, set result to MAXINT.
1415 (build_instruction): For "psrlvw", signextend bit 31.
1418 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1420 * configure: Regenerated to track ../common/aclocal.m4 changes.
1423 Wed Aug 27 14:12:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
1425 * interp.c (sim_open): Add call to sim_analyze_program, update
1428 Tue Aug 26 10:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
1430 * interp.c (sim_kill): Delete.
1431 (sim_create_inferior): Add ABFD argument. Set PC from same.
1432 (sim_load): Move code initializing trap handlers from here.
1433 (sim_open): To here.
1434 (sim_load): Delete, use sim-hload.c.
1436 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
1438 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1440 * configure: Regenerated to track ../common/aclocal.m4 changes.
1443 Mon Aug 25 15:59:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1445 * interp.c (sim_open): Add ABFD argument.
1446 (sim_load): Move call to sim_config from here.
1447 (sim_open): To here. Check return status.
1449 start-sanitize-r5900
1450 * gencode.c (build_instruction): Do not define x8000000000000000,
1451 x7FFFFFFFFFFFFFFF, or xFFFFFFFF80000000.
1454 start-sanitize-r5900
1455 Mon Jul 28 19:49:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
1457 * gencode.c (build_instruction): For "pdivw", "pdivbw" and
1458 "pdivuw" check for overflow due to signed divide by -1.
1461 Fri Jul 25 15:00:45 1997 Gavin Koch <gavin@cygnus.com>
1463 * gencode.c (build_instruction): Two arg MADD should
1464 not assign result to $0.
1466 start-sanitize-r5900
1467 Thu Jul 10 11:58:48 1997 Andrew Cagney <cagney@critters.cygnus.com>
1469 * gencode.c (build_instruction): For "ppac5" use unsigned
1470 arrithmetic so that the sign bit doesn't smear when right shifted.
1471 (build_instruction): For "pdiv" perform sign extension when
1472 storing results in HI and LO.
1473 (build_instructions): For "pdiv" and "pdivbw" check for
1475 (build_instruction): For "pmfhl.slw" update hi part of dest
1476 register as well as low part.
1477 (build_instruction): For "pmfhl" portably handle long long values.
1478 (build_instruction): For "pmfhl.sh" correctly negative values.
1479 Store half words 2 and three in the correct place.
1480 (build_instruction): For "psllvw", sign extend value after shift.
1483 Thu Jun 26 12:13:17 1997 Angela Marie Thomas (angela@cygnus.com)
1485 * sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
1486 * sim/mips/configure.in: Regenerate.
1488 Wed Jul 9 10:29:21 1997 Andrew Cagney <cagney@critters.cygnus.com>
1490 * interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
1491 signed8, unsigned8 et.al. types.
1493 start-sanitize-r5900
1494 * gencode.c (build_instruction): For PMULTU* do not sign extend
1495 registers. Make generated code easier to debug.
1498 * interp.c (SUB_REG_FETCH): Handle both little and big endian
1499 hosts when selecting subreg.
1501 start-sanitize-r5900
1502 Tue Jul 8 18:07:20 1997 Andrew Cagney <cagney@andros.cygnus.com>
1504 * gencode.c (type_for_data_len): For 32bit operations concerned
1505 with overflow, perform op using 64bits.
1506 (build_instruction): For PADD, always compute operation using type
1507 returned by type_for_data_len.
1508 (build_instruction): For PSUBU, when overflow, saturate to zero as
1512 Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com)
1514 start-sanitize-r5900
1515 * gencode.c (build_instruction): Handle "pext5" according to
1516 version 1.95 of the r5900 ISA.
1518 * gencode.c (build_instruction): Handle "ppac5" according to
1519 version 1.95 of the r5900 ISA.
1522 * interp.c (sim_engine_run): Reset the ZERO register to zero
1523 regardless of FEATURE_WARN_ZERO.
1524 * gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
1526 Wed Jun 4 10:43:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
1528 * interp.c (decode_coproc): Implement MTC0 N, CAUSE.
1529 (SignalException): For BreakPoints ignore any mode bits and just
1531 (SignalException): Always set the CAUSE register.
1533 Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
1535 * interp.c (SignalException): Clear the simDELAYSLOT flag when an
1536 exception has been taken.
1538 * interp.c: Implement the ERET and mt/f sr instructions.
1540 start-sanitize-r5900
1541 Mon Jun 2 23:28:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
1543 * gencode.c (build_instruction): For paddu, extract unsigned
1546 * gencode.c (build_instruction): Saturate padds instead of padd
1550 Sat May 31 00:44:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
1552 * interp.c (SignalException): Don't bother restarting an
1555 Fri May 30 23:41:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1557 * interp.c (SignalException): Really take an interrupt.
1558 (interrupt_event): Only deliver interrupts when enabled.
1560 Tue May 27 20:08:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1562 * interp.c (sim_info): Only print info when verbose.
1563 (sim_info) Use sim_io_printf for output.
1565 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
1567 * interp.c (CoProcPresent): Add UNUSED attribute - not used by all
1570 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
1572 * interp.c (sim_do_command): Check for common commands if a
1573 simulator specific command fails.
1575 Thu May 22 09:32:03 1997 Gavin Koch <gavin@cygnus.com>
1577 * interp.c (sim_engine_run): ifdef out uses of simSTOP, simSTEP
1578 and simBE when DEBUG is defined.
1580 Wed May 21 09:08:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
1582 * interp.c (interrupt_event): New function. Pass exception event
1583 onto exception handler.
1585 * configure.in: Check for stdlib.h.
1586 * configure: Regenerate.
1588 * gencode.c (build_instruction): Add UNUSED attribute to tempS
1589 variable declaration.
1590 (build_instruction): Initialize memval1.
1591 (build_instruction): Add UNUSED attribute to byte, bigend,
1593 (build_operands): Ditto.
1595 * interp.c: Fix GCC warnings.
1596 (sim_get_quit_code): Delete.
1598 * configure.in: Add INLINE, ENDIAN, HOSTENDIAN and WARNINGS.
1599 * Makefile.in: Ditto.
1600 * configure: Re-generate.
1602 * Makefile.in (SIM_OBJS): Add sim-watch.o module.
1604 Tue May 20 15:08:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
1606 * interp.c (mips_option_handler): New function parse argumes using
1608 (myname): Replace with STATE_MY_NAME.
1609 (sim_open): Delete check for host endianness - performed by
1611 (simHOSTBE, simBE): Delete, replaced by sim-endian flags.
1612 (sim_open): Move much of the initialization from here.
1613 (sim_load): To here. After the image has been loaded and
1615 (sim_open): Move ColdReset from here.
1616 (sim_create_inferior): To here.
1617 (sim_open): Make FP check less dependant on host endianness.
1619 * Makefile.in (SIM_RUN_OBJS): Set to nrun.o - use new version or
1621 * interp.c (sim_set_callbacks): Delete.
1623 * interp.c (membank, membank_base, membank_size): Replace with
1624 STATE_MEMORY, STATE_MEM_SIZE, STATE_MEM_BASE.
1625 (sim_open): Remove call to callback->init. gdb/run do this.
1629 * sim-main.h (SIM_HAVE_FLATMEM): Define.
1631 * interp.c (big_endian_p): Delete, replaced by
1632 current_target_byte_order.
1634 Tue May 20 13:55:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1636 * interp.c (host_read_long, host_read_word, host_swap_word,
1637 host_swap_long): Delete. Using common sim-endian.
1638 (sim_fetch_register, sim_store_register): Use H2T.
1639 (pipeline_ticks): Delete. Handled by sim-events.
1641 (sim_engine_run): Update.
1643 Tue May 20 13:42:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
1645 * interp.c (sim_stop_reason): Move code determining simEXCEPTION
1647 (SignalException): To here. Signal using sim_engine_halt.
1648 (sim_stop_reason): Delete, moved to common.
1650 Tue May 20 10:19:48 1997 Andrew Cagney <cagney@b2.cygnus.com>
1652 * interp.c (sim_open): Add callback argument.
1653 (sim_set_callbacks): Delete SIM_DESC argument.
1656 Mon May 19 18:20:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1658 * Makefile.in (SIM_OBJS): Add common modules.
1660 * interp.c (sim_set_callbacks): Also set SD callback.
1661 (set_endianness, xfer_*, swap_*): Delete.
1662 (host_read_word, host_read_long, host_swap_word, host_swap_long):
1663 Change to functions using sim-endian macros.
1664 (control_c, sim_stop): Delete, use common version.
1665 (simulate): Convert into.
1666 (sim_engine_run): This function.
1667 (sim_resume): Delete.
1669 * interp.c (simulation): New variable - the simulator object.
1670 (sim_kind): Delete global - merged into simulation.
1671 (sim_load): Cleanup. Move PC assignment from here.
1672 (sim_create_inferior): To here.
1674 * sim-main.h: New file.
1675 * interp.c (sim-main.h): Include.
1677 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1679 * configure: Regenerated to track ../common/aclocal.m4 changes.
1681 Wed Apr 23 17:32:19 1997 Doug Evans <dje@canuck.cygnus.com>
1683 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
1685 Mon Apr 21 17:16:13 1997 Gavin Koch <gavin@cygnus.com>
1687 * gencode.c (build_instruction): DIV instructions: check
1688 for division by zero and integer overflow before using
1689 host's division operation.
1691 Thu Apr 17 03:18:14 1997 Doug Evans <dje@canuck.cygnus.com>
1693 * Makefile.in (SIM_OBJS): Add sim-load.o.
1694 * interp.c: #include bfd.h.
1695 (target_byte_order): Delete.
1696 (sim_kind, myname, big_endian_p): New static locals.
1697 (sim_open): Set sim_kind, myname. Move call to set_endianness to
1698 after argument parsing. Recognize -E arg, set endianness accordingly.
1699 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
1700 load file into simulator. Set PC from bfd.
1701 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1702 (set_endianness): Use big_endian_p instead of target_byte_order.
1704 Wed Apr 16 17:55:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
1706 * interp.c (sim_size): Delete prototype - conflicts with
1707 definition in remote-sim.h. Correct definition.
1709 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1711 * configure: Regenerated to track ../common/aclocal.m4 changes.
1714 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1716 * interp.c (sim_open): New arg `kind'.
1718 * configure: Regenerated to track ../common/aclocal.m4 changes.
1720 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1722 * configure: Regenerated to track ../common/aclocal.m4 changes.
1724 Tue Mar 25 11:38:22 1997 Doug Evans <dje@canuck.cygnus.com>
1726 * interp.c (sim_open): Set optind to 0 before calling getopt.
1728 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1730 * configure: Regenerated to track ../common/aclocal.m4 changes.
1732 Mon Mar 17 10:52:59 1997 Gavin Koch <gavin@cetus.cygnus.com>
1734 * interp.c : Replace uses of pr_addr with pr_uword64
1735 where the bit length is always 64 independent of SIM_ADDR.
1736 (pr_uword64) : added.
1738 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1740 * configure: Re-generate.
1742 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1744 * configure: Regenerate to track ../common/aclocal.m4 changes.
1746 Thu Mar 13 12:51:36 1997 Doug Evans <dje@canuck.cygnus.com>
1748 * interp.c (sim_open): New SIM_DESC result. Argument is now
1750 (other sim_*): New SIM_DESC argument.
1752 start-sanitize-r5900
1753 Wed Feb 26 18:32:21 1997 Gavin Koch <gavin@cygnus.com>
1755 * gencode.c (POP_AND,POP_OR,POP_NOR,POP_XOR):
1756 Change values to avoid overloading DOUBLEWORD which is tested
1758 * gencode.c: reinstate "offending code".
1761 Mon Feb 24 22:47:14 1997 Dawn Perchik <dawn@cygnus.com>
1763 * interp.c: Fix printing of addresses for non-64-bit targets.
1764 (pr_addr): Add function to print address based on size.
1765 start-sanitize-r5900
1766 * gencode.c: #ifdef out offending code until a permanent fix
1767 can be added. Code is causing build errors for non-5900 mips targets.
1770 start-sanitize-r5900
1771 Thu Feb 20 10:40:24 1997 Gavin Koch <gavin@cetus.cygnus.com>
1773 * gencode.c (process_instructions): Correct test for ISA dependent
1774 architecture bits in isa field of MIPS_DECODE.
1777 Wed Feb 19 14:42:09 1997 Mark Alexander <marka@cygnus.com>
1779 * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
1781 start-sanitize-r5900
1782 Tue Feb 18 17:03:47 1997 Gavin Koch <gavin@cygnus.com>
1784 * gencode.c (MIPS_DECODE): Correct instruction feature flags for
1788 Thu Feb 13 14:08:30 1997 Ian Lance Taylor <ian@cygnus.com>
1790 * gencode.c (build_mips16_operands): Correct computation of base
1791 address for extended PC relative instruction.
1793 start-sanitize-r5900
1794 Fri Feb 7 11:12:44 1997 Gavin Koch <gavin@cygnus.com>
1796 * Makefile.in, configure, configure.in, gencode.c,
1797 interp.c, support.h: add r5900.
1800 Thu Feb 6 17:16:15 1997 Ian Lance Taylor <ian@cygnus.com>
1802 * interp.c (mips16_entry): Add support for floating point cases.
1803 (SignalException): Pass floating point cases to mips16_entry.
1804 (ValueFPR): Don't restrict fmt_single and fmt_word to even
1806 (StoreFPR): Likewise. Also, don't clobber fpr + 1 for fmt_single
1808 (COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
1809 and then set the state to fmt_uninterpreted.
1810 (COP_SW): Temporarily set the state to fmt_word while calling
1813 Tue Feb 4 16:48:25 1997 Ian Lance Taylor <ian@cygnus.com>
1815 * gencode.c (build_instruction): The high order may be set in the
1816 comparison flags at any ISA level, not just ISA 4.
1818 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
1820 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1821 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1822 * configure.in: sinclude ../common/aclocal.m4.
1823 * configure: Regenerated.
1825 Fri Jan 31 11:11:45 1997 Ian Lance Taylor <ian@cygnus.com>
1827 * configure: Rebuild after change to aclocal.m4.
1829 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1831 * configure configure.in Makefile.in: Update to new configure
1832 scheme which is more compatible with WinGDB builds.
1833 * configure.in: Improve comment on how to run autoconf.
1834 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1835 * Makefile.in: Use autoconf substitution to install common
1838 Wed Jan 8 12:39:03 1997 Jim Wilson <wilson@cygnus.com>
1840 * gencode.c (build_instruction): Use BigEndianCPU instead of
1843 Thu Jan 02 22:23:04 1997 Mark Alexander <marka@cygnus.com>
1845 * interp.c (sim_monitor): Make output to stdout visible in
1846 wingdb's I/O log window.
1848 Tue Dec 31 07:04:00 1996 Mark Alexander <marka@cygnus.com>
1850 * support.h: Undo previous change to SIGTRAP
1853 Mon Dec 30 17:36:06 1996 Ian Lance Taylor <ian@cygnus.com>
1855 * interp.c (store_word, load_word): New static functions.
1856 (mips16_entry): New static function.
1857 (SignalException): Look for mips16 entry and exit instructions.
1858 (simulate): Use the correct index when setting fpr_state after
1859 doing a pending move.
1861 Sun Dec 29 09:37:18 1996 Mark Alexander <marka@cygnus.com>
1863 * interp.c: Fix byte-swapping code throughout to work on
1864 both little- and big-endian hosts.
1866 Sun Dec 29 09:18:32 1996 Mark Alexander <marka@cygnus.com>
1868 * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
1869 with gdb/config/i386/xm-windows.h.
1871 Fri Dec 27 22:48:51 1996 Mark Alexander <marka@cygnus.com>
1873 * gencode.c (build_instruction): Work around MSVC++ code gen bug
1874 that messes up arithmetic shifts.
1876 Fri Dec 20 11:04:05 1996 Stu Grossman (grossman@critters.cygnus.com)
1878 * support.h: Use _WIN32 instead of __WIN32__. Also add defs for
1879 SIGTRAP and SIGQUIT for _WIN32.
1881 Thu Dec 19 14:07:27 1996 Ian Lance Taylor <ian@cygnus.com>
1883 * gencode.c (build_instruction) [MUL]: Cast operands to word64, to
1884 force a 64 bit multiplication.
1885 (build_instruction) [OR]: In mips16 mode, don't do anything if the
1886 destination register is 0, since that is the default mips16 nop
1889 Mon Dec 16 14:59:38 1996 Ian Lance Taylor <ian@cygnus.com>
1891 * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
1892 (build_endian_shift): Don't check proc64.
1893 (build_instruction): Always set memval to uword64. Cast op2 to
1894 uword64 when shifting it left in memory instructions. Always use
1895 the same code for stores--don't special case proc64.
1897 * gencode.c (build_mips16_operands): Fix base PC value for PC
1899 (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
1901 * interp.c (simJALDELAYSLOT): Define.
1902 (JALDELAYSLOT): Define.
1903 (INDELAYSLOT, INJALDELAYSLOT): Define.
1904 (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
1906 Tue Dec 24 22:11:20 1996 Angela Marie Thomas (angela@cygnus.com)
1908 * interp.c (sim_open): add flush_cache as a PMON routine
1909 (sim_monitor): handle flush_cache by ignoring it
1911 Wed Dec 11 13:53:51 1996 Jim Wilson <wilson@cygnus.com>
1913 * gencode.c (build_instruction): Use !ByteSwapMem instead of
1915 * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
1916 (BigEndianMem): Rename to ByteSwapMem and change sense.
1917 (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
1918 BigEndianMem references to !ByteSwapMem.
1919 (set_endianness): New function, with prototype.
1920 (sim_open): Call set_endianness.
1921 (sim_info): Use simBE instead of BigEndianMem.
1922 (xfer_direct_word, xfer_direct_long, swap_direct_word,
1923 swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
1924 xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
1925 ifdefs, keeping the prototype declaration.
1926 (swap_word): Rewrite correctly.
1927 (ColdReset): Delete references to CONFIG. Delete endianness related
1928 code; moved to set_endianness.
1930 Tue Dec 10 11:32:04 1996 Jim Wilson <wilson@cygnus.com>
1932 * gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
1933 * interp.c (CHECKHILO): Define away.
1934 (simSIGINT): New macro.
1935 (membank_size): Increase from 1MB to 2MB.
1936 (control_c): New function.
1937 (sim_resume): Rename parameter signal to signal_number. Add local
1938 variable prev. Call signal before and after simulate.
1939 (sim_stop_reason): Add simSIGINT support.
1940 (sim_warning, sim_error, dotrace, SignalException): Define as stdarg
1942 (sim_warning): Delete call to SignalException. Do call printf_filtered
1944 (AddressTranslation): Add #ifdef DEBUG around debugging message and
1945 a call to sim_warning.
1947 Wed Nov 27 11:53:50 1996 Ian Lance Taylor <ian@cygnus.com>
1949 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
1950 16 bit instructions.
1952 Tue Nov 26 11:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
1954 Add support for mips16 (16 bit MIPS implementation):
1955 * gencode.c (inst_type): Add mips16 instruction encoding types.
1956 (GETDATASIZEINSN): Define.
1957 (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add
1958 jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and
1960 (MIPS16_DECODE): New table, for mips16 instructions.
1961 (bitmap_val): New static function.
1962 (struct mips16_op): Define.
1963 (mips16_op_table): New table, for mips16 operands.
1964 (build_mips16_operands): New static function.
1965 (process_instructions): If PC is odd, decode a mips16
1966 instruction. Break out instruction handling into new
1967 build_instruction function.
1968 (build_instruction): New static function, broken out of
1969 process_instructions. Check modifiers rather than flags for SHIFT
1970 bit count and m[ft]{hi,lo} direction.
1971 (usage): Pass program name to fprintf.
1972 (main): Remove unused variable this_option_optind. Change
1973 ``*loptarg++'' to ``loptarg++''.
1974 (my_strtoul): Parenthesize && within ||.
1975 * interp.c (LoadMemory): Accept a halfword pAddr if vAddr is odd.
1976 (simulate): If PC is odd, fetch a 16 bit instruction, and
1977 increment PC by 2 rather than 4.
1978 * configure.in: Add case for mips16*-*-*.
1979 * configure: Rebuild.
1981 Fri Nov 22 08:49:36 1996 Mark Alexander <marka@cygnus.com>
1983 * interp.c: Allow -t to enable tracing in standalone simulator.
1984 Fix garbage output in trace file and error messages.
1986 Wed Nov 20 01:54:37 1996 Doug Evans <dje@canuck.cygnus.com>
1988 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
1989 (SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
1990 * configure.in: Simplify using macros in ../common/aclocal.m4.
1991 * configure: Regenerated.
1992 * tconfig.in: New file.
1994 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
1996 * interp.c: Fix bugs in 64-bit port.
1997 Use ansi function declarations for msvc compiler.
1998 Initialize and test file pointer in trace code.
1999 Prevent duplicate definition of LAST_EMED_REGNUM.
2001 Tue Oct 15 11:07:06 1996 Mark Alexander <marka@cygnus.com>
2003 * interp.c (xfer_big_long): Prevent unwanted sign extension.
2005 Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
2007 * interp.c (SignalException): Check for explicit terminating
2009 * gencode.c: Pass instruction value through SignalException()
2010 calls for Trap, Breakpoint and Syscall.
2012 Thu Sep 26 11:35:17 1996 James G. Smith <jsmith@cygnus.co.uk>
2014 * interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
2015 only used on those hosts that provide it.
2016 * configure.in: Add sqrt() to list of functions to be checked for.
2017 * config.in: Re-generated.
2018 * configure: Re-generated.
2020 Fri Sep 20 15:47:12 1996 Ian Lance Taylor <ian@cygnus.com>
2022 * gencode.c (process_instructions): Call build_endian_shift when
2023 expanding STORE RIGHT, to fix swr.
2024 * support.h (SIGNEXTEND): If the sign bit is not set, explicitly
2025 clear the high bits.
2026 * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
2027 Fix float to int conversions to produce signed values.
2029 Thu Sep 19 15:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
2031 * gencode.c (MIPS_DECODE): Set UNSIGNED for multu instruction.
2032 (process_instructions): Correct handling of nor instruction.
2033 Correct shift count for 32 bit shift instructions. Correct sign
2034 extension for arithmetic shifts to not shift the number of bits in
2035 the type. Fix 64 bit multiply high word calculation. Fix 32 bit
2036 unsigned multiply. Fix ldxc1 and friends to use coprocessor 1.
2038 * interp.c (CHECKHILO): Don't set HIACCESS, LOACCESS, or HLPC.
2039 It's OK to have a mult follow a mult. What's not OK is to have a
2040 mult follow an mfhi.
2041 (Convert): Comment out incorrect rounding code.
2043 Mon Sep 16 11:38:16 1996 James G. Smith <jsmith@cygnus.co.uk>
2045 * interp.c (sim_monitor): Improved monitor printf
2046 simulation. Tidied up simulator warnings, and added "--log" option
2047 for directing warning message output.
2048 * gencode.c: Use sim_warning() rather than WARNING macro.
2050 Thu Aug 22 15:03:12 1996 Ian Lance Taylor <ian@cygnus.com>
2052 * Makefile.in (gencode): Depend upon gencode.o, getopt.o, and
2053 getopt1.o, rather than on gencode.c. Link objects together.
2054 Don't link against -liberty.
2055 (gencode.o, getopt.o, getopt1.o): New targets.
2056 * gencode.c: Include <ctype.h> and "ansidecl.h".
2057 (AND): Undefine after including "ansidecl.h".
2058 (ULONG_MAX): Define if not defined.
2059 (OP_*): Don't define macros; now defined in opcode/mips.h.
2060 (main): Call my_strtoul rather than strtoul.
2061 (my_strtoul): New static function.
2063 Wed Jul 17 18:12:38 1996 Stu Grossman (grossman@critters.cygnus.com)
2065 * gencode.c (process_instructions): Generate word64 and uword64
2066 instead of `long long' and `unsigned long long' data types.
2067 * interp.c: #include sysdep.h to get signals, and define default
2069 * (Convert): Work around for Visual-C++ compiler bug with type
2071 * support.h: Make things compile under Visual-C++ by using
2072 __int64 instead of `long long'. Change many refs to long long
2073 into word64/uword64 typedefs.
2075 Wed Jun 26 12:24:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2077 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
2078 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
2080 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2081 (AC_PROG_INSTALL): Added.
2082 (AC_PROG_CC): Moved to before configure.host call.
2083 * configure: Rebuilt.
2085 Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
2087 * configure.in: Define @SIMCONF@ depending on mips target.
2088 * configure: Rebuild.
2089 * Makefile.in (run): Add @SIMCONF@ to control simulator
2091 * gencode.c: Change LOADDRMASK to 64bit memory model only.
2092 * interp.c: Remove some debugging, provide more detailed error
2093 messages, update memory accesses to use LOADDRMASK.
2095 Mon Jun 3 11:55:03 1996 Ian Lance Taylor <ian@cygnus.com>
2097 * configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
2098 AC_CHECK_LIB, and AC_CHECK_FUNCS. Change AC_OUTPUT to set
2100 * configure: Rebuild.
2101 * config.in: New file, generated by autoheader.
2102 * interp.c: Include "config.h". Include <stdlib.h>, <string.h>,
2103 and <strings.h> if they exist. Replace #ifdef sun with #ifdef
2104 HAVE_ANINT and HAVE_AINT, as appropriate.
2105 * Makefile.in (run): Use @LIBS@ rather than -lm.
2106 (interp.o): Depend upon config.h.
2107 (Makefile): Just rebuild Makefile.
2108 (clean): Remove stamp-h.
2109 (mostlyclean): Make the same as clean, not as distclean.
2110 (config.h, stamp-h): New targets.
2112 Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
2114 * interp.c (ColdReset): Fix boolean test. Make all simulator
2117 Wed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
2119 * interp.c (xfer_direct_word, xfer_direct_long,
2120 swap_direct_word, swap_direct_long, xfer_big_word,
2121 xfer_big_long, xfer_little_word, xfer_little_long,
2122 swap_word,swap_long): Added.
2123 * interp.c (ColdReset): Provide function indirection to
2124 host<->simulated_target transfer routines.
2125 * interp.c (sim_store_register, sim_fetch_register): Updated to
2126 make use of indirected transfer routines.
2128 Fri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
2130 * gencode.c (process_instructions): Ensure FP ABS instruction
2132 * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
2133 system call support.
2135 Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
2137 * interp.c (sim_do_command): Complain if callback structure not
2140 Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
2142 * interp.c (Convert): Provide round-to-nearest and round-to-zero
2143 support for Sun hosts.
2144 * Makefile.in (gencode): Ensure the host compiler and libraries
2145 used for cross-hosted build.
2147 Wed Mar 27 14:42:12 1996 James G. Smith <jsmith@cygnus.co.uk>
2149 * interp.c, gencode.c: Some more (TODO) tidying.
2151 Thu Mar 7 11:19:33 1996 James G. Smith <jsmith@cygnus.co.uk>
2153 * gencode.c, interp.c: Replaced explicit long long references with
2154 WORD64HI, WORD64LO, SET64HI and SET64LO macro calls.
2155 * support.h (SET64LO, SET64HI): Macros added.
2157 Wed Feb 21 12:16:21 1996 Ian Lance Taylor <ian@cygnus.com>
2159 * configure: Regenerate with autoconf 2.7.
2161 Tue Jan 30 08:48:18 1996 Fred Fish <fnf@cygnus.com>
2163 * interp.c (LoadMemory): Enclose text following #endif in /* */.
2164 * support.h: Remove superfluous "1" from #if.
2165 * support.h (CHECKSIM): Remove stray 'a' at end of line.
2167 Mon Dec 4 11:44:40 1995 Jamie Smith <jsmith@cygnus.com>
2169 * interp.c (StoreFPR): Control UndefinedResult() call on
2170 WARN_RESULT manifest.
2172 Fri Dec 1 16:37:19 1995 James G. Smith <jsmith@cygnus.co.uk>
2174 * gencode.c: Tidied instruction decoding, and added FP instruction
2177 * interp.c: Added dineroIII, and BSD profiling support. Also
2178 run-time FP handling.
2180 Sun Oct 22 00:57:18 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
2182 * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
2183 gencode.c, interp.c, support.h: created.