-Wed May 6 19:42:19 1998 Doug Evans <devans@canuck.cygnus.com>
+Mon Apr 10 00:07:09 2000 Andrew Cagney <cagney@b1.cygnus.com>
- * sim-main.h (INSN_NAME): New arg `cpu'.
+ * interp.c (decode_coproc): Output long using %lx and not %s.
+
+
+ * interp.c (sim_open): Sort & extend dummy memory regions for
+ --board=jmr3904 for eCos.
+
+
+ * configure: Regenerated.
+
+
+ * interp.c, mips.igen: all 5 DEADC0DE situations now have sim_io_eprintf
+ calls, conditional on the simulator being in verbose mode.
+
+
+ * sim-main.c (cache_op): Added case arm so that CACHE ops to a secondary
+ cache don't get ReservedInstruction traps.
+
+
+ * dv-tx3904sio.c (tx3904sio_io_write_buffer): Use write value as a mask
+ to clear status bits in sdisr register. This is how the hardware works.
+
+ * interp.c (sim_open): Added more memory aliases for jmr3904 hardware
+ being used by cygmon.
+
+
+ * interp.c (decode_coproc): Correctly handle DMFC0 and DMTC0
+ instructions.
+
+
+ * mips.igen (MULT): Correct previous mis-applied patch.
+
+
+ * mips.igen (delayslot32): Handle sequence like
+ mtc1 $at,$f12 ; jal fp_add ; mov.s $f13,$f12
+ correctly by calling ENGINE_ISSUE_PREFIX_HOOK() before issue.
+ (MULT): Actually pass the third register...
+
+
+ * interp.c (sim_open): Added more memory aliases for additional
+ hardware being touched by cygmon on jmr3904 board.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * interp.c (sim_store_register): Handle case where client - GDB -
+ specifies that a 4 byte register is 8 bytes in size.
+ (sim_fetch_register): Ditto.
+
+
+ Implement "sim firmware" option, inspired by jimb's version of 1998-01.
+ * interp.c (firmware_option_p): New global flag: "sim firmware" given.
+ (idt_monitor_base): Base address for IDT monitor traps.
+ (pmon_monitor_base): Ditto for PMON.
+ (lsipmon_monitor_base): Ditto for LSI PMON.
+ (MONITOR_BASE, MONITOR_SIZE): Removed macros.
+ (mips_option): Add "firmware" option with new OPTION_FIRMWARE key.
+ (sim_firmware_command): New function.
+ (mips_option_handler): Call it for OPTION_FIRMWARE.
+ (sim_open): Allocate memory for idt_monitor region. If "--board"
+ option was given, add no monitor by default. Add BREAK hooks only if
+ monitors are also there.
+
+
+ * interp.c (sim_monitor): Flush output before reading input.
+
+
+ * tconfig.in (SIM_HANDLES_LMA): Always define.
+
+
+ * interp.c (BOARD_BSP): Define. Add to list of possible boards.
+ (sim_open): Add setup for BSP board.
+
+
+ * mips.igen (MULT, MULTU): Add syntax for two operand version.
+ (DMFC0, DMTC0): Recognize. Call DecodeCoproc which will report
+ them as unimplemented.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * mips.igen (bc0f): For the TX39 only, decode this as a no-op stub.
+
+
+ * configure.in: Any mips64vr5*-*-* target should have
+ -DTARGET_ENABLE_FR=1.
+ (default_endian): Any mips64vr*el-*-* target should default to
+ LITTLE_ENDIAN.
+ * configure: Re-generate.
+
+
+ * mips.igen (ldl): Extend from _16_, not 32.
+
+
+ * interp.c (sim_store_register): Force registers written to by GDB
+ into an un-interpreted state.
+
+
+ * dv-tx3904sio.c (tx3904sio_tickle): After a polled I/O from the
+ CPU, start periodic background I/O polls.
+ (tx3904sio_poll): New function: periodic I/O poller.
+
+
+ * mips.igen (BREAK): Call signal_exception instead of sim_engine_halt.
+
+
+ * configure.in, configure (mips64vr5*-*-*): Added missing ;; in
+ case statement.
+
+
+ * interp.c (sim_open): Allocate jm3904 memory in smaller chunks.
+ (load_word): Call SIM_CORE_SIGNAL hook on error.
+ (signal_exception): Call SIM_CPU_EXCEPTION_TRIGGER hook before
+ starting. For exception dispatching, pass PC instead of NULL_CIA.
+ (decode_coproc): Use COP0_BADVADDR to store faulting address.
+ * sim-main.h (COP0_BADVADDR): Define.
+ (SIM_CORE_SIGNAL): Define hook to call mips_core_signal.
+ (SIM_CPU_EXCEPTION*): Define hooks to call mips_cpu_exception*().
+ (_sim_cpu): Add exc_* fields to store register value snapshots.
+ * mips.igen (*): Replace memory-related SignalException* calls
+ with references to SIM_CORE_SIGNAL hook.
+
+ * dv-tx3904irc.c (tx3904irc_port_event): printf format warning
+ fix.
+ * sim-main.c (*): Minor warning cleanups.
+
+
+ * m16.igen (DADDIU5): Correct type-o.
+
+Mon Dec 21 10:34:48 1998 Andrew Cagney <cagney@chook>
+
+ * mips.igen (do_ddiv, do_ddivu): Pacify GCC. Update hi/lo via tmp
+ variables.
+
+Wed Dec 16 18:20:28 1998 Andrew Cagney <cagney@chook>
+
+ * Makefile.in (SIM_EXTRA_CFLAGS): No longer need to add .../newlib
+ to include path.
+ (interp.o): Add dependency on itable.h
+ (oengine.c, gencode): Delete remaining references.
+ (BUILT_SRC_FROM_GEN): Clean up.
+
+
+ * vr4run.c: New.
+ * Makefile.in (SIM_HACK_OBJ,HACK_OBJS,HACK_GEN_SRCS,libhack.a,
+ tmp-hack,tmp-m32-hack,tmp-m16-hack,tmp-itable-hack,
+ tmp-run-hack) : New.
+ * m16.igen (LD,DADDIU,DADDUI5,DADJSP,DADDIUSP,DADDI,DADDU,DSUBU,
+ DSLL,DSRL,DSRA,DSLLV,DSRAV,DMULT,DMULTU,DDIV,DDIVU,JALX32,JALX):
+ Drop the "64" qualifier to get the HACK generator working.
+ Use IMMEDIATE rather than IMMED. Use SHAMT rather than SHIFT.
+ * mips.igen (do_daddiu,do_ddiv,do_divu): Remove the 64-only
+ qualifier to get the hack generator working.
+ (do_dsll,do_dsllv,do_dsra,do_dsrl,do_dsrlv): New.
+ (DSLL): Use do_dsll.
+ (DSLLV): Use do_dsllv.
+ (DSRA): Use do_dsra.
+ (DSRL): Use do_dsrl.
+ (DSRLV): Use do_dsrlv.
+ (BC1): Move *vr4100 to get the HACK generator working.
+ (CxC1, DMxC1, MxC1,MACCU,MACCHI,MACCHIU): Rename to
+ get the HACK generator working.
+ (MACC) Rename to get the HACK generator working.
+ (DMACC,MACCS,DMACCS): Add the 64.
+
+
+ * mips.igen (BC1): Renamed to BC1a and BC1b to avoid conflicts.
+ * sim-main.h (SizeFGR): Handle TARGET_ENABLE_FR.
+
+
+ * mips/interp.c (DEBUG): Cleanups.
+
+
+ * dv-tx3904sio.c (tx3904sio_io_read_buffer): Endianness fixes.
+ (tx3904sio_tickle): fflush after a stdout character output.
+
+
+ * interp.c (sim_close): Uninstall modules.
+
+
+ * sim-main.h, interp.c (sim_monitor): Change to global
+ function.
+
+
+ * configure.in (vr4100): Only include vr4100 instructions in
+ simulator.
+ * configure: Re-generate.
+ * m16.igen (*): Tag all mips16 instructions as also being vr4100.
+
+
+ * Makefile.in (SIM_CFLAGS): Do not define WITH_IGEN.
+ * sim-main.h, sim-main.c, interp.c: Delete #if WITH_IGEN keeping
+ true alternative.
+
+ * configure.in (sim_default_gen, sim_use_gen): Replace with
+ sim_gen.
+ (--enable-sim-igen): Delete config option. Always using IGEN.
+ * configure: Re-generate.
+
+ * Makefile.in (gencode): Kill, kill, kill.
+ * gencode.c: Ditto.
+
+
+ * configure.in: Configure mips64vr4100-elf nee mips64vr41* as a 64
+ bit mips16 igen simulator.
+ * configure: Re-generate.
+
+ * mips.igen (check_div_hilo, check_mult_hilo, check_mf_hilo): Mark
+ as part of vr4100 ISA.
+ * vr.igen: Mark all instructions as 64 bit only.
+
+
+ * interp.c (get_cell, sim_monitor, fetch_str, CoProcPresent):
+ Pacify GCC.
+
+
+ * configure.in: Configure mips-lsi-elf nee mips*lsi* as a
+ mipsIII/mips16 igen simulator. Fix sim_gen VS sim_igen typos.
+ * configure: Re-generate.
+
+ * m16.igen (BREAK): Define breakpoint instruction.
+ (JALX32): Mark instruction as mips16 and not r3900.
+ * mips.igen (C.cond.fmt): Fix typo in instruction format.
+
+ * sim-main.h (PENDING_FILL): Wrap C statements in do/while.
+
+
+ * gencode.c (build_instruction - BREAK): For MIPS16, handle BREAK
+ insn as a debug breakpoint.
+
+ * sim-main.h (PENDING_SLOT_BIT): Fix, was incorrectly defined as
+ pending.slot_size.
+ (PENDING_SCHED): Clean up trace statement.
+ (PENDING_SCHED): Increment PENDING_IN and PENDING_TOTAL.
+ (PENDING_FILL): Delay write by only one cycle.
+ (PENDING_FILL): For FSRs, write fmt_uninterpreted to FPR_STATE.
+
+ * sim-main.c (pending_tick): Clean up trace statements. Add trace
+ of pending writes.
+ (pending_tick): Fix sizes in switch statements, 4 & 8 instead of
+ 32 & 64.
+ (pending_tick): Move incrementing of index to FOR statement.
+ (pending_tick): Only update PENDING_OUT after a write has occured.
+
+ * configure.in: Add explicit mips-lsi-* target. Use gencode to
+ build simulator.
+ * configure: Re-generate.
+
+ * interp.c (sim_engine_run OLD): Delete explicit call to
+ PENDING_TICK. Now called via ENGINE_ISSUE_PREFIX_HOOK.
+
+
+ * dv-tx3904cpu.c (deliver_tx3904cpu_interrupt): Add dummy
+ interrupt level number to match changed SignalExceptionInterrupt
+ macro.
+
+
+ * interp.c: #include "itable.h" if WITH_IGEN.
+ (get_insn_name): New function.
+ (sim_open): Initialize CPU_INSN_NAME,CPU_MAX_INSNS.
+ * sim-main.h (MAX_INSNS,INSN_NAME): Delete.
+
+
+ * configure: Rebuilt to inhale new common/aclocal.m4.
+
+
+ * dv-tx3904sio.c: Include sim-assert.h.
+
+
+ * dv-tx3904sio.c: New file: tx3904 serial I/O module.
+ * configure.in: Add dv-tx3904sio, dv-sockser for tx39 target.
+ Reorganize target-specific sim-hardware checks.
+ * configure: rebuilt.
+ * interp.c (sim_open): For tx39 target boards, set
+ OPERATING_ENVIRONMENT, add tx3904sio devices.
+ * tconfig.in: For tx39 target, set SIM_HANDLES_LMA for loading
+ ROM executables. Install dv-sockser into sim-modules list.
+
+ * dv-tx3904irc.c: Compiler warning clean-up.
+ * dv-tx3904tmr.c: Compiler warning clean-up. Remove particularly
+ frequent hw-trace messages.
+
+
+ * vr.igen (MulAcc): Identify as a vr4100 specific function.
+
+
+ * Makefile.in (IGEN_INCLUDE): Add vr.igen.
+
+ * vr.igen: New file.
+ (MAC/MADD16, DMAC/DMADD16): Implement using code from gencode.c.
+ * mips.igen: Define vr4100 model. Include vr.igen.
+
+ * mips.igen (check_mf_hilo): Correct check.
+
+
+ * sim-main.h (interrupt_event): Add prototype.
+
+ * dv-tx3904tmr.c (tx3904tmr_io_write_buffer): Delete unused
+ register_ptr, register_value.
+ (deliver_tx3904tmr_tick): Fix types passed to printf fmt.
+
+ * sim-main.h (tracefh): Make extern.
+
+
+ * dv-tx3904tmr.c: Deschedule timer event after dispatching.
+ Reduce unnecessarily high timer event frequency.
+ * dv-tx3904cpu.c: Ditto for interrupt event.
+
+
+ * interp.c (decode_coproc): For TX39, add stub COP0 register #7,
+ to allay warnings.
+ (interrupt_event): Made non-static.
+
+ * dv-tx3904tmr.c (deliver_tx3904tmr_tick): Correct accidental
+ interchange of configuration values for external vs. internal
+ clock dividers.
+
+
+ * mips.igen (BREAK): Moved code to here for
+ simulator-reserved break instructions.
+ * gencode.c (build_instruction): Ditto.
+ * interp.c (signal_exception): Code moved from here. Non-
+ reserved instructions now use exception vector, rather
+ than halting sim.
+ * sim-main.h: Moved magic constants to here.
+
+
+ * dv-tx3904cpu.c (deliver_*_interrupt,*_port_event): Set the CAUSE
+ register upon non-zero interrupt event level, clear upon zero
+ event value.
+ * dv-tx3904irc.c (*_port_event): Handle deactivated interrupt signal
+ by passing zero event value.
+ (*_io_{read,write}_buffer): Endianness fixes.
+ * dv-tx3904tmr.c (*_io_{read,write}_buffer): Endianness fixes.
+ (deliver_*_tick): Reduce sim event interval to 75% of count interval.
+
+ * interp.c (sim_open): Added jmr3904pal board type that adds PAL-based
+ serial I/O and timer module at base address 0xFFFF0000.
+
+
+ * mips.igen (SWC1) : Correct the handling of ReverseEndian
+ and BigEndianCPU.
+
+
+ * configure.in (mips_fpu_bitsize) : Set this correctly for 32-bit mips
+ parts.
+ * configure: Update.
+
+
+ * dv-tx3904tmr.c: New file - implements tx3904 timer.
+ * dv-tx3904{irc,cpu}.c: Mild reformatting.
+ * configure.in: Include tx3904tmr in hw_device list.
+ * configure: Rebuilt.
+ * interp.c (sim_open): Instantiate three timer instances.
+ Fix address typo of tx3904irc instance.
+
+
+ * interp.c (signal_exception): SystemCall exception now uses
+ the exception vector.
+
+
+ * interp.c (decode_coproc): For TX39, add stub COP0 register #3,
+ to allay warnings.
+
+
+ * configure.in (sim_igen_filter): Match mips*tx39 not mipst*tx39.
-start-sanitize-sky
- * sky-libvpe.c (FMAdd, FMSub): Replace r59fp_op3 call with
- r59fp_mula.
+ * dv-tx3904cpu.c, dv-tx3904irc.c: Rename *_callback to *_method.
-end-sanitize-sky
-start-sanitize-r5900
+ * dv-tx3904cpu.c, dv-tx3904irc.c: Include hw-main.h and
+ sim-main.h. Declare a struct hw_descriptor instead of struct
+ hw_device_descriptor.
- * sim-main.h (R5900_FP_MAX, R5900_FP_MIN): Define.
- * r5900.igen (r59fp_overflow): Use.
- * r5900.igen (r59fp_op3): Rename to
- (r59fp_mula): This, delete opm argument.
- (MADD.S, MADDA.S, MSUB.S, MSUBS.S): Update.
- (r59fp_mula): Overflowing product propogates through to result.
- (r59fp_mula): ACC to the MAX propogates to result.
- (r59fp_mula): Underflow during multiply only sets SU.
+ * mips.igen (do_store_left, do_load_left): Compute nr of left and
+ right bits and then re-align left hand bytes to correct byte
+ lanes. Fix incorrect computation in do_store_left when loading
+ bytes from second word.
+
+
+ * configure.in (SIM_AC_OPTION_HARDWARE): Only enable when tx3904.
+ * interp.c (sim_open): Only create a device tree when HW is
+ enabled.
+
+ * dv-tx3904irc.c (tx3904irc_finish): Pacify GCC.
+ * interp.c (signal_exception): Ditto.
+
+
+ * gencode.c: Mark BEGEZALL as LIKELY.
+
+
+ * sim-main.h (ALU32_END): Sign extend 32 bit results.
+ * mips.igen (ADD, SUB, ADDI, DADD, DSUB): Trace.
+
+
+ * configure.in (SIM_AC_OPTION_HARDWARE): Added common hardware
+ modules. Recognize TX39 target with "mips*tx39" pattern.
+ * configure: Rebuilt.
+ * sim-main.h (*): Added many macros defining bits in
+ TX39 control registers.
+ (SignalInterrupt): Send actual PC instead of NULL.
+ (SignalNMIReset): New exception type.
+ * interp.c (board): New variable for future use to identify
+ a particular board being simulated.
+ (mips_option_handler,mips_options): Added "--board" option.
+ (interrupt_event): Send actual PC.
+ (sim_open): Make memory layout conditional on board setting.
+ (signal_exception): Initial implementation of hardware interrupt
+ handling. Accept another break instruction variant for simulator
+ exit.
+ (decode_coproc): Implement RFE instruction for TX39.
+ (mips.igen): Decode RFE instruction as such.
+ * configure.in (tx3904cpu,tx3904irc): Added devices for tx3904.
+ * interp.c: Define "jmr3904" and "jmr3904debug" board types and
+ bbegin to implement memory map.
+ * dv-tx3904cpu.c: New file.
+ * dv-tx3904irc.c: New file.
+
+
+ * mips.igen (check_mt_hilo): Create a separate r3900 version.
+
+
+ * tx.igen (madd,maddu): Replace calls to check_op_hilo
+ with calls to check_div_hilo.
+
+
+ * mips/mips.igen (check_op_hilo,check_mult_hilo,check_div_hilo):
+ Replace check_op_hilo with check_mult_hilo and check_div_hilo.
+ Add special r3900 version of do_mult_hilo.
+ (do_dmultx,do_mult,do_multu): Replace calls to check_op_hilo
+ with calls to check_mult_hilo.
+ (do_ddiv,do_ddivu,do_div,do_divu): Replace calls to check_op_hilo
+ with calls to check_div_hilo.
+
+
+ * configure.in (SUBTARGET_R3900): Define for mipstx39 target.
+ Document a replacement.
+
+
+ * interp.c (sim_monitor): Make mon_printf work.
+
+
+ * sim-main.h (INSN_NAME): New arg `cpu'.
-end-sanitize-r5900
* configure: Regenerated to track ../common/aclocal.m4 changes.
(struct _sim_cpu): Make hiaccess and loaccess of type hilo_access.
(HIACCESS, LOACCESS): Delete, replace with
(HIHISTORY, LOHISTORY): New macros.
- (start-sanitize-r5900):
- (struct sim_5900_cpu): Make hi1access, lo1access of type
- hilo_access.
- (HI1ACCESS, LO1ACCESS): Delete, replace with
- (HI1HISTORY, LO1HISTORY): New macros.
- (end-sanitize-r5900):
(CHECKHILO): Delete all, moved to mips.igen
* gencode.c (build_instruction): Do not generate checks for
do_divu, domultx, do_mult, do_multu): Use.
* tx.igen ("madd", "maddu"): Use.
- (start-sanitize-r5900):
-
- r5900.igen: Update all HI/LO checks.
- ("mfhi1", "mflo1", "mthi1", "mthi1", "pmfhi", "pmflo", "pmfhl",
- "pmthi", "pmtlo", "mpthl"): Check MF/MT HI/LO.
- ("mult1", "div1", "divu1", "multu1", "madd1", "maddu1", "pdivbw",
- "pdivuw", "pdivw", "phmaddh", "phmsubh", "pmaddh", "madduw",
- "pmaddw", "pmsubh", "pmsubw", "pmulth", "pmultuw", "pmultw"):
- Check HI/LO op.
- (end-sanitize-r5900):
-
-start-sanitize-sky
-
- * interp.c (decode_coproc): Correct CMFC2/QMTC2
- GPR access.
-
- * r5900.igen (LQ,SQ): Use a pair of 64-bit accesses
- instead of a single 128-bit access.
-
-end-sanitize-sky
-start-sanitize-sky
-
- * r5900.igen (COP_[LS]Q): Transfer COP2 quadwords.
- * interp.c (cop_[ls]q): Fixes corresponding to above.
-
-end-sanitize-sky
-start-sanitize-sky
-
- * interp.c (decode_coproc): Adapt COP2 micro interlock to
- clarified specs. Reset "M" bit; exit also on "E" bit.
-
-end-sanitize-sky
-start-sanitize-r5900
-
- * r5900.igen (CFC1, CTC1): Implement R5900 specific version.
- * mips.igen (CFC1, CTC1): R5900 des not use generic version.
-
- * r5900.igen (r59fp_unpack): New function.
- (r59fp_op1, r59fp_op2, r59fp_op3, C.cond.S, CVT.S.W, DIV.S,
- RSQRT.S, SQRT.S): Use.
- (r59fp_zero): New function.
- (r59fp_overflow): Generate r5900 specific overflow value.
- (r59fp_store): Re-write, overflow to MAX_R5900_FP value, underflow
- to zero.
- (CVT.S.W, CVT.W.S): Exchange implementations.
-
- * sim-main.h (R5900_EXPMAX, R5900_EXPMIN, R5900_EXPBIAS): Defile.
-
-end-sanitize-r5900
-start-sanitize-tx19
-
- * configure.in (tx19, sim_use_gen): Switch to igen.
- * configure: Re-build.
-end-sanitize-tx19
-start-sanitize-sky
-
- * interp.c (decode_coproc): Make COP2 branch code compile after
- igen signature changes.
-
-end-sanitize-sky
* mips.igen (DSRAV): Use function do_dsrav.
* m16run.c (sim_engine_run): Restore CIA after handling an event.
-start-sanitize-tx19
- * mips.igen (mtc0): Valid tx19 instruction.
-
-end-sanitize-tx19
* sim-main.h (DELAY_SLOT, NULLIFY_NEXT_INSTRUCTION): For IGEN, use
functions.
* sim-main.h (RAIDX, T8IDX, T8, SPIDX): Define.
(IMEM16): Drop NR argument from macro.
-start-sanitize-sky
-
- * interp.c (decode_coproc): Add proper 1000000 bit-string at top
- of VU lower instruction.
-
-end-sanitize-sky
-start-sanitize-sky
-
- * r5900.igen (LQC,SQC): Adapted code to DOUBLEWORD accesses
- instead of QUADWORD.
-
- * sim-main.h: Removed attempt at allowing 128-bit access.
-
-end-sanitize-sky
-start-sanitize-sky
-
- * Makefile.in (SIM_SKY_OBJS): Added sky-vudis.o.
-
- * interp.c (decode_coproc): Refer to VU CIA as a "special"
- register, not as a "misc" register. Aha. Add activity
- assertions after VCALLMS* instructions.
-
-end-sanitize-sky
-start-sanitize-sky
-
- * interp.c (decode_coproc): Do not apply superfluous E (end) flag
- to upper code of generated VU instruction.
-
-end-sanitize-sky
-start-sanitize-sky
-
- * interp.c (cop_[ls]q): Replaced stub with proper COP2 code.
-
- * sim-main.h (LOADADDRMASK): Redefine to allow 128-bit accesses
- for TARGET_SKY.
-
- * r5900.igen (SQC2): Thinko.
-
-end-sanitize-sky
-start-sanitize-sky
-
- * interp.c (*): Adapt code to merged VU device & state structs.
- (decode_coproc): Execute COP2 each macroinstruction without
- pipelining, by stepping VU to completion state. Adapted to
- read_vu_*_reg style of register access.
-
- * mips.igen ([SL]QC2): Removed these COP2 instructions.
-
- * r5900.igen ([SL]QC2): Transplanted these COP2 instructions here.
-
- * sim-main.h (cop_[ls]q): Enclosed in TARGET_SKY guards.
-
-end-sanitize-sky
* Makefile.in (SIM_OBJS): Add sim-main.o.
* mips.igen (r3900): r3900 does not support 64 bit integer
operations.
-start-sanitize-sky
-
- * mips.igen (SQC2/LQC2): Make bodies sky-target-only also.
-
-end-sanitize-sky
-start-sanitize-sky
-
- * interp.c (decode_coproc): Continuing COP2 work.
- (cop_[ls]q): Make sky-target-only.
-
- * sim-main.h (COP_[LS]Q): Make sky-target-only.
-end-sanitize-sky
* configure.in (mipstx39*-*-*): Use gencode simulator rather
than igen one.
* configure : Rebuild.
-start-sanitize-sky
-
- * interp.c (decode_coproc): Added a missing TARGET_SKY check
- around COP2 implementation skeleton.
-
-end-sanitize-sky
-start-sanitize-sky
-
- * Makefile.in (SIM_SKY_OBJS): Replaced sky-vu[01].o with sky-vu.o.
-
- * interp.c (sim_{load,store}_register): Use new vu[01]_device
- static to access VU registers.
- (decode_coproc): Added skeleton of sky COP2 (VU) instruction
- decoding. Work in progress.
-
- * mips.igen (LDCzz, SDCzz): Removed *5900 case for this
- overlapping/redundant bit pattern.
- (LQC2, SQC2): Added *5900 COP2 instruction skeleta. Work in
- progress.
-
- * sim-main.h (status_CU[012]): Added COP[n]-enabled flags for
- status register.
-
- * interp.c (cop_lq, cop_sq): New functions for future 128-bit
- access to coprocessor registers.
-
- * sim-main.h (COP_LQ, COP_SQ): New macro front-ends for above.
-end-sanitize-sky
* configure: Regenerated to track ../common/aclocal.m4 changes.
* interp.c (Max, Min): Comment out functions. Not yet used.
-start-sanitize-vr4320
-
- * vr4320.igen (DCLZ): Pacify GCC, 64 bit arg, int format.
-
-end-sanitize-vr4320
* configure: Regenerated to track ../common/aclocal.m4 changes.
* Makefile.in (MIPS_EXTRA_LIBS, SIM_EXTRA_LIBS): Added
configurable settings for stand-alone simulator.
-start-sanitize-sky
- * configure.in: Added --with-sim-gpu2 option to specify path of
- sky GPU2 library. Triggers -DSKY_GPU2 for sky-gpuif.c, and
- links/compiles stand-alone simulator with this library.
-
- * interp.c (MEM_SIZE): Increased default sky memory size to 16MB.
-end-sanitize-sky
* configure.in: Added X11 search, just in case.
* configure: Regenerated.
* interp.c (sim_write, sim_read, load_memory, store_memory):
Replace sim_core_*_map with read_map, write_map, exec_map resp.
-start-sanitize-vr4320
-
- * vr4320.igen (clz,dclz) : Added.
- (dmac): Replaced 99, with LO.
-
-end-sanitize-vr4320
-start-sanitize-vr5400
-
- * mdmx.igen (SHFL.REPA.fmt, SHFL.REPB.fmt): Fix bit fields.
-
-end-sanitize-vr5400
-start-sanitize-vr4320
-
- * vr4320.igen: New file.
- * Makefile.in (vr4320.igen) : Added.
- * configure.in (mips64vr4320-*-*): Added.
- * configure : Rebuilt.
- * mips.igen : Correct the bfd-names in the mips-ISA model entries.
- Add the vr4320 model entry and mark the vr4320 insn as necessary.
-
-end-sanitize-vr4320
* sim-main.h (GETFCC): Return an unsigned value.
-start-sanitize-r5900
- * r5900.igen: Use an unsigned array index variable `i'.
- (QFSRV): Ditto for variable bytes.
-
-end-sanitize-r5900
* mips.igen (DIV): Fix check for -1 / MIN_INT.
(DADD): Result destination is RD not RT.
-start-sanitize-r5900
- * r5900.igen (DIV1): Fix check for -1 / MIN_INT.
- (DIVU1): Don't check for MIN_INT / -1 as performing unsigned
- divide.
-
-end-sanitize-r5900
* sim-main.h (HIACCESS, LOACCESS): Always define.
* mips.igen (CxC1): Add tracing.
-start-sanitize-r5900
-
- * r5900.igen (StoreFP): Delete.
- (r59fp_store, r59fp_overflow, r59fp_op1, r59fp_op2, r59fp_op3):
- New functions.
- (rsqrt.s, sqrt.s): Implement.
- (r59cond): New function.
- (C.COND.S): Call r59cond in assembler line.
- (cvt.w.s, cvt.s.w): Implement.
-
- * mips.igen (rsqrt.fmt, sqrt.fmt, cvt.*.*): Remove from r5900
- instruction set.
-
- * sim-main.h: Define an enum of r5900 FCSR bit fields.
-
-end-sanitize-r5900
-start-sanitize-r5900
-
- * r5900.igen: Add tracing to all p* instructions.
-
-
- * interp.c (sim_store_register, sim_fetch_register): Pull swifty
- to get gdb talking to re-aranged sim_cpu register structure.
-
-end-sanitize-r5900
* sim-main.h (Max, Min): Declare.
* mips.igen (BC1): Add tracing.
-start-sanitize-vr5400
-
- * mdmx.igen: Tag all functions as requiring either with mdmx or
- vr5400 processor.
-
-end-sanitize-vr5400
-start-sanitize-r5900
-
- * configure.in (SIM_AC_OPTION_FLOAT): For r5900, set FP bit size
- to 32.
- (SIM_AC_OPTION_BITSIZE): For r5900, set nr address bits to 32.
-
- * mips.igen (C.cond.fmt, ..): Not part of r5900 insn set.
-
- * r5900.igen: Rewrite.
-
- * sim-main.h: Move r5900 registers to a separate _sim_r5900_cpu
- struct.
- (GPR_SB, GPR_SH, GPR_SW, GPR_SD, GPR_UB, GPR_UH, GPR_UW, GPR_UD):
- Define in terms of GPR/GPR1 instead of REGISTERS/REGISTERS.1
-
-end-sanitize-r5900
* interp.c Added memory map for stack in vr4100
* Makefile.in (SIM_NO_ALL): Define.
(tmp-m16): Generate both 16 bit and 32 bit simulator engines.
-start-sanitize-tx19
- * m16.igen: Mark all mips16 insns as being part of the tx19 insn
- set.
-
-end-sanitize-tx19
* configure.in (mips_fpu_bitsize): For tx39, restrict floating
* configure: Regenerated to track ../common/aclocal.m4 changes.
-start-sanitize-vr5400
- * mdmx.igen: Mark all instructions as 64bit/fp specific.
-
-end-sanitize-vr5400
* interp.c (ColdReset): Call PENDING_INVALIDATE.
address_translation): Ditto
(decode_coproc, cop_lw, cop_ld, cop_sw, cop_sd): Ditto.
-start-sanitize-vr5400
- * mdmx.igen (get_scale): Pass CPU_ to semantic_illegal instead of
- `sd'.
- (ByteAlign): Use StoreFPR, pass args in correct order.
-
-end-sanitize-vr5400
-start-sanitize-r5900
-
- * configure.in (sim_igen_filter): For r5900, configure as SMP.
-
-end-sanitize-r5900
* configure: Regenerated to track ../common/aclocal.m4 changes.
-start-sanitize-r5900
- * configure.in (sim_igen_filter): For r5900, use igen.
- * configure: Re-generate.
-
-end-sanitize-r5900
* interp.c (sim_engine_run): Add `nr_cpus' argument.
* mips.igen (model): Map processor names onto BFD name.
* configure: Regenerated to track ../common/aclocal.m4 changes.
* config.in: Ditto.
-start-sanitize-vr5400
-
- * vr5400.igen (Low32Bits, High32Bits): Sign extend extracted 32
- bit values.
-
-end-sanitize-vr5400
-start-sanitize-vr5400
-
- * configure.in (sim_igen_filter): Multi-sim vr5000 - vr5000 or
- vr5400 with the vr5000 as the default.
-
-end-sanitize-vr5400
* mips.igen (MSUB): Fix to work like MADD.
* gencode.c (MSUB): Similarly.
-start-sanitize-vr5400
-
- * configure.in (sim_igen_filter): Multi-sim vr5400 - vr5000 or
- vr5400.
-
-end-sanitize-vr5400
* configure: Regenerated to track ../common/aclocal.m4 changes.
* mips.igen (LWC1): Correct assembler - lwc1 not swc1.
-start-sanitize-vr5400
- * mdmx.igen (value_vr): Correct sim_io_eprintf format argument.
- (value_cc, store_cc): Implement.
-
- * sim-main.h: Add 8*3*8 bit accumulator.
-
- * vr5400.igen: Move mdmx instructins from here
- * mdmx.igen: To here - new file. Add/fix missing instructions.
- * mips.igen: Include mdmx.igen.
- * Makefile.in (IGEN_INCLUDE): Add mdmx.igen.
-
-end-sanitize-vr5400
* sim-main.h (sim-fpu.h): Include.
* mips.igen: Delay slot branches add OFFSET to NIA not CIA.
(MFC0, MTC0, SWC1, LWC1, SDC1, LDC1): Implement.
- (start-sanitize-r5900):
- (LWXC1, SWXC1): Delete from r5900 instruction set.
- (end-sanitize-r5900):
(MTC1, MFC1, DMTC1, DMFC1, CFC1, CTC1): Implement separate non
PENDING_FILL versions of instructions. Simplify.
(X): New function.
* sim-main.h (IPC): Delete.
- start-sanitize-vr5400
- * vr5400.igen (vr): Add missing cia argument to value_fpr.
- (do_select): Rename function select.
- end-sanitize-vr5400
* interp.c (signal_exception, store_word, load_word,
address_translation, load_memory, store_memory, cache_op,
* interp.c (address_translation): Delete parameter HOST.
-start-sanitize-tx49
-
- * gencode.c: Add tx49 configury and insns.
- * configure.in: Add tx49 configury.
- * configure: Update.
-
-end-sanitize-tx49
* mips.igen:
igen. Replace with configuration variables sim_igen_flags /
sim_m16_flags.
- start-sanitize-r5900
- * r5900.igen: New file. Copy r5900 insns here.
- end-sanitize-r5900
- start-sanitize-vr5400
- * vr5400.igen: New file.
- end-sanitize-vr5400
* m16.igen: New file. Copy mips16 insns here.
* mips.igen: From here.
- start-sanitize-vr5400
- * mips.igen: Tag all mipsIV instructions with vr5400 model.
-
- * configure.in: Add mips64vr5400 target.
- * configure: Re-generate.
-
- end-sanitize-vr5400
* Makefile.in (SIM_NO_OBJ): Define, move SIM_M16_OBJ, SIM_IGEN_OBJ
to top.
(tmp-igen, tmp-m16): Pass -I srcdir to igen.
-start-sanitize-r5900
- * sim-main.h (BYTES_IN_MMI_REGS, ..., SUB_REG_FETCH, ..., GPR_SB,
- ...): Move to sim-main.h
-
-end-sanitize-r5900
* interp.c (sync_operation): Rename from SyncOperation, make
global, add SD argument.
(prefetch): Rename from Prefetch, make global, add SD argument.
* configure: Regenerated to track ../common/aclocal.m4 changes.
-start-sanitize-r5900
-
- * interp.c (MAX_REG): Allow up-to 128 registers.
- (LO1, HI1): Define value that matches REGISTER_NAMES in gdb.
- (REGISTER_SA): Ditto.
- (sim_open): Initialize register_widths for r5900 specific
- registers.
- (sim_fetch_register, sim_store_register): Check for request of
- r5900 specific SA register. Check for request for hi 64 bits of
- r5900 specific registers.
-
-end-sanitize-r5900
* configure: Regenerated.
* gencode.c: Add r3900 (tx39).
-start-sanitize-tx19
- * gencode.c: Fix some configuration problems by improving
- the relationship between tx19 and tx39.
-end-sanitize-tx19
constants.
(build_instruction): Ditto for LL.
-start-sanitize-tx19
-
- * mips/configure.in, mips/gencode: Add tx19/r1900.
-
-end-sanitize-tx19
Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
* configure: Regenerated to track ../common/aclocal.m4 changes.
-start-sanitize-r5900
-
- * gencode.c (build_instruction): For "pabsw" and "pabsh", check
- for overflow due to ABS of MININT, set result to MAXINT.
- (build_instruction): For "psrlvw", signextend bit 31.
-
-end-sanitize-r5900
* configure: Regenerated to track ../common/aclocal.m4 changes.
(sim_load): Move call to sim_config from here.
(sim_open): To here. Check return status.
-start-sanitize-r5900
- * gencode.c (build_instruction): Do not define x8000000000000000,
- x7FFFFFFFFFFFFFFF, or xFFFFFFFF80000000.
-
-end-sanitize-r5900
-start-sanitize-r5900
-
- * gencode.c (build_instruction): For "pdivw", "pdivbw" and
- "pdivuw" check for overflow due to signed divide by -1.
-
-end-sanitize-r5900
* gencode.c (build_instruction): Two arg MADD should
not assign result to $0.
-start-sanitize-r5900
-
- * gencode.c (build_instruction): For "ppac5" use unsigned
- arrithmetic so that the sign bit doesn't smear when right shifted.
- (build_instruction): For "pdiv" perform sign extension when
- storing results in HI and LO.
- (build_instructions): For "pdiv" and "pdivbw" check for
- divide-by-zero.
- (build_instruction): For "pmfhl.slw" update hi part of dest
- register as well as low part.
- (build_instruction): For "pmfhl" portably handle long long values.
- (build_instruction): For "pmfhl.sh" correctly negative values.
- Store half words 2 and three in the correct place.
- (build_instruction): For "psllvw", sign extend value after shift.
-
-end-sanitize-r5900
* sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
* interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
signed8, unsigned8 et.al. types.
-start-sanitize-r5900
- * gencode.c (build_instruction): For PMULTU* do not sign extend
- registers. Make generated code easier to debug.
-
-end-sanitize-r5900
* interp.c (SUB_REG_FETCH): Handle both little and big endian
hosts when selecting subreg.
-start-sanitize-r5900
-
- * gencode.c (type_for_data_len): For 32bit operations concerned
- with overflow, perform op using 64bits.
- (build_instruction): For PADD, always compute operation using type
- returned by type_for_data_len.
- (build_instruction): For PSUBU, when overflow, saturate to zero as
- actually underflow.
-
-end-sanitize-r5900
-start-sanitize-r5900
- * gencode.c (build_instruction): Handle "pext5" according to
- version 1.95 of the r5900 ISA.
-
- * gencode.c (build_instruction): Handle "ppac5" according to
- version 1.95 of the r5900 ISA.
-
-end-sanitize-r5900
* interp.c (sim_engine_run): Reset the ZERO register to zero
regardless of FEATURE_WARN_ZERO.
* gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
* interp.c: Implement the ERET and mt/f sr instructions.
-start-sanitize-r5900
-
- * gencode.c (build_instruction): For paddu, extract unsigned
- sub-fields.
-
- * gencode.c (build_instruction): Saturate padds instead of padd
- instructions.
-
-end-sanitize-r5900
* interp.c (SignalException): Don't bother restarting an
in argv form.
(other sim_*): New SIM_DESC argument.
-start-sanitize-r5900
-
- * gencode.c (POP_AND,POP_OR,POP_NOR,POP_XOR):
- Change values to avoid overloading DOUBLEWORD which is tested
- for all insns.
- * gencode.c: reinstate "offending code".
-
-end-sanitize-r5900
* interp.c: Fix printing of addresses for non-64-bit targets.
(pr_addr): Add function to print address based on size.
-start-sanitize-r5900
- * gencode.c: #ifdef out offending code until a permanent fix
- can be added. Code is causing build errors for non-5900 mips targets.
-end-sanitize-r5900
-
-start-sanitize-r5900
-
- * gencode.c (process_instructions): Correct test for ISA dependent
- architecture bits in isa field of MIPS_DECODE.
-end-sanitize-r5900
* interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
-start-sanitize-r5900
-
- * gencode.c (MIPS_DECODE): Correct instruction feature flags for
- PMADDUW.
-
-end-sanitize-r5900
* gencode.c (build_mips16_operands): Correct computation of base
address for extended PC relative instruction.
-start-sanitize-r5900
-
- * Makefile.in, configure, configure.in, gencode.c,
- interp.c, support.h: add r5900.
-
-end-sanitize-r5900
* interp.c (mips16_entry): Add support for floating point cases.