1 1999-04-21 Frank Ch. Eigler <fche@cygnus.com>
3 * mips.igen (bc0f): For the TX39 only, decode this as a no-op stub.
5 Thu Apr 15 14:15:17 1999 Andrew Cagney <cagney@amy.cygnus.com>
7 * configure.in: Any mips64vr5*-*-* target should have
9 (default_endian): Any mips64vr*el-*-* target should default to
11 * configure: Re-generate.
13 1999-02-19 Gavin Romig-Koch <gavin@cygnus.com>
15 * mips.igen (ldl): Extend from _16_, not 32.
17 Wed Jan 27 18:51:38 1999 Andrew Cagney <cagney@chook.cygnus.com>
19 * interp.c (sim_store_register): Force registers written to by GDB
20 into an un-interpreted state.
22 1999-02-05 Frank Ch. Eigler <fche@cygnus.com>
24 * dv-tx3904sio.c (tx3904sio_tickle): After a polled I/O from the
25 CPU, start periodic background I/O polls.
26 (tx3904sio_poll): New function: periodic I/O poller.
28 1998-12-30 Frank Ch. Eigler <fche@cygnus.com>
30 * mips.igen (BREAK): Call signal_exception instead of sim_engine_halt.
32 Tue Dec 29 16:03:53 1998 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34 * configure.in, configure (mips64vr5*-*-*): Added missing ;; in
37 1998-12-29 Frank Ch. Eigler <fche@cygnus.com>
39 * interp.c (sim_open): Allocate jm3904 memory in smaller chunks.
40 (load_word): Call SIM_CORE_SIGNAL hook on error.
41 (signal_exception): Call SIM_CPU_EXCEPTION_TRIGGER hook before
42 starting. For exception dispatching, pass PC instead of NULL_CIA.
43 (decode_coproc): Use COP0_BADVADDR to store faulting address.
44 * sim-main.h (COP0_BADVADDR): Define.
45 (SIM_CORE_SIGNAL): Define hook to call mips_core_signal.
46 (SIM_CPU_EXCEPTION*): Define hooks to call mips_cpu_exception*().
47 (_sim_cpu): Add exc_* fields to store register value snapshots.
48 * mips.igen (*): Replace memory-related SignalException* calls
49 with references to SIM_CORE_SIGNAL hook.
51 * dv-tx3904irc.c (tx3904irc_port_event): printf format warning
53 * sim-main.c (*): Minor warning cleanups.
55 1998-12-24 Gavin Romig-Koch <gavin@cygnus.com>
57 * m16.igen (DADDIU5): Correct type-o.
59 Mon Dec 21 10:34:48 1998 Andrew Cagney <cagney@chook>
61 * mips.igen (do_ddiv, do_ddivu): Pacify GCC. Update hi/lo via tmp
64 Wed Dec 16 18:20:28 1998 Andrew Cagney <cagney@chook>
66 * Makefile.in (SIM_EXTRA_CFLAGS): No longer need to add .../newlib
68 (interp.o): Add dependency on itable.h
69 (oengine.c, gencode): Delete remaining references.
70 (BUILT_SRC_FROM_GEN): Clean up.
72 1998-12-16 Gavin Romig-Koch <gavin@cygnus.com>
75 * Makefile.in (SIM_HACK_OBJ,HACK_OBJS,HACK_GEN_SRCS,libhack.a,
76 tmp-hack,tmp-m32-hack,tmp-m16-hack,tmp-itable-hack,
78 * m16.igen (LD,DADDIU,DADDUI5,DADJSP,DADDIUSP,DADDI,DADDU,DSUBU,
79 DSLL,DSRL,DSRA,DSLLV,DSRAV,DMULT,DMULTU,DDIV,DDIVU,JALX32,JALX):
80 Drop the "64" qualifier to get the HACK generator working.
81 Use IMMEDIATE rather than IMMED. Use SHAMT rather than SHIFT.
82 * mips.igen (do_daddiu,do_ddiv,do_divu): Remove the 64-only
83 qualifier to get the hack generator working.
84 (do_dsll,do_dsllv,do_dsra,do_dsrl,do_dsrlv): New.
86 (DSLLV): Use do_dsllv.
89 (DSRLV): Use do_dsrlv.
90 (BC1): Move *vr4100 to get the HACK generator working.
91 (CxC1, DMxC1, MxC1,MACCU,MACCHI,MACCHIU): Rename to
92 get the HACK generator working.
93 (MACC) Rename to get the HACK generator working.
94 (DMACC,MACCS,DMACCS): Add the 64.
96 1998-12-12 Gavin Romig-Koch <gavin@cygnus.com>
98 * mips.igen (BC1): Renamed to BC1a and BC1b to avoid conflicts.
99 * sim-main.h (SizeFGR): Handle TARGET_ENABLE_FR.
101 1998-12-11 Gavin Romig-Koch <gavin@cygnus.com>
103 * mips/interp.c (DEBUG): Cleanups.
105 1998-12-10 Frank Ch. Eigler <fche@cygnus.com>
107 * dv-tx3904sio.c (tx3904sio_io_read_buffer): Endianness fixes.
108 (tx3904sio_tickle): fflush after a stdout character output.
110 1998-12-03 Frank Ch. Eigler <fche@cygnus.com>
112 * interp.c (sim_close): Uninstall modules.
114 Wed Nov 25 13:41:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
116 * sim-main.h, interp.c (sim_monitor): Change to global
119 Wed Nov 25 17:33:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
121 * configure.in (vr4100): Only include vr4100 instructions in
123 * configure: Re-generate.
124 * m16.igen (*): Tag all mips16 instructions as also being vr4100.
126 Mon Nov 23 18:20:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
128 * Makefile.in (SIM_CFLAGS): Do not define WITH_IGEN.
129 * sim-main.h, sim-main.c, interp.c: Delete #if WITH_IGEN keeping
132 * configure.in (sim_default_gen, sim_use_gen): Replace with
134 (--enable-sim-igen): Delete config option. Always using IGEN.
135 * configure: Re-generate.
137 * Makefile.in (gencode): Kill, kill, kill.
140 Mon Nov 23 18:07:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
142 * configure.in: Configure mips64vr4100-elf nee mips64vr41* as a 64
143 bit mips16 igen simulator.
144 * configure: Re-generate.
146 * mips.igen (check_div_hilo, check_mult_hilo, check_mf_hilo): Mark
147 as part of vr4100 ISA.
148 * vr.igen: Mark all instructions as 64 bit only.
150 Mon Nov 23 17:07:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
152 * interp.c (get_cell, sim_monitor, fetch_str, CoProcPresent):
155 Mon Nov 23 13:23:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
157 * configure.in: Configure mips-lsi-elf nee mips*lsi* as a
158 mipsIII/mips16 igen simulator. Fix sim_gen VS sim_igen typos.
159 * configure: Re-generate.
161 * m16.igen (BREAK): Define breakpoint instruction.
162 (JALX32): Mark instruction as mips16 and not r3900.
163 * mips.igen (C.cond.fmt): Fix typo in instruction format.
165 * sim-main.h (PENDING_FILL): Wrap C statements in do/while.
167 Sat Nov 7 09:54:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
169 * gencode.c (build_instruction - BREAK): For MIPS16, handle BREAK
170 insn as a debug breakpoint.
172 * sim-main.h (PENDING_SLOT_BIT): Fix, was incorrectly defined as
174 (PENDING_SCHED): Clean up trace statement.
175 (PENDING_SCHED): Increment PENDING_IN and PENDING_TOTAL.
176 (PENDING_FILL): Delay write by only one cycle.
177 (PENDING_FILL): For FSRs, write fmt_uninterpreted to FPR_STATE.
179 * sim-main.c (pending_tick): Clean up trace statements. Add trace
181 (pending_tick): Fix sizes in switch statements, 4 & 8 instead of
183 (pending_tick): Move incrementing of index to FOR statement.
184 (pending_tick): Only update PENDING_OUT after a write has occured.
186 * configure.in: Add explicit mips-lsi-* target. Use gencode to
188 * configure: Re-generate.
190 * interp.c (sim_engine_run OLD): Delete explicit call to
191 PENDING_TICK. Now called via ENGINE_ISSUE_PREFIX_HOOK.
193 Sat Oct 30 09:49:10 1998 Frank Ch. Eigler <fche@cygnus.com>
195 * dv-tx3904cpu.c (deliver_tx3904cpu_interrupt): Add dummy
196 interrupt level number to match changed SignalExceptionInterrupt
199 Fri Oct 9 18:02:25 1998 Doug Evans <devans@canuck.cygnus.com>
201 * interp.c: #include "itable.h" if WITH_IGEN.
202 (get_insn_name): New function.
203 (sim_open): Initialize CPU_INSN_NAME,CPU_MAX_INSNS.
204 * sim-main.h (MAX_INSNS,INSN_NAME): Delete.
206 Mon Sep 14 12:36:44 1998 Frank Ch. Eigler <fche@cygnus.com>
208 * configure: Rebuilt to inhale new common/aclocal.m4.
210 Tue Sep 1 15:39:18 1998 Frank Ch. Eigler <fche@cygnus.com>
212 * dv-tx3904sio.c: Include sim-assert.h.
214 Tue Aug 25 12:49:46 1998 Frank Ch. Eigler <fche@cygnus.com>
216 * dv-tx3904sio.c: New file: tx3904 serial I/O module.
217 * configure.in: Add dv-tx3904sio, dv-sockser for tx39 target.
218 Reorganize target-specific sim-hardware checks.
219 * configure: rebuilt.
220 * interp.c (sim_open): For tx39 target boards, set
221 OPERATING_ENVIRONMENT, add tx3904sio devices.
222 * tconfig.in: For tx39 target, set SIM_HANDLES_LMA for loading
223 ROM executables. Install dv-sockser into sim-modules list.
225 * dv-tx3904irc.c: Compiler warning clean-up.
226 * dv-tx3904tmr.c: Compiler warning clean-up. Remove particularly
227 frequent hw-trace messages.
229 Fri Jul 31 18:14:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
231 * vr.igen (MulAcc): Identify as a vr4100 specific function.
233 Sat Jul 25 16:03:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
235 * Makefile.in (IGEN_INCLUDE): Add vr.igen.
238 (MAC/MADD16, DMAC/DMADD16): Implement using code from gencode.c.
239 * mips.igen: Define vr4100 model. Include vr.igen.
240 Mon Jun 29 09:21:07 1998 Gavin Koch <gavin@cygnus.com>
242 * mips.igen (check_mf_hilo): Correct check.
244 Wed Jun 17 12:20:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
246 * sim-main.h (interrupt_event): Add prototype.
248 * dv-tx3904tmr.c (tx3904tmr_io_write_buffer): Delete unused
249 register_ptr, register_value.
250 (deliver_tx3904tmr_tick): Fix types passed to printf fmt.
252 * sim-main.h (tracefh): Make extern.
254 Tue Jun 16 14:39:00 1998 Frank Ch. Eigler <fche@cygnus.com>
256 * dv-tx3904tmr.c: Deschedule timer event after dispatching.
257 Reduce unnecessarily high timer event frequency.
258 * dv-tx3904cpu.c: Ditto for interrupt event.
260 Wed Jun 10 13:22:32 1998 Frank Ch. Eigler <fche@cygnus.com>
262 * interp.c (decode_coproc): For TX39, add stub COP0 register #7,
264 (interrupt_event): Made non-static.
266 * dv-tx3904tmr.c (deliver_tx3904tmr_tick): Correct accidental
267 interchange of configuration values for external vs. internal
270 Tue Jun 9 12:46:24 1998 Ian Carmichael <iancarm@cygnus.com>
272 * mips.igen (BREAK): Moved code to here for
273 simulator-reserved break instructions.
274 * gencode.c (build_instruction): Ditto.
275 * interp.c (signal_exception): Code moved from here. Non-
276 reserved instructions now use exception vector, rather
278 * sim-main.h: Moved magic constants to here.
280 Tue Jun 9 12:29:50 1998 Frank Ch. Eigler <fche@cygnus.com>
282 * dv-tx3904cpu.c (deliver_*_interrupt,*_port_event): Set the CAUSE
283 register upon non-zero interrupt event level, clear upon zero
285 * dv-tx3904irc.c (*_port_event): Handle deactivated interrupt signal
286 by passing zero event value.
287 (*_io_{read,write}_buffer): Endianness fixes.
288 * dv-tx3904tmr.c (*_io_{read,write}_buffer): Endianness fixes.
289 (deliver_*_tick): Reduce sim event interval to 75% of count interval.
291 * interp.c (sim_open): Added jmr3904pal board type that adds PAL-based
292 serial I/O and timer module at base address 0xFFFF0000.
294 Tue Jun 9 11:52:29 1998 Gavin Koch <gavin@cygnus.com>
296 * mips.igen (SWC1) : Correct the handling of ReverseEndian
299 Tue Jun 9 11:40:57 1998 Gavin Koch <gavin@cygnus.com>
301 * configure.in (mips_fpu_bitsize) : Set this correctly for 32-bit mips
305 Thu Jun 4 15:37:33 1998 Frank Ch. Eigler <fche@cygnus.com>
307 * dv-tx3904tmr.c: New file - implements tx3904 timer.
308 * dv-tx3904{irc,cpu}.c: Mild reformatting.
309 * configure.in: Include tx3904tmr in hw_device list.
310 * configure: Rebuilt.
311 * interp.c (sim_open): Instantiate three timer instances.
312 Fix address typo of tx3904irc instance.
314 Tue Jun 2 15:48:02 1998 Ian Carmichael <iancarm@cygnus.com>
316 * interp.c (signal_exception): SystemCall exception now uses
317 the exception vector.
319 Mon Jun 1 18:18:26 1998 Frank Ch. Eigler <fche@cygnus.com>
321 * interp.c (decode_coproc): For TX39, add stub COP0 register #3,
324 Fri May 29 11:40:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
326 * configure.in (sim_igen_filter): Match mips*tx39 not mipst*tx39.
328 Mon May 25 20:47:45 1998 Andrew Cagney <cagney@b1.cygnus.com>
330 * dv-tx3904cpu.c, dv-tx3904irc.c: Rename *_callback to *_method.
332 * dv-tx3904cpu.c, dv-tx3904irc.c: Include hw-main.h and
333 sim-main.h. Declare a struct hw_descriptor instead of struct
334 hw_device_descriptor.
336 Mon May 25 12:41:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
338 * mips.igen (do_store_left, do_load_left): Compute nr of left and
339 right bits and then re-align left hand bytes to correct byte
340 lanes. Fix incorrect computation in do_store_left when loading
341 bytes from second word.
343 Fri May 22 13:34:20 1998 Andrew Cagney <cagney@b1.cygnus.com>
345 * configure.in (SIM_AC_OPTION_HARDWARE): Only enable when tx3904.
346 * interp.c (sim_open): Only create a device tree when HW is
349 * dv-tx3904irc.c (tx3904irc_finish): Pacify GCC.
350 * interp.c (signal_exception): Ditto.
352 Thu May 21 14:24:11 1998 Gavin Koch <gavin@cygnus.com>
354 * gencode.c: Mark BEGEZALL as LIKELY.
356 Thu May 21 18:57:19 1998 Andrew Cagney <cagney@b1.cygnus.com>
358 * sim-main.h (ALU32_END): Sign extend 32 bit results.
359 * mips.igen (ADD, SUB, ADDI, DADD, DSUB): Trace.
361 Mon May 18 18:22:42 1998 Frank Ch. Eigler <fche@cygnus.com>
363 * configure.in (SIM_AC_OPTION_HARDWARE): Added common hardware
364 modules. Recognize TX39 target with "mips*tx39" pattern.
365 * configure: Rebuilt.
366 * sim-main.h (*): Added many macros defining bits in
367 TX39 control registers.
368 (SignalInterrupt): Send actual PC instead of NULL.
369 (SignalNMIReset): New exception type.
370 * interp.c (board): New variable for future use to identify
371 a particular board being simulated.
372 (mips_option_handler,mips_options): Added "--board" option.
373 (interrupt_event): Send actual PC.
374 (sim_open): Make memory layout conditional on board setting.
375 (signal_exception): Initial implementation of hardware interrupt
376 handling. Accept another break instruction variant for simulator
378 (decode_coproc): Implement RFE instruction for TX39.
379 (mips.igen): Decode RFE instruction as such.
380 * configure.in (tx3904cpu,tx3904irc): Added devices for tx3904.
381 * interp.c: Define "jmr3904" and "jmr3904debug" board types and
382 bbegin to implement memory map.
383 * dv-tx3904cpu.c: New file.
384 * dv-tx3904irc.c: New file.
386 Wed May 13 14:40:11 1998 Gavin Koch <gavin@cygnus.com>
388 * mips.igen (check_mt_hilo): Create a separate r3900 version.
390 Wed May 13 14:11:46 1998 Gavin Koch <gavin@cygnus.com>
392 * tx.igen (madd,maddu): Replace calls to check_op_hilo
393 with calls to check_div_hilo.
395 Wed May 13 09:59:27 1998 Gavin Koch <gavin@cygnus.com>
397 * mips/mips.igen (check_op_hilo,check_mult_hilo,check_div_hilo):
398 Replace check_op_hilo with check_mult_hilo and check_div_hilo.
399 Add special r3900 version of do_mult_hilo.
400 (do_dmultx,do_mult,do_multu): Replace calls to check_op_hilo
401 with calls to check_mult_hilo.
402 (do_ddiv,do_ddivu,do_div,do_divu): Replace calls to check_op_hilo
403 with calls to check_div_hilo.
405 Tue May 12 15:22:11 1998 Andrew Cagney <cagney@b1.cygnus.com>
407 * configure.in (SUBTARGET_R3900): Define for mipstx39 target.
408 Document a replacement.
410 Fri May 8 17:48:19 1998 Ian Carmichael <iancarm@cygnus.com>
412 * interp.c (sim_monitor): Make mon_printf work.
414 Wed May 6 19:42:19 1998 Doug Evans <devans@canuck.cygnus.com>
416 * sim-main.h (INSN_NAME): New arg `cpu'.
418 Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
420 * configure: Regenerated to track ../common/aclocal.m4 changes.
422 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
424 * configure: Regenerated to track ../common/aclocal.m4 changes.
427 Sun Apr 26 15:20:01 1998 Tom Tromey <tromey@cygnus.com>
429 * acconfig.h: New file.
430 * configure.in: Reverted change of Apr 24; use sinclude again.
432 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
434 * configure: Regenerated to track ../common/aclocal.m4 changes.
437 Fri Apr 24 11:19:20 1998 Tom Tromey <tromey@cygnus.com>
439 * configure.in: Don't call sinclude.
441 Fri Apr 24 11:35:01 1998 Andrew Cagney <cagney@chook.cygnus.com>
443 * mips.igen (do_store_left): Pass 0 not NULL to store_memory.
445 Tue Apr 21 11:59:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
447 * mips.igen (ERET): Implement.
449 * interp.c (decode_coproc): Return sign-extended EPC.
451 * mips.igen (ANDI, LUI, MFC0): Add tracing code.
453 * interp.c (signal_exception): Do not ignore Trap.
454 (signal_exception): On TRAP, restart at exception address.
455 (HALT_INSTRUCTION, HALT_INSTRUCTION_MASK): Define.
456 (signal_exception): Update.
457 (sim_open): Patch V_COMMON interrupt vector with an abort sequence
458 so that TRAP instructions are caught.
460 Mon Apr 20 11:26:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
462 * sim-main.h (struct hilo_access, struct hilo_history): Define,
463 contains HI/LO access history.
464 (struct _sim_cpu): Make hiaccess and loaccess of type hilo_access.
465 (HIACCESS, LOACCESS): Delete, replace with
466 (HIHISTORY, LOHISTORY): New macros.
467 (CHECKHILO): Delete all, moved to mips.igen
469 * gencode.c (build_instruction): Do not generate checks for
470 correct HI/LO register usage.
472 * interp.c (old_engine_run): Delete checks for correct HI/LO
475 * mips.igen (check_mt_hilo, check_mf_hilo, check_op_hilo,
476 check_mf_cycles): New functions.
477 (do_mfhi, do_mflo, "mthi", "mtlo", do_ddiv, do_ddivu, do_div,
478 do_divu, domultx, do_mult, do_multu): Use.
480 * tx.igen ("madd", "maddu"): Use.
482 Wed Apr 15 18:31:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
484 * mips.igen (DSRAV): Use function do_dsrav.
485 (SRAV): Use new function do_srav.
487 * m16.igen (BEQZ, BNEZ): Compare GPR[TRX] not GPR[RX].
488 (B): Sign extend 11 bit immediate.
489 (EXT-B*): Shift 16 bit immediate left by 1.
490 (ADDIU*): Don't sign extend immediate value.
492 Wed Apr 15 10:32:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
494 * m16run.c (sim_engine_run): Restore CIA after handling an event.
496 * sim-main.h (DELAY_SLOT, NULLIFY_NEXT_INSTRUCTION): For IGEN, use
499 * mips.igen (delayslot32, nullify_next_insn): New functions.
500 (m16.igen): Always include.
501 (do_*): Add more tracing.
503 * m16.igen (delayslot16): Add NIA argument, could be called by a
504 32 bit MIPS16 instruction.
506 * interp.c (ifetch16): Move function from here.
507 * sim-main.c (ifetch16): To here.
509 * sim-main.c (ifetch16, ifetch32): Update to match current
510 implementations of LH, LW.
511 (signal_exception): Don't print out incorrect hex value of illegal
514 Wed Apr 15 00:17:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
516 * m16run.c (sim_engine_run): Use IMEM16 and IMEM32 to fetch an
519 * m16.igen: Implement MIPS16 instructions.
521 * mips.igen (do_addiu, do_addu, do_and, do_daddiu, do_daddu,
522 do_ddiv, do_ddivu, do_div, do_divu, do_dmultx, do_dmultu, do_srav,
523 do_dsubu, do_mfhi, do_mflo, do_mult, do_multu, do_nor, do_or,
524 do_sll, do_sllv, do_slt, do_slti, do_sltiu, do_sltu, do_sra,
525 do_srl, do_srlv, do_subu, do_xor, do_xori): New functions. Move
526 bodies of corresponding code from 32 bit insn to these. Also used
527 by MIPS16 versions of functions.
529 * sim-main.h (RAIDX, T8IDX, T8, SPIDX): Define.
530 (IMEM16): Drop NR argument from macro.
532 Sat Apr 4 22:39:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
534 * Makefile.in (SIM_OBJS): Add sim-main.o.
536 * sim-main.h (address_translation, load_memory, store_memory,
537 cache_op, sync_operation, prefetch, ifetch32, pending_tick): Mark
539 (pr_addr, pr_uword64): Declare.
540 (sim-main.c): Include when H_REVEALS_MODULE_P.
542 * interp.c (address_translation, load_memory, store_memory,
543 cache_op, sync_operation, prefetch, ifetch32, pending_tick): Move
545 * sim-main.c: To here. Fix compilation problems.
547 * configure.in: Enable inlining.
548 * configure: Re-config.
550 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
552 * configure: Regenerated to track ../common/aclocal.m4 changes.
554 Fri Apr 3 04:32:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
556 * mips.igen: Include tx.igen.
557 * Makefile.in (IGEN_INCLUDE): Add tx.igen.
558 * tx.igen: New file, contains MADD and MADDU.
560 * interp.c (load_memory): When shifting bytes, use LOADDRMASK not
561 the hardwired constant `7'.
562 (store_memory): Ditto.
563 (LOADDRMASK): Move definition to sim-main.h.
565 mips.igen (MTC0): Enable for r3900.
568 mips.igen (do_load_byte): Delete.
569 (do_load, do_store, do_load_left, do_load_write, do_store_left,
570 do_store_right): New functions.
571 (SW*, LW*, SD*, LD*, SH, LH, SB, LB): Use.
573 configure.in: Let the tx39 use igen again.
576 Thu Apr 2 10:59:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
578 * interp.c (sim_monitor): get_mem_info returns a 4 byte quantity,
579 not an address sized quantity. Return zero for cache sizes.
581 Wed Apr 1 23:47:53 1998 Andrew Cagney <cagney@b1.cygnus.com>
583 * mips.igen (r3900): r3900 does not support 64 bit integer
586 Mon Mar 30 14:46:05 1998 Gavin Koch <gavin@cygnus.com>
588 * configure.in (mipstx39*-*-*): Use gencode simulator rather
590 * configure : Rebuild.
592 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
594 * configure: Regenerated to track ../common/aclocal.m4 changes.
596 Fri Mar 27 15:01:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
598 * interp.c (mips_option_handler): Iterate over MAX_NR_PROCESSORS.
600 Wed Mar 25 16:44:27 1998 Ian Carmichael <iancarm@cygnus.com>
602 * configure: Regenerated to track ../common/aclocal.m4 changes.
603 * config.in: Regenerated to track ../common/aclocal.m4 changes.
605 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
607 * configure: Regenerated to track ../common/aclocal.m4 changes.
609 Wed Mar 25 10:05:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
611 * interp.c (Max, Min): Comment out functions. Not yet used.
613 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
615 * configure: Regenerated to track ../common/aclocal.m4 changes.
617 Tue Mar 17 19:05:20 1998 Frank Ch. Eigler <fche@cygnus.com>
619 * Makefile.in (MIPS_EXTRA_LIBS, SIM_EXTRA_LIBS): Added
620 configurable settings for stand-alone simulator.
622 * configure.in: Added X11 search, just in case.
624 * configure: Regenerated.
626 Wed Mar 11 14:09:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
628 * interp.c (sim_write, sim_read, load_memory, store_memory):
629 Replace sim_core_*_map with read_map, write_map, exec_map resp.
631 Tue Mar 3 13:58:43 1998 Andrew Cagney <cagney@b1.cygnus.com>
633 * sim-main.h (GETFCC): Return an unsigned value.
635 Tue Mar 3 13:21:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
637 * mips.igen (DIV): Fix check for -1 / MIN_INT.
638 (DADD): Result destination is RD not RT.
640 Fri Feb 27 13:49:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
642 * sim-main.h (HIACCESS, LOACCESS): Always define.
644 * mdmx.igen (Maxi, Mini): Rename Max, Min.
646 * interp.c (sim_info): Delete.
648 Fri Feb 27 18:41:01 1998 Doug Evans <devans@canuck.cygnus.com>
650 * interp.c (DECLARE_OPTION_HANDLER): Use it.
651 (mips_option_handler): New argument `cpu'.
652 (sim_open): Update call to sim_add_option_table.
654 Wed Feb 25 18:56:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
656 * mips.igen (CxC1): Add tracing.
658 Fri Feb 20 17:43:21 1998 Andrew Cagney <cagney@b1.cygnus.com>
660 * sim-main.h (Max, Min): Declare.
662 * interp.c (Max, Min): New functions.
664 * mips.igen (BC1): Add tracing.
666 Thu Feb 19 14:50:00 1998 John Metzler <jmetzler@cygnus.com>
668 * interp.c Added memory map for stack in vr4100
670 Thu Feb 19 10:21:21 1998 Gavin Koch <gavin@cygnus.com>
672 * interp.c (load_memory): Add missing "break"'s.
674 Tue Feb 17 12:45:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
676 * interp.c (sim_store_register, sim_fetch_register): Pass in
677 length parameter. Return -1.
679 Tue Feb 10 11:57:40 1998 Ian Carmichael <iancarm@cygnus.com>
681 * interp.c: Added hardware init hook, fixed warnings.
683 Sat Feb 7 17:16:20 1998 Andrew Cagney <cagney@b1.cygnus.com>
685 * Makefile.in (itable.h itable.c): Depend on SIM_@sim_gen@_ALL.
687 Tue Feb 3 11:36:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
689 * interp.c (ifetch16): New function.
691 * sim-main.h (IMEM32): Rename IMEM.
692 (IMEM16_IMMED): Define.
694 (DELAY_SLOT): Update.
696 * m16run.c (sim_engine_run): New file.
698 * m16.igen: All instructions except LB.
699 (LB): Call do_load_byte.
700 * mips.igen (do_load_byte): New function.
701 (LB): Call do_load_byte.
703 * mips.igen: Move spec for insn bit size and high bit from here.
704 * Makefile.in (tmp-igen, tmp-m16): To here.
706 * m16.dc: New file, decode mips16 instructions.
708 * Makefile.in (SIM_NO_ALL): Define.
709 (tmp-m16): Generate both 16 bit and 32 bit simulator engines.
711 Tue Feb 3 11:28:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
713 * configure.in (mips_fpu_bitsize): For tx39, restrict floating
714 point unit to 32 bit registers.
715 * configure: Re-generate.
717 Sun Feb 1 15:47:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
719 * configure.in (sim_use_gen): Make IGEN the default simulator
720 generator for generic 32 and 64 bit mips targets.
721 * configure: Re-generate.
723 Sun Feb 1 16:52:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
725 * sim-main.h (SizeFGR): Determine from floating-point and not gpr
728 * interp.c (sim_fetch_register, sim_store_register): Read/write
729 FGR from correct location.
730 (sim_open): Set size of FGR's according to
731 WITH_TARGET_FLOATING_POINT_BITSIZE.
733 * sim-main.h (FGR): Store floating point registers in a separate
736 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
738 * configure: Regenerated to track ../common/aclocal.m4 changes.
740 Tue Feb 3 00:10:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
742 * interp.c (ColdReset): Call PENDING_INVALIDATE.
744 * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Call PENDING_TICK.
746 * interp.c (pending_tick): New function. Deliver pending writes.
748 * sim-main.h (PENDING_FILL, PENDING_TICK, PENDING_SCHED,
749 PENDING_BIT, PENDING_INVALIDATE): Re-write pipeline code so that
750 it can handle mixed sized quantites and single bits.
752 Mon Feb 2 17:43:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
754 * interp.c (oengine.h): Do not include when building with IGEN.
755 (sim_open): Replace GPRLEN by WITH_TARGET_WORD_BITSIZE.
756 (sim_info): Ditto for PROCESSOR_64BIT.
757 (sim_monitor): Replace ut_reg with unsigned_word.
758 (*): Ditto for t_reg.
759 (LOADDRMASK): Define.
760 (sim_open): Remove defunct check that host FP is IEEE compliant,
761 using software to emulate floating point.
762 (value_fpr, ...): Always compile, was conditional on HASFPU.
764 Sun Feb 1 11:15:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
766 * sim-main.h (sim_state): Make the cpu array MAX_NR_PROCESSORS in
769 * interp.c (SD, CPU): Define.
770 (mips_option_handler): Set flags in each CPU.
771 (interrupt_event): Assume CPU 0 is the one being iterrupted.
772 (sim_close): Do not clear STATE, deleted anyway.
773 (sim_write, sim_read): Assume CPU zero's vm should be used for
775 (sim_create_inferior): Set the PC for all processors.
776 (sim_monitor, store_word, load_word, mips16_entry): Add cpu
778 (mips16_entry): Pass correct nr of args to store_word, load_word.
779 (ColdReset): Cold reset all cpu's.
780 (signal_exception): Pass cpu to sim_monitor & mips16_entry.
781 (sim_monitor, load_memory, store_memory, signal_exception): Use
782 `CPU' instead of STATE_CPU.
785 * sim-main.h: Replace uses of STATE_CPU with CPU. Replace sd with
788 * sim-main.h (signal_exception): Add sim_cpu arg.
789 (SignalException*): Pass both SD and CPU to signal_exception.
790 * interp.c (signal_exception): Update.
792 * sim-main.h (value_fpr, store_fpr, dotrace, ifetch32), interp.c:
794 (sync_operation, prefetch, cache_op, store_memory, load_memory,
795 address_translation): Ditto
796 (decode_coproc, cop_lw, cop_ld, cop_sw, cop_sd): Ditto.
798 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
800 * configure: Regenerated to track ../common/aclocal.m4 changes.
802 Sat Jan 31 14:49:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
804 * interp.c (sim_engine_run): Add `nr_cpus' argument.
806 * mips.igen (model): Map processor names onto BFD name.
808 * sim-main.h (CPU_CIA): Delete.
809 (SET_CIA, GET_CIA): Define
811 Wed Jan 21 16:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
813 * sim-main.h (GPR_SET): Define, used by igen when zeroing a
816 * configure.in (default_endian): Configure a big-endian simulator
818 * configure: Re-generate.
820 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
822 * configure: Regenerated to track ../common/aclocal.m4 changes.
824 Mon Jan 5 20:38:54 1998 Mark Alexander <marka@cygnus.com>
826 * interp.c (sim_monitor): Handle Densan monitor outbyte
827 and inbyte functions.
829 1997-12-29 Felix Lee <flee@cygnus.com>
831 * interp.c (sim_engine_run): msvc cpp barfs on #if (a==b!=c).
833 Wed Dec 17 14:48:20 1997 Jeffrey A Law (law@cygnus.com)
835 * Makefile.in (tmp-igen): Arrange for $zero to always be
836 reset to zero after every instruction.
838 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
840 * configure: Regenerated to track ../common/aclocal.m4 changes.
843 Wed Dec 10 17:10:45 1997 Jeffrey A Law (law@cygnus.com)
845 * mips.igen (MSUB): Fix to work like MADD.
846 * gencode.c (MSUB): Similarly.
848 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
850 * configure: Regenerated to track ../common/aclocal.m4 changes.
852 Wed Nov 26 11:00:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
854 * mips.igen (LWC1): Correct assembler - lwc1 not swc1.
856 Sun Nov 23 01:45:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
858 * sim-main.h (sim-fpu.h): Include.
860 * interp.c (convert, SquareRoot, Recip, Divide, Multiply, Sub,
861 Add, Negate, AbsoluteValue, Equal, Less, Infinity, NaN): Rewrite
862 using host independant sim_fpu module.
864 Thu Nov 20 19:56:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
866 * interp.c (signal_exception): Report internal errors with SIGABRT
869 * sim-main.h (C0_CONFIG): New register.
870 (signal.h): No longer include.
872 * interp.c (decode_coproc): Allow access C0_CONFIG to register.
874 Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
876 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
878 Fri Nov 14 11:56:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
880 * mips.igen: Tag vr5000 instructions.
881 (ANDI): Was missing mipsIV model, fix assembler syntax.
882 (do_c_cond_fmt): New function.
883 (C.cond.fmt): Handle mips I-III which do not support CC field
885 (bc1): Handle mips IV which do not have a delaed FCC separatly.
886 (SDR): Mask paddr when BigEndianMem, not the converse as specified
888 (DMULT, DMULTU): Force use of hosts 64bit multiplication. Handle
889 vr5000 which saves LO in a GPR separatly.
891 * configure.in (enable-sim-igen): For vr5000, select vr5000
892 specific instructions.
893 * configure: Re-generate.
895 Wed Nov 12 14:42:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
897 * Makefile.in (SIM_OBJS): Add sim-fpu module.
899 * interp.c (store_fpr), sim-main.h: Add separate fmt_uninterpreted_32 and
900 fmt_uninterpreted_64 bit cases to switch. Convert to
903 * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Define,
905 * mips.igen (SWR): Mask paddr when BigEndianMem, not the converse
906 as specified in IV3.2 spec.
907 (MTC1, DMTC1): Call StoreFPR to store the GPR in the FPR.
909 Tue Nov 11 12:38:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
911 * mips.igen: Delay slot branches add OFFSET to NIA not CIA.
912 (MFC0, MTC0, SWC1, LWC1, SDC1, LDC1): Implement.
913 (MTC1, MFC1, DMTC1, DMFC1, CFC1, CTC1): Implement separate non
914 PENDING_FILL versions of instructions. Simplify.
916 (MULT, MULTU): Implement separate RD==0 and RD!=0 versions of
918 (BEQZ, ..., SLT, SLTI, TLT, TLE, TLI, ...): Explicitly cast GPR to
920 (MTHI, MFHI): Disable code checking HI-LO.
922 * sim-main.h (dotrace,tracefh), interp.c: Make dotrace & tracefh
924 (NULLIFY_NEXT_INSTRUCTION): Call dotrace.
926 Thu Nov 6 16:36:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
928 * gencode.c (build_mips16_operands): Replace IPC with cia.
930 * interp.c (sim_monitor, signal_exception, cache_op, store_fpr,
931 value_fpr, cop_ld, cop_lw, cop_sw, cop_sd, decode_coproc): Replace
933 (UndefinedResult): Replace function with macro/function
935 (sim_engine_run): Don't save PC in IPC.
937 * sim-main.h (IPC): Delete.
940 * interp.c (signal_exception, store_word, load_word,
941 address_translation, load_memory, store_memory, cache_op,
942 prefetch, sync_operation, ifetch, value_fpr, store_fpr, convert,
943 cop_lw, cop_ld, cop_sw, cop_sd, decode_coproc, sim_monitor): Add
944 current instruction address - cia - argument.
945 (sim_read, sim_write): Call address_translation directly.
946 (sim_engine_run): Rename variable vaddr to cia.
947 (signal_exception): Pass cia to sim_monitor
949 * sim-main.h (SignalException, LoadWord, StoreWord, CacheOp,
950 Prefetch, SyncOperation, ValueFPR, StoreFPR, Convert, COP_LW,
951 COP_LD, COP_SW, COP_SD, DecodeCoproc): Update.
953 * sim-main.h (SignalExceptionSimulatorFault): Delete definition.
954 * interp.c (sim_open): Replace SignalExceptionSimulatorFault with
957 * interp.c (signal_exception): Pass restart address to
960 * Makefile.in (semantics.o, engine.o, support.o, itable.o,
961 idecode.o): Add dependency.
963 * sim-main.h (SIM_ENGINE_HALT_HOOK, SIM_ENGINE_RESUME_HOOK):
965 (DELAY_SLOT): Update NIA not PC with branch address.
966 (NULLIFY_NEXT_INSTRUCTION): Set NIA to instruction after next.
968 * mips.igen: Use CIA not PC in branch calculations.
969 (illegal): Call SignalException.
970 (BEQ, ADDIU): Fix assembler.
972 Wed Nov 5 12:19:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
974 * m16.igen (JALX): Was missing.
976 * configure.in (enable-sim-igen): New configuration option.
977 * configure: Re-generate.
979 * sim-main.h (MAX_INSNS, INSN_NAME): Define.
981 * interp.c (load_memory, store_memory): Delete parameter RAW.
982 (sim_read, sim_write): Use sim_core_{read,write}_buffer directly
983 bypassing {load,store}_memory.
985 * sim-main.h (ByteSwapMem): Delete definition.
987 * Makefile.in (SIM_OBJS): Add sim-memopt module.
989 * interp.c (sim_do_command, sim_commands): Delete mips specific
990 commands. Handled by module sim-options.
992 * sim-main.h (SIM_HAVE_FLATMEM): Undefine, use sim-core.o module.
993 (WITH_MODULO_MEMORY): Define.
995 * interp.c (sim_info): Delete code printing memory size.
997 * interp.c (mips_size): Nee sim_size, delete function.
999 (monitor, monitor_base, monitor_size): Delete global variables.
1000 (sim_open, sim_close): Delete code creating monitor and other
1001 memory regions. Use sim-memopts module, via sim_do_commandf, to
1002 manage memory regions.
1003 (load_memory, store_memory): Use sim-core for memory model.
1005 * interp.c (address_translation): Delete all memory map code
1006 except line forcing 32 bit addresses.
1008 Wed Nov 5 11:21:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
1010 * sim-main.h (WITH_TRACE): Delete definition. Enables common
1013 * interp.c (logfh, logfile): Delete globals.
1014 (sim_open, sim_close): Delete code opening & closing log file.
1015 (mips_option_handler): Delete -l and -n options.
1016 (OPTION mips_options): Ditto.
1018 * interp.c (OPTION mips_options): Rename option trace to dinero.
1019 (mips_option_handler): Update.
1021 Wed Nov 5 09:35:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
1023 * interp.c (fetch_str): New function.
1024 (sim_monitor): Rewrite using sim_read & sim_write.
1025 (sim_open): Check magic number.
1026 (sim_open): Write monitor vectors into memory using sim_write.
1027 (MONITOR_BASE, MONITOR_SIZE, MEM_SIZE): Define.
1028 (sim_read, sim_write): Simplify - transfer data one byte at a
1030 (load_memory, store_memory): Clarify meaning of parameter RAW.
1032 * sim-main.h (isHOST): Defete definition.
1033 (isTARGET): Mark as depreciated.
1034 (address_translation): Delete parameter HOST.
1036 * interp.c (address_translation): Delete parameter HOST.
1038 Wed Oct 29 11:13:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
1042 * Makefile.in (IGEN_INCLUDE): Files included by mips.igen.
1043 (tmp-igen, tmp-m16): Depend on IGEN_INCLUDE.
1045 Tue Oct 28 11:06:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
1047 * mips.igen: Add model filter field to records.
1049 Mon Oct 27 17:53:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
1051 * Makefile.in (SIM_NO_CFLAGS): Define. Define WITH_IGEN=0.
1053 interp.c (sim_engine_run): Do not compile function sim_engine_run
1054 when WITH_IGEN == 1.
1056 * configure.in (sim_igen_flags, sim_m16_flags): Set according to
1057 target architecture.
1059 Makefile.in (tmp-igen, tmp-m16): Drop -F and -M options to
1060 igen. Replace with configuration variables sim_igen_flags /
1063 * m16.igen: New file. Copy mips16 insns here.
1064 * mips.igen: From here.
1066 Mon Oct 27 13:53:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
1068 * Makefile.in (SIM_NO_OBJ): Define, move SIM_M16_OBJ, SIM_IGEN_OBJ
1070 (tmp-igen, tmp-m16): Pass -I srcdir to igen.
1072 Sat Oct 25 16:51:40 1997 Gavin Koch <gavin@cygnus.com>
1074 * gencode.c (build_instruction): Follow sim_write's lead in using
1075 BigEndianMem instead of !ByteSwapMem.
1077 Fri Oct 24 17:41:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
1079 * configure.in (sim_gen): Dependent on target, select type of
1080 generator. Always select old style generator.
1082 configure: Re-generate.
1084 Makefile.in (tmp-igen, tmp-m16, clean-m16, clean-igen): New
1086 (SIM_M16_CFLAGS, SIM_M16_ALL, SIM_M16_OBJ, BUILT_SRC_FROM_M16,
1087 SIM_IGEN_CFLAGS, SIM_IGEN_ALL, SIM_IGEN_OBJ, BUILT_SRC_FROM_IGEN,
1088 IGEN_TRACE, IGEN_INSN, IGEN_DC): Define
1089 (SIM_EXTRA_CFLAGS, SIM_EXTRA_ALL, SIM_OBJS): Add member
1090 SIM_@sim_gen@_*, set by autoconf.
1092 Wed Oct 22 12:52:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1094 * sim-main.h (NULLIFY_NEXT_INSTRUCTION, DELAY_SLOT): Define.
1096 * interp.c (ColdReset): Remove #ifdef HASFPU, check
1097 CURRENT_FLOATING_POINT instead.
1099 * interp.c (ifetch32): New function. Fetch 32 bit instruction.
1100 (address_translation): Raise exception InstructionFetch when
1101 translation fails and isINSTRUCTION.
1103 * interp.c (sim_open, sim_write, sim_monitor, store_word,
1104 sim_engine_run): Change type of of vaddr and paddr to
1106 (address_translation, prefetch, load_memory, store_memory,
1107 cache_op): Change type of vAddr and pAddr to address_word.
1109 * gencode.c (build_instruction): Change type of vaddr and paddr to
1112 Mon Oct 20 15:29:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
1114 * sim-main.h (ALU64_END, ALU32_END): Use ALU*_OVERFLOW_RESULT
1115 macro to obtain result of ALU op.
1117 Tue Oct 21 17:39:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
1119 * interp.c (sim_info): Call profile_print.
1121 Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1123 * Makefile.in (SIM_OBJS): Add sim-profile.o module.
1125 * sim-main.h (WITH_PROFILE): Do not define, defined in
1126 common/sim-config.h. Use sim-profile module.
1127 (simPROFILE): Delete defintion.
1129 * interp.c (PROFILE): Delete definition.
1130 (mips_option_handler): Delete 'p', 'y' and 'x' profile options.
1131 (sim_close): Delete code writing profile histogram.
1132 (mips_set_profile, mips_set_profile_size, writeout16, writeout32):
1134 (sim_engine_run): Delete code profiling the PC.
1136 Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1138 * sim-main.h (SIGNEXTEND): Force type of result to unsigned_word.
1140 * interp.c (sim_monitor): Make register pointers of type
1143 * sim-main.h: Make registers of type unsigned_word not
1146 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
1148 * interp.c (sync_operation): Rename from SyncOperation, make
1149 global, add SD argument.
1150 (prefetch): Rename from Prefetch, make global, add SD argument.
1151 (decode_coproc): Make global.
1153 * sim-main.h (SyncOperation, DecodeCoproc, Pefetch): Define.
1155 * gencode.c (build_instruction): Generate DecodeCoproc not
1156 decode_coproc calls.
1158 * interp.c (SETFCC, GETFCC, PREVCOC1): Move to sim-main.h
1159 (SizeFGR): Move to sim-main.h
1160 (simHALTEX, simHALTIN, simTRACE, simPROFILE, simDELAYSLOT,
1161 simSIGINT, simJALDELAYSLOT): Move to sim-main.h
1162 (FP_FLAGS, FP_ENABLE, FP_CAUSE, IR, UF, OF, DZ, IO, UO): Move to
1164 (FP_FS, FP_MASK_RM, FP_SH_RM, FP_RM_NEAREST, FP_RM_TOPINF,
1165 FP_RM_TOMINF, GETRM): Move to sim-main.h.
1166 (Uncached, CachedNoncoherent, CachedCoherent, Cached,
1167 isINSTRUCTION, ..., AccessLength_BYTE, ...): Move to sim-main.h.
1168 (UserMode, BigEndianMem, ByteSwapMem, ReverseEndian,
1169 BigEndianCPU, status_KSU_mask, ...). Moved to sim-main.h
1171 * sim-main.h (ALU32_END, ALU64_END): Define. When overflow raise
1173 (sim-alu.h): Include.
1174 (NULLIFY_NIA, NULL_CIA, CPU_CIA): Define.
1175 (sim_cia): Typedef to instruction_address.
1177 Thu Oct 16 10:31:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
1179 * Makefile.in (interp.o): Rename generated file engine.c to
1184 Thu Oct 16 10:31:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
1186 * gencode.c (build_instruction): Use FPR_STATE not fpr_state.
1188 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
1190 * gencode.c (build_instruction): For "FPSQRT", output correct
1191 number of arguments to Recip.
1193 Tue Oct 14 17:38:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
1195 * Makefile.in (interp.o): Depends on sim-main.h
1197 * interp.c (mips16_entry, ColdReset,dotrace): Add SD argument. Use GPR not registers.
1199 * sim-main.h (sim_cpu): Add registers, register_widths, fpr_state,
1200 ipc, dspc, pending_*, hiaccess, loaccess, state, dsstate fields.
1201 (REGISTERS, REGISTER_WIDTHS, FPR_STATE, IPC, DSPC, PENDING_*,
1202 STATE, DSSTATE): Define
1203 (GPR, FGRIDX, ..): Define.
1205 * interp.c (registers, register_widths, fpr_state, ipc, dspc,
1206 pending_*, hiaccess, loaccess, state, dsstate): Delete globals.
1207 (GPR, FGRIDX, ...): Delete macros.
1209 * interp.c: Update names to match defines from sim-main.h
1211 Tue Oct 14 15:11:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
1213 * interp.c (sim_monitor): Add SD argument.
1214 (sim_warning): Delete. Replace calls with calls to
1216 (sim_error): Delete. Replace calls with sim_io_error.
1217 (open_trace, writeout32, writeout16, getnum): Add SD argument.
1218 (mips_set_profile): Rename from sim_set_profile. Add SD argument.
1219 (mips_set_profile_size): Rename from sim_set_profile_size. Add SD
1221 (mips_size): Rename from sim_size. Add SD argument.
1223 * interp.c (simulator): Delete global variable.
1224 (callback): Delete global variable.
1225 (mips_option_handler, sim_open, sim_write, sim_read,
1226 sim_store_register, sim_fetch_register, sim_info, sim_do_command,
1227 sim_size,sim_monitor): Use sim_io_* not callback->*.
1228 (sim_open): ZALLOC simulator struct.
1229 (PROFILE): Do not define.
1231 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1233 * interp.c (sim_open), support.h: Replace CHECKSIM macro found in
1234 support.h with corresponding code.
1236 * sim-main.h (word64, uword64), support.h: Move definition to
1238 (WORD64LO, WORD64HI, SET64LO, SET64HI, WORD64, UWORD64): Ditto.
1241 * Makefile.in: Update dependencies
1242 * interp.c: Do not include.
1244 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1246 * interp.c (address_translation, load_memory, store_memory,
1247 cache_op): Rename to from AddressTranslation et.al., make global,
1250 * sim-main.h (AddressTranslation, LoadMemory, StoreMemory,
1253 * interp.c (SignalException): Rename to signal_exception, make
1256 * interp.c (Interrupt, ...): Move definitions to sim-main.h.
1258 * sim-main.h (SignalException, SignalExceptionInterrupt,
1259 SignalExceptionInstructionFetch, SignalExceptionAddressStore,
1260 SignalExceptionAddressLoad, SignalExceptionSimulatorFault,
1261 SignalExceptionIntegerOverflow, SignalExceptionCoProcessorUnusable):
1264 * interp.c, support.h: Use.
1266 Tue Oct 14 13:19:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1268 * interp.c (ValueFPR, StoreFPR), sim-main.h: Make global, rename
1269 to value_fpr / store_fpr. Add SD argument.
1270 (NaN, Infinity, Less, Equal, AbsoluteValue, Negate, Add, Sub,
1271 Multiply, Divide, Recip, SquareRoot, Convert): Make global.
1273 * sim-main.h (ValueFPR, StoreFPR): Define.
1275 Tue Oct 14 13:06:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
1277 * interp.c (sim_engine_run): Check consistency between configure
1278 WITH_TARGET_WORD_BITSIZE and WITH_FLOATING_POINT and gensim GPRLEN
1281 * configure.in (mips_bitsize): Configure WITH_TARGET_WORD_BITSIZE.
1282 (mips_fpu): Configure WITH_FLOATING_POINT.
1283 (mips_endian): Configure WITH_TARGET_ENDIAN.
1284 * configure: Update.
1286 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1288 * configure: Regenerated to track ../common/aclocal.m4 changes.
1290 Mon Sep 29 14:45:00 1997 Bob Manson <manson@charmed.cygnus.com>
1292 * configure: Regenerated.
1294 Fri Sep 26 12:48:18 1997 Mark Alexander <marka@cygnus.com>
1296 * interp.c: Allow Debug, DEPC, and EPC registers to be examined in GDB.
1298 Thu Sep 25 11:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1300 * gencode.c (print_igen_insn_models): Assume certain architectures
1301 include all mips* instructions.
1302 (print_igen_insn_format): Use data_size==-1 as marker for MIPS16
1305 * Makefile.in (tmp.igen): Add target. Generate igen input from
1308 * gencode.c (FEATURE_IGEN): Define.
1309 (main): Add --igen option. Generate output in igen format.
1310 (process_instructions): Format output according to igen option.
1311 (print_igen_insn_format): New function.
1312 (print_igen_insn_models): New function.
1313 (process_instructions): Only issue warnings and ignore
1314 instructions when no FEATURE_IGEN.
1316 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1318 * interp.c (COP_SD, COP_LD): Add UNUSED to pacify GCC for some
1321 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1323 * configure: Regenerated to track ../common/aclocal.m4 changes.
1325 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
1327 * Makefile.in (SIM_ALIGNMENT, SIM_ENDIAN, SIM_HOSTENDIAN,
1328 SIM_RESERVED_BITS): Delete, moved to common.
1329 (SIM_EXTRA_CFLAGS): Update.
1331 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1333 * configure.in: Configure non-strict memory alignment.
1334 * configure: Regenerated to track ../common/aclocal.m4 changes.
1336 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1338 * configure: Regenerated to track ../common/aclocal.m4 changes.
1340 Sat Sep 20 14:07:28 1997 Gavin Koch <gavin@cygnus.com>
1342 * gencode.c (SDBBP,DERET): Added (3900) insns.
1343 (RFE): Turn on for 3900.
1344 * interp.c (DebugBreakPoint,DEPC,Debug,Debug_*): Added.
1345 (dsstate): Made global.
1346 (SUBTARGET_R3900): Added.
1347 (CANCELDELAYSLOT): New.
1348 (SignalException): Ignore SystemCall rather than ignore and
1349 terminate. Add DebugBreakPoint handling.
1350 (decode_coproc): New insns RFE, DERET; and new registers Debug
1351 and DEPC protected by SUBTARGET_R3900.
1352 (sim_engine_run): Use CANCELDELAYSLOT rather than clearing
1354 * Makefile.in,configure.in: Add mips subtarget option.
1355 * configure: Update.
1357 Fri Sep 19 09:33:27 1997 Gavin Koch <gavin@cygnus.com>
1359 * gencode.c: Add r3900 (tx39).
1362 Tue Sep 16 15:52:04 1997 Gavin Koch <gavin@cygnus.com>
1364 * gencode.c (build_instruction): Don't need to subtract 4 for
1367 Tue Sep 16 11:32:28 1997 Gavin Koch <gavin@cygnus.com>
1369 * interp.c: Correct some HASFPU problems.
1371 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1373 * configure: Regenerated to track ../common/aclocal.m4 changes.
1375 Fri Sep 12 12:01:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
1377 * interp.c (mips_options): Fix samples option short form, should
1380 Thu Sep 11 09:35:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
1382 * interp.c (sim_info): Enable info code. Was just returning.
1384 Tue Sep 9 17:30:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1386 * interp.c (decode_coproc): Clarify warning about unsuported MTC0,
1389 Tue Sep 9 16:28:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
1391 * gencode.c (build_instruction): Use SIGNED64 for 64 bit
1393 (build_instruction): Ditto for LL.
1395 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
1397 * configure: Regenerated to track ../common/aclocal.m4 changes.
1399 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1401 * configure: Regenerated to track ../common/aclocal.m4 changes.
1404 Wed Aug 27 14:12:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
1406 * interp.c (sim_open): Add call to sim_analyze_program, update
1409 Tue Aug 26 10:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
1411 * interp.c (sim_kill): Delete.
1412 (sim_create_inferior): Add ABFD argument. Set PC from same.
1413 (sim_load): Move code initializing trap handlers from here.
1414 (sim_open): To here.
1415 (sim_load): Delete, use sim-hload.c.
1417 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
1419 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1421 * configure: Regenerated to track ../common/aclocal.m4 changes.
1424 Mon Aug 25 15:59:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1426 * interp.c (sim_open): Add ABFD argument.
1427 (sim_load): Move call to sim_config from here.
1428 (sim_open): To here. Check return status.
1430 Fri Jul 25 15:00:45 1997 Gavin Koch <gavin@cygnus.com>
1432 * gencode.c (build_instruction): Two arg MADD should
1433 not assign result to $0.
1435 Thu Jun 26 12:13:17 1997 Angela Marie Thomas (angela@cygnus.com)
1437 * sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
1438 * sim/mips/configure.in: Regenerate.
1440 Wed Jul 9 10:29:21 1997 Andrew Cagney <cagney@critters.cygnus.com>
1442 * interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
1443 signed8, unsigned8 et.al. types.
1445 * interp.c (SUB_REG_FETCH): Handle both little and big endian
1446 hosts when selecting subreg.
1448 Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com)
1450 * interp.c (sim_engine_run): Reset the ZERO register to zero
1451 regardless of FEATURE_WARN_ZERO.
1452 * gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
1454 Wed Jun 4 10:43:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
1456 * interp.c (decode_coproc): Implement MTC0 N, CAUSE.
1457 (SignalException): For BreakPoints ignore any mode bits and just
1459 (SignalException): Always set the CAUSE register.
1461 Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
1463 * interp.c (SignalException): Clear the simDELAYSLOT flag when an
1464 exception has been taken.
1466 * interp.c: Implement the ERET and mt/f sr instructions.
1468 Sat May 31 00:44:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
1470 * interp.c (SignalException): Don't bother restarting an
1473 Fri May 30 23:41:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1475 * interp.c (SignalException): Really take an interrupt.
1476 (interrupt_event): Only deliver interrupts when enabled.
1478 Tue May 27 20:08:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1480 * interp.c (sim_info): Only print info when verbose.
1481 (sim_info) Use sim_io_printf for output.
1483 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
1485 * interp.c (CoProcPresent): Add UNUSED attribute - not used by all
1488 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
1490 * interp.c (sim_do_command): Check for common commands if a
1491 simulator specific command fails.
1493 Thu May 22 09:32:03 1997 Gavin Koch <gavin@cygnus.com>
1495 * interp.c (sim_engine_run): ifdef out uses of simSTOP, simSTEP
1496 and simBE when DEBUG is defined.
1498 Wed May 21 09:08:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
1500 * interp.c (interrupt_event): New function. Pass exception event
1501 onto exception handler.
1503 * configure.in: Check for stdlib.h.
1504 * configure: Regenerate.
1506 * gencode.c (build_instruction): Add UNUSED attribute to tempS
1507 variable declaration.
1508 (build_instruction): Initialize memval1.
1509 (build_instruction): Add UNUSED attribute to byte, bigend,
1511 (build_operands): Ditto.
1513 * interp.c: Fix GCC warnings.
1514 (sim_get_quit_code): Delete.
1516 * configure.in: Add INLINE, ENDIAN, HOSTENDIAN and WARNINGS.
1517 * Makefile.in: Ditto.
1518 * configure: Re-generate.
1520 * Makefile.in (SIM_OBJS): Add sim-watch.o module.
1522 Tue May 20 15:08:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
1524 * interp.c (mips_option_handler): New function parse argumes using
1526 (myname): Replace with STATE_MY_NAME.
1527 (sim_open): Delete check for host endianness - performed by
1529 (simHOSTBE, simBE): Delete, replaced by sim-endian flags.
1530 (sim_open): Move much of the initialization from here.
1531 (sim_load): To here. After the image has been loaded and
1533 (sim_open): Move ColdReset from here.
1534 (sim_create_inferior): To here.
1535 (sim_open): Make FP check less dependant on host endianness.
1537 * Makefile.in (SIM_RUN_OBJS): Set to nrun.o - use new version or
1539 * interp.c (sim_set_callbacks): Delete.
1541 * interp.c (membank, membank_base, membank_size): Replace with
1542 STATE_MEMORY, STATE_MEM_SIZE, STATE_MEM_BASE.
1543 (sim_open): Remove call to callback->init. gdb/run do this.
1547 * sim-main.h (SIM_HAVE_FLATMEM): Define.
1549 * interp.c (big_endian_p): Delete, replaced by
1550 current_target_byte_order.
1552 Tue May 20 13:55:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1554 * interp.c (host_read_long, host_read_word, host_swap_word,
1555 host_swap_long): Delete. Using common sim-endian.
1556 (sim_fetch_register, sim_store_register): Use H2T.
1557 (pipeline_ticks): Delete. Handled by sim-events.
1559 (sim_engine_run): Update.
1561 Tue May 20 13:42:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
1563 * interp.c (sim_stop_reason): Move code determining simEXCEPTION
1565 (SignalException): To here. Signal using sim_engine_halt.
1566 (sim_stop_reason): Delete, moved to common.
1568 Tue May 20 10:19:48 1997 Andrew Cagney <cagney@b2.cygnus.com>
1570 * interp.c (sim_open): Add callback argument.
1571 (sim_set_callbacks): Delete SIM_DESC argument.
1574 Mon May 19 18:20:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1576 * Makefile.in (SIM_OBJS): Add common modules.
1578 * interp.c (sim_set_callbacks): Also set SD callback.
1579 (set_endianness, xfer_*, swap_*): Delete.
1580 (host_read_word, host_read_long, host_swap_word, host_swap_long):
1581 Change to functions using sim-endian macros.
1582 (control_c, sim_stop): Delete, use common version.
1583 (simulate): Convert into.
1584 (sim_engine_run): This function.
1585 (sim_resume): Delete.
1587 * interp.c (simulation): New variable - the simulator object.
1588 (sim_kind): Delete global - merged into simulation.
1589 (sim_load): Cleanup. Move PC assignment from here.
1590 (sim_create_inferior): To here.
1592 * sim-main.h: New file.
1593 * interp.c (sim-main.h): Include.
1595 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1597 * configure: Regenerated to track ../common/aclocal.m4 changes.
1599 Wed Apr 23 17:32:19 1997 Doug Evans <dje@canuck.cygnus.com>
1601 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
1603 Mon Apr 21 17:16:13 1997 Gavin Koch <gavin@cygnus.com>
1605 * gencode.c (build_instruction): DIV instructions: check
1606 for division by zero and integer overflow before using
1607 host's division operation.
1609 Thu Apr 17 03:18:14 1997 Doug Evans <dje@canuck.cygnus.com>
1611 * Makefile.in (SIM_OBJS): Add sim-load.o.
1612 * interp.c: #include bfd.h.
1613 (target_byte_order): Delete.
1614 (sim_kind, myname, big_endian_p): New static locals.
1615 (sim_open): Set sim_kind, myname. Move call to set_endianness to
1616 after argument parsing. Recognize -E arg, set endianness accordingly.
1617 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
1618 load file into simulator. Set PC from bfd.
1619 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1620 (set_endianness): Use big_endian_p instead of target_byte_order.
1622 Wed Apr 16 17:55:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
1624 * interp.c (sim_size): Delete prototype - conflicts with
1625 definition in remote-sim.h. Correct definition.
1627 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1629 * configure: Regenerated to track ../common/aclocal.m4 changes.
1632 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1634 * interp.c (sim_open): New arg `kind'.
1636 * configure: Regenerated to track ../common/aclocal.m4 changes.
1638 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1640 * configure: Regenerated to track ../common/aclocal.m4 changes.
1642 Tue Mar 25 11:38:22 1997 Doug Evans <dje@canuck.cygnus.com>
1644 * interp.c (sim_open): Set optind to 0 before calling getopt.
1646 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1648 * configure: Regenerated to track ../common/aclocal.m4 changes.
1650 Mon Mar 17 10:52:59 1997 Gavin Koch <gavin@cetus.cygnus.com>
1652 * interp.c : Replace uses of pr_addr with pr_uword64
1653 where the bit length is always 64 independent of SIM_ADDR.
1654 (pr_uword64) : added.
1656 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1658 * configure: Re-generate.
1660 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1662 * configure: Regenerate to track ../common/aclocal.m4 changes.
1664 Thu Mar 13 12:51:36 1997 Doug Evans <dje@canuck.cygnus.com>
1666 * interp.c (sim_open): New SIM_DESC result. Argument is now
1668 (other sim_*): New SIM_DESC argument.
1670 Mon Feb 24 22:47:14 1997 Dawn Perchik <dawn@cygnus.com>
1672 * interp.c: Fix printing of addresses for non-64-bit targets.
1673 (pr_addr): Add function to print address based on size.
1675 Wed Feb 19 14:42:09 1997 Mark Alexander <marka@cygnus.com>
1677 * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
1679 Thu Feb 13 14:08:30 1997 Ian Lance Taylor <ian@cygnus.com>
1681 * gencode.c (build_mips16_operands): Correct computation of base
1682 address for extended PC relative instruction.
1684 Thu Feb 6 17:16:15 1997 Ian Lance Taylor <ian@cygnus.com>
1686 * interp.c (mips16_entry): Add support for floating point cases.
1687 (SignalException): Pass floating point cases to mips16_entry.
1688 (ValueFPR): Don't restrict fmt_single and fmt_word to even
1690 (StoreFPR): Likewise. Also, don't clobber fpr + 1 for fmt_single
1692 (COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
1693 and then set the state to fmt_uninterpreted.
1694 (COP_SW): Temporarily set the state to fmt_word while calling
1697 Tue Feb 4 16:48:25 1997 Ian Lance Taylor <ian@cygnus.com>
1699 * gencode.c (build_instruction): The high order may be set in the
1700 comparison flags at any ISA level, not just ISA 4.
1702 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
1704 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1705 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1706 * configure.in: sinclude ../common/aclocal.m4.
1707 * configure: Regenerated.
1709 Fri Jan 31 11:11:45 1997 Ian Lance Taylor <ian@cygnus.com>
1711 * configure: Rebuild after change to aclocal.m4.
1713 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1715 * configure configure.in Makefile.in: Update to new configure
1716 scheme which is more compatible with WinGDB builds.
1717 * configure.in: Improve comment on how to run autoconf.
1718 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1719 * Makefile.in: Use autoconf substitution to install common
1722 Wed Jan 8 12:39:03 1997 Jim Wilson <wilson@cygnus.com>
1724 * gencode.c (build_instruction): Use BigEndianCPU instead of
1727 Thu Jan 02 22:23:04 1997 Mark Alexander <marka@cygnus.com>
1729 * interp.c (sim_monitor): Make output to stdout visible in
1730 wingdb's I/O log window.
1732 Tue Dec 31 07:04:00 1996 Mark Alexander <marka@cygnus.com>
1734 * support.h: Undo previous change to SIGTRAP
1737 Mon Dec 30 17:36:06 1996 Ian Lance Taylor <ian@cygnus.com>
1739 * interp.c (store_word, load_word): New static functions.
1740 (mips16_entry): New static function.
1741 (SignalException): Look for mips16 entry and exit instructions.
1742 (simulate): Use the correct index when setting fpr_state after
1743 doing a pending move.
1745 Sun Dec 29 09:37:18 1996 Mark Alexander <marka@cygnus.com>
1747 * interp.c: Fix byte-swapping code throughout to work on
1748 both little- and big-endian hosts.
1750 Sun Dec 29 09:18:32 1996 Mark Alexander <marka@cygnus.com>
1752 * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
1753 with gdb/config/i386/xm-windows.h.
1755 Fri Dec 27 22:48:51 1996 Mark Alexander <marka@cygnus.com>
1757 * gencode.c (build_instruction): Work around MSVC++ code gen bug
1758 that messes up arithmetic shifts.
1760 Fri Dec 20 11:04:05 1996 Stu Grossman (grossman@critters.cygnus.com)
1762 * support.h: Use _WIN32 instead of __WIN32__. Also add defs for
1763 SIGTRAP and SIGQUIT for _WIN32.
1765 Thu Dec 19 14:07:27 1996 Ian Lance Taylor <ian@cygnus.com>
1767 * gencode.c (build_instruction) [MUL]: Cast operands to word64, to
1768 force a 64 bit multiplication.
1769 (build_instruction) [OR]: In mips16 mode, don't do anything if the
1770 destination register is 0, since that is the default mips16 nop
1773 Mon Dec 16 14:59:38 1996 Ian Lance Taylor <ian@cygnus.com>
1775 * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
1776 (build_endian_shift): Don't check proc64.
1777 (build_instruction): Always set memval to uword64. Cast op2 to
1778 uword64 when shifting it left in memory instructions. Always use
1779 the same code for stores--don't special case proc64.
1781 * gencode.c (build_mips16_operands): Fix base PC value for PC
1783 (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
1785 * interp.c (simJALDELAYSLOT): Define.
1786 (JALDELAYSLOT): Define.
1787 (INDELAYSLOT, INJALDELAYSLOT): Define.
1788 (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
1790 Tue Dec 24 22:11:20 1996 Angela Marie Thomas (angela@cygnus.com)
1792 * interp.c (sim_open): add flush_cache as a PMON routine
1793 (sim_monitor): handle flush_cache by ignoring it
1795 Wed Dec 11 13:53:51 1996 Jim Wilson <wilson@cygnus.com>
1797 * gencode.c (build_instruction): Use !ByteSwapMem instead of
1799 * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
1800 (BigEndianMem): Rename to ByteSwapMem and change sense.
1801 (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
1802 BigEndianMem references to !ByteSwapMem.
1803 (set_endianness): New function, with prototype.
1804 (sim_open): Call set_endianness.
1805 (sim_info): Use simBE instead of BigEndianMem.
1806 (xfer_direct_word, xfer_direct_long, swap_direct_word,
1807 swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
1808 xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
1809 ifdefs, keeping the prototype declaration.
1810 (swap_word): Rewrite correctly.
1811 (ColdReset): Delete references to CONFIG. Delete endianness related
1812 code; moved to set_endianness.
1814 Tue Dec 10 11:32:04 1996 Jim Wilson <wilson@cygnus.com>
1816 * gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
1817 * interp.c (CHECKHILO): Define away.
1818 (simSIGINT): New macro.
1819 (membank_size): Increase from 1MB to 2MB.
1820 (control_c): New function.
1821 (sim_resume): Rename parameter signal to signal_number. Add local
1822 variable prev. Call signal before and after simulate.
1823 (sim_stop_reason): Add simSIGINT support.
1824 (sim_warning, sim_error, dotrace, SignalException): Define as stdarg
1826 (sim_warning): Delete call to SignalException. Do call printf_filtered
1828 (AddressTranslation): Add #ifdef DEBUG around debugging message and
1829 a call to sim_warning.
1831 Wed Nov 27 11:53:50 1996 Ian Lance Taylor <ian@cygnus.com>
1833 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
1834 16 bit instructions.
1836 Tue Nov 26 11:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
1838 Add support for mips16 (16 bit MIPS implementation):
1839 * gencode.c (inst_type): Add mips16 instruction encoding types.
1840 (GETDATASIZEINSN): Define.
1841 (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add
1842 jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and
1844 (MIPS16_DECODE): New table, for mips16 instructions.
1845 (bitmap_val): New static function.
1846 (struct mips16_op): Define.
1847 (mips16_op_table): New table, for mips16 operands.
1848 (build_mips16_operands): New static function.
1849 (process_instructions): If PC is odd, decode a mips16
1850 instruction. Break out instruction handling into new
1851 build_instruction function.
1852 (build_instruction): New static function, broken out of
1853 process_instructions. Check modifiers rather than flags for SHIFT
1854 bit count and m[ft]{hi,lo} direction.
1855 (usage): Pass program name to fprintf.
1856 (main): Remove unused variable this_option_optind. Change
1857 ``*loptarg++'' to ``loptarg++''.
1858 (my_strtoul): Parenthesize && within ||.
1859 * interp.c (LoadMemory): Accept a halfword pAddr if vAddr is odd.
1860 (simulate): If PC is odd, fetch a 16 bit instruction, and
1861 increment PC by 2 rather than 4.
1862 * configure.in: Add case for mips16*-*-*.
1863 * configure: Rebuild.
1865 Fri Nov 22 08:49:36 1996 Mark Alexander <marka@cygnus.com>
1867 * interp.c: Allow -t to enable tracing in standalone simulator.
1868 Fix garbage output in trace file and error messages.
1870 Wed Nov 20 01:54:37 1996 Doug Evans <dje@canuck.cygnus.com>
1872 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
1873 (SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
1874 * configure.in: Simplify using macros in ../common/aclocal.m4.
1875 * configure: Regenerated.
1876 * tconfig.in: New file.
1878 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
1880 * interp.c: Fix bugs in 64-bit port.
1881 Use ansi function declarations for msvc compiler.
1882 Initialize and test file pointer in trace code.
1883 Prevent duplicate definition of LAST_EMED_REGNUM.
1885 Tue Oct 15 11:07:06 1996 Mark Alexander <marka@cygnus.com>
1887 * interp.c (xfer_big_long): Prevent unwanted sign extension.
1889 Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
1891 * interp.c (SignalException): Check for explicit terminating
1893 * gencode.c: Pass instruction value through SignalException()
1894 calls for Trap, Breakpoint and Syscall.
1896 Thu Sep 26 11:35:17 1996 James G. Smith <jsmith@cygnus.co.uk>
1898 * interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
1899 only used on those hosts that provide it.
1900 * configure.in: Add sqrt() to list of functions to be checked for.
1901 * config.in: Re-generated.
1902 * configure: Re-generated.
1904 Fri Sep 20 15:47:12 1996 Ian Lance Taylor <ian@cygnus.com>
1906 * gencode.c (process_instructions): Call build_endian_shift when
1907 expanding STORE RIGHT, to fix swr.
1908 * support.h (SIGNEXTEND): If the sign bit is not set, explicitly
1909 clear the high bits.
1910 * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
1911 Fix float to int conversions to produce signed values.
1913 Thu Sep 19 15:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
1915 * gencode.c (MIPS_DECODE): Set UNSIGNED for multu instruction.
1916 (process_instructions): Correct handling of nor instruction.
1917 Correct shift count for 32 bit shift instructions. Correct sign
1918 extension for arithmetic shifts to not shift the number of bits in
1919 the type. Fix 64 bit multiply high word calculation. Fix 32 bit
1920 unsigned multiply. Fix ldxc1 and friends to use coprocessor 1.
1922 * interp.c (CHECKHILO): Don't set HIACCESS, LOACCESS, or HLPC.
1923 It's OK to have a mult follow a mult. What's not OK is to have a
1924 mult follow an mfhi.
1925 (Convert): Comment out incorrect rounding code.
1927 Mon Sep 16 11:38:16 1996 James G. Smith <jsmith@cygnus.co.uk>
1929 * interp.c (sim_monitor): Improved monitor printf
1930 simulation. Tidied up simulator warnings, and added "--log" option
1931 for directing warning message output.
1932 * gencode.c: Use sim_warning() rather than WARNING macro.
1934 Thu Aug 22 15:03:12 1996 Ian Lance Taylor <ian@cygnus.com>
1936 * Makefile.in (gencode): Depend upon gencode.o, getopt.o, and
1937 getopt1.o, rather than on gencode.c. Link objects together.
1938 Don't link against -liberty.
1939 (gencode.o, getopt.o, getopt1.o): New targets.
1940 * gencode.c: Include <ctype.h> and "ansidecl.h".
1941 (AND): Undefine after including "ansidecl.h".
1942 (ULONG_MAX): Define if not defined.
1943 (OP_*): Don't define macros; now defined in opcode/mips.h.
1944 (main): Call my_strtoul rather than strtoul.
1945 (my_strtoul): New static function.
1947 Wed Jul 17 18:12:38 1996 Stu Grossman (grossman@critters.cygnus.com)
1949 * gencode.c (process_instructions): Generate word64 and uword64
1950 instead of `long long' and `unsigned long long' data types.
1951 * interp.c: #include sysdep.h to get signals, and define default
1953 * (Convert): Work around for Visual-C++ compiler bug with type
1955 * support.h: Make things compile under Visual-C++ by using
1956 __int64 instead of `long long'. Change many refs to long long
1957 into word64/uword64 typedefs.
1959 Wed Jun 26 12:24:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1961 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1962 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1964 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1965 (AC_PROG_INSTALL): Added.
1966 (AC_PROG_CC): Moved to before configure.host call.
1967 * configure: Rebuilt.
1969 Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
1971 * configure.in: Define @SIMCONF@ depending on mips target.
1972 * configure: Rebuild.
1973 * Makefile.in (run): Add @SIMCONF@ to control simulator
1975 * gencode.c: Change LOADDRMASK to 64bit memory model only.
1976 * interp.c: Remove some debugging, provide more detailed error
1977 messages, update memory accesses to use LOADDRMASK.
1979 Mon Jun 3 11:55:03 1996 Ian Lance Taylor <ian@cygnus.com>
1981 * configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
1982 AC_CHECK_LIB, and AC_CHECK_FUNCS. Change AC_OUTPUT to set
1984 * configure: Rebuild.
1985 * config.in: New file, generated by autoheader.
1986 * interp.c: Include "config.h". Include <stdlib.h>, <string.h>,
1987 and <strings.h> if they exist. Replace #ifdef sun with #ifdef
1988 HAVE_ANINT and HAVE_AINT, as appropriate.
1989 * Makefile.in (run): Use @LIBS@ rather than -lm.
1990 (interp.o): Depend upon config.h.
1991 (Makefile): Just rebuild Makefile.
1992 (clean): Remove stamp-h.
1993 (mostlyclean): Make the same as clean, not as distclean.
1994 (config.h, stamp-h): New targets.
1996 Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
1998 * interp.c (ColdReset): Fix boolean test. Make all simulator
2001 Wed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
2003 * interp.c (xfer_direct_word, xfer_direct_long,
2004 swap_direct_word, swap_direct_long, xfer_big_word,
2005 xfer_big_long, xfer_little_word, xfer_little_long,
2006 swap_word,swap_long): Added.
2007 * interp.c (ColdReset): Provide function indirection to
2008 host<->simulated_target transfer routines.
2009 * interp.c (sim_store_register, sim_fetch_register): Updated to
2010 make use of indirected transfer routines.
2012 Fri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
2014 * gencode.c (process_instructions): Ensure FP ABS instruction
2016 * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
2017 system call support.
2019 Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
2021 * interp.c (sim_do_command): Complain if callback structure not
2024 Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
2026 * interp.c (Convert): Provide round-to-nearest and round-to-zero
2027 support for Sun hosts.
2028 * Makefile.in (gencode): Ensure the host compiler and libraries
2029 used for cross-hosted build.
2031 Wed Mar 27 14:42:12 1996 James G. Smith <jsmith@cygnus.co.uk>
2033 * interp.c, gencode.c: Some more (TODO) tidying.
2035 Thu Mar 7 11:19:33 1996 James G. Smith <jsmith@cygnus.co.uk>
2037 * gencode.c, interp.c: Replaced explicit long long references with
2038 WORD64HI, WORD64LO, SET64HI and SET64LO macro calls.
2039 * support.h (SET64LO, SET64HI): Macros added.
2041 Wed Feb 21 12:16:21 1996 Ian Lance Taylor <ian@cygnus.com>
2043 * configure: Regenerate with autoconf 2.7.
2045 Tue Jan 30 08:48:18 1996 Fred Fish <fnf@cygnus.com>
2047 * interp.c (LoadMemory): Enclose text following #endif in /* */.
2048 * support.h: Remove superfluous "1" from #if.
2049 * support.h (CHECKSIM): Remove stray 'a' at end of line.
2051 Mon Dec 4 11:44:40 1995 Jamie Smith <jsmith@cygnus.com>
2053 * interp.c (StoreFPR): Control UndefinedResult() call on
2054 WARN_RESULT manifest.
2056 Fri Dec 1 16:37:19 1995 James G. Smith <jsmith@cygnus.co.uk>
2058 * gencode.c: Tidied instruction decoding, and added FP instruction
2061 * interp.c: Added dineroIII, and BSD profiling support. Also
2062 run-time FP handling.
2064 Sun Oct 22 00:57:18 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
2066 * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
2067 gencode.c, interp.c, support.h: created.