Doug Evans
3b5f425750
* 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.
28 years ago
Doug Evans
4d87923eb3
* r5900.igen (plzcw): Make `i' signed.
PR 17191.
28 years ago
Ron Unrau
323f833daf
Branch merge for GDB:
* sim-main.h: track COP0 registers
* interp.c (sim_{fetch,store}_register): read/write COP0 registers
* sky-gdb.[ch]: add sim pipeorder command
28 years ago
Frank Ch. Eigler
9ade226a42
* Patch for PR 17142, brought over from sky branch.
Fri Sep 4 10:37:57 1998 Frank Ch. Eigler <fche@cygnus.com>
* r5900.igen (mtsab): Correct typo in input register.
* sim-main.h (TMP_*): New macros for accessing local 128-bit
temporary for multimedia instructions.
* r5900.igen (*): Convert most instructions to use new TMP
macros to store output result during computation.
28 years ago
Frank Ch. Eigler
78b871ec81
* Build fixes for tx39 sim hosted on strange Linux boxen.
[common/ChangeLog]
Tue Sep 1 15:36:52 1998 Frank Ch. Eigler <fche@cygnus.com>
* sim-config.h: Remove reference to linux kernel header.
[mips/ChangeLog]
Tue Sep 1 15:39:18 1998 Frank Ch. Eigler <fche@cygnus.com>
* dv-tx3904sio.c: Include sim-assert.h.
28 years ago
Ken Raeburn
83e29d5263
Change sanitization of vrXXXX to cygnus, so redact might work on it.
This means using keep-vr4320 without keep-cygnus probably won't work.
28 years ago
Frank Ch. Eigler
36e838d13b
* eCos tx3904sio sim - devo part 2/2
Tue Aug 25 12:49:46 1998 Frank Ch. Eigler <fche@cygnus.com>
* 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.
28 years ago
Ken Raeburn
aeeb756dee
fix broken sanitization
28 years ago
Ken Raeburn
3d759c53c9
sanitize-vr5400 -> sanitize-cygnus, for 98r2
28 years ago
Ron Unrau
d333eeedde
* sim-main.h: track COP2 register definitions, define VIO_BASE
28 years ago
Ron Unrau
b8140a08bf
* sim-main.h: shadow NUM_CORE_REGS from tm-txvu.h
28 years ago
Jeff Holcomb
acf38b4e4a
fix sanitization
28 years ago
Jeff Law
e1160daac2
Fix sanitize misspellings.
28 years ago
Andrew Cagney
60f9cd07d0
For vr* processors start using vr.igen.
Sanitize out README.Cygnus.
29 years ago
Andrew Cagney
e1b20d3048
Add new file vr.igen which is a merge of vr5400.igen and vr4320.igen.
Hack sanitize so that it doesn't sanitize vrXXX when either of
keep-vr5400 or keep-vr4320 are specified.
Move two basic vr4100 instructions from mips.igen to vr.igen.
29 years ago
Gavin Romig-Koch
46eb9e5a57
* interp.c (OPTION_BRANCH_BUG_4011): Add.
(mips_option_handler): Handle OPTION_BRANCH_BUG_4011.
(mips_options): Define the option.
* mips.igen (check_4011_branch_bug): New.
(mark_4011_branch_bug): New.
(all branch insn): Call mark_branch_bug, and check_branch_bug.
* sim-main.h (branchbug4011_option, branchbug4011_last_target,
branchbug4011_last_cia, BRANCHBUG4011_OPTION,
BRANCHBUG4011_LAST_TARGET, BRANCHBUG4011_LAST_CIA,
check_branch_bug, mark_branch_bug): Define.
29 years ago
Gavin Romig-Koch
aaa2c9082c
* mips.igen (check_mf_hilo): Correct check.
29 years ago
Patrick Macdonald
80b86d36b3
* sky-pke.c (pke_issue): use default trace file name if the
--log-file option not used
29 years ago
Frank Ch. Eigler
56b6d49ae0
* Bringing over SKY PKE disassembler feature from sky branch.
29 years ago
Jillian Ye
f915cc9125
configure.in: Add -lXext to mips_extra_libs
29 years ago
Patrick Macdonald
f439ad5f17
* sky-dma.h, sky-gpuif.[c|h], sky-gs.h, sky-pke.[c|h],
sky-vu.h: use _IOLBF on debug files, _IOFBF on trace files
* sky-gdb.[c|h] (sky_open_file()): add buffer mode to
parameter list
29 years ago
Frank Ch. Eigler
5630c289dc
* Adapt to changed R5900 SQC2 opcode.
Thu Jun 18 17:48:01 1998 Frank Ch. Eigler <fche@cygnus.com>
* mips.igen (SDC2): Removed R5900 alternative.
* r5900.igen (SQC2): Updated bit pattern to
match changed R5900 specs.
29 years ago
Patrick Macdonald
be53145e44
* second phase of the --sky-debug, --sky-debug-file stuff
* only outstanding issue is vu0/vu1 to file (phase 3_
* please see ChangeLog.sky for complete details
29 years ago
Patrick Macdonald
c0e7453d60
* sky-pke.h: PKE_REG_SET_MASK / PKE_MEM_WRITE macros updated
to check/open the debug trace file
29 years ago
Patrick Macdonald
7159249bbc
* support for the --sky-debug, sky-debug-file options
29 years ago
Ron Unrau
2905d173c5
* sky-pke.c(read_pke_pc): return source address of current pc
29 years ago
Frank Ch. Eigler
702968c54b
* ECC (tx39) and sky changes.
[ChangeLog]
start-sanitize-tx3904
Tue Jun 16 14:39:00 1998 Frank Ch. Eigler <fche@cygnus.com>
* dv-tx3904tmr.c: Deschedule timer event after dispatching.
Reduce unnecessarily high timer event frequency.
* dv-tx3904cpu.c: Ditto for interrupt event.
end-sanitize-tx3904
start-sanitize-sky
Tue Jun 16 14:12:09 1998 Frank Ch. Eigler <fche@cygnus.com>
* interp.c (decode_coproc): Removed COP2 branches.
* r5900.igen: Moved COP2 branch instructions here.
* mips.igen: Restricted COPz == COP2 bit pattern to
exclude COP2 branches.
end-sanitize-sky
29 years ago
James Lemke
1106213c56
Fix unresolved external error for sky_cpcond0 on non-SKY builds.
29 years ago
Ian Carmichael
8ea23ea4bb
* Implement remaining bits in VPU_STAT, CMSAR0, CMSAR1, FBRST. Fix COP2 interface
* to VI registers (CFC2/CTC2).
*
* Modified Files:
* ChangeLog.sky interp.c sim-main.c sky-pke.h sky-vu.c sky-vu.h
29 years ago
James Lemke
05faca8731
Implement CPCOND0 and insns BC0F/BC0FL/BC0T/BC0TL.
29 years ago
Ron Unrau
f083fff397
* sky-engine.c: Set ordering of device issues to match enumerated type
29 years ago
Patrick Macdonald
ff94f10401
* interp.c: added call to sky_command_options_end() to close
any open file handles before exiting
* sky-gpuif.[c|h]: add disassembly on the fly code, log and log
file option support
* sky-gdb.[c|h] (sky_command_options_close()): new function, added
some body to the log and log file option sections
29 years ago
Frank Ch. Eigler
95caab7df2
* Moving some sky-specific ChangeLog entries into ChangeLog.sky
29 years ago
Frank Ch. Eigler
b879096335
* Support for sky hardware interrupts. The sky-dma cannot trigger
interrupts properly yet (jlemke TODO).
Wed Jun 10 13:22:32 1998 Frank Ch. Eigler <fche@cygnus.com>
* interp.c (decode_coproc): For TX39, add stub COP0 register #7 ,
to allay warnings.
(interrupt_event): Made non-static.
start-sanitize-tx3904
* dv-tx3904tmr.c (deliver_tx3904tmr_tick): Correct accidental
interchange of configuration values for external vs. internal
clock dividers.
end-sanitize-tx3904
start-sanitize-sky
* sky-device.c (sky_signal_interrupt): New function to generate
interrupt event.
* sky-device.h: Declare it.
* sky-dma.c (check_int1): Call it.
* sky-pke.c (pke_begin_interrupt_stall): Call it.
end-sanitize-sky
29 years ago
Patrick Macdonald
a4377bf7bd
* Updated several files to place all sky specific runtime options
in sky-gdb.c.
* Added two new runtime options --sky-debug and --screen-refresh
* ChangeLog.sky contains a detailed description of the mods
29 years ago
Frank Ch. Eigler
e1b5df344e
* Typo fix for tx3904tmr use of configuration parameters.
(ChangeLog entry coming later.)
29 years ago
Ian Carmichael
0001bce1f8
* Handle 10 and 20-bit versions of Break instruction. Move handling
* of special values from signal_exception() in interp.c into mips.igen.
*
* Modified: ChangeLog gencode.c interp.c mips.igen sim-main.h
29 years ago
Frank Ch. Eigler
cc9bc93202
* Updates to tx3904 peripheral simulations for ECC.
Tue Jun 9 12:29:50 1998 Frank Ch. Eigler <fche@cygnus.com>
* 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.
29 years ago
Ian Carmichael
895a7dc2aa
* Handle 10 and 20-bit versions of Break instruction. Move handling
* of special values from signal_exception() in interp.c into mips.igen.
*
* Modified: gencode.c interp.c mips.igen sim-main.h
29 years ago
Gavin Romig-Koch
2b5d87dfa4
* mips.igen (SWC1) : Correct the handling of ReverseEndian
and BigEndianCPU.
29 years ago
Gavin Romig-Koch
55ad270f9a
* configure.in (mips_fpu_bitsize) : Set this correctly for 32-bit mips
parts.
* configure: Update.
29 years ago
James Lemke
037f29c526
Added support for the VU insn D (debug) & T (trace) bits.
29 years ago
Frank Ch. Eigler
da040f2a6c
* Early check-in of tx3904 timer sim implementation for ECC.
It is not yet properly tested.
Thu Jun 4 15:37:33 1998 Frank Ch. Eigler <fche@cygnus.com>
* 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.
29 years ago
Andrew Cagney
0e797366ef
The r5900 doesn't have HI/LO DIV/MUL register problems. Hobble
checks on hi/lo usage but retain functions so that they can be used
for HI/LO stall counting code.
29 years ago
Ian Carmichael
4979c0a271
* Move the sanitize comments to the right place.
29 years ago
Ian Carmichael
8e3a0b599f
* SYSCALL now uses exception vector.
* SKY: New memory mapping rules for k1seg, k0seg.
* Modified Files: ChangeLog.sky ChangeLog interp.c sim-main.c
29 years ago
Frank Ch. Eigler
29b5afe9af
* Small TX39-only patch for ECC.
Mon Jun 1 18:18:26 1998 Frank Ch. Eigler <fche@cygnus.com>
* interp.c (decode_coproc): For TX39, add stub COP0 register #3 ,
to allay warnings.
29 years ago
Jeff Law
fb0ea2b9e1
* r5900.igen (rsqrt.s): Update based on r5900 ISA manual version 2.1.
(sqrt.s): Likewise.
29 years ago
Andrew Cagney
df26156d68
Match mips*tx39 not mipst*tx39.
29 years ago
Andrew Cagney
ce82378189
Fix mips SWL on 64bit ISA when 32 bit word appears in second half of
64 bit bus.
Test.
29 years ago