aboutsummaryrefslogtreecommitdiff
path: root/sim
AgeCommit message (Collapse)AuthorFilesLines
1998-03-24Add code to support building mn10300 simulator with the common simulatorJoyce Janczyn1-79/+398
framework.
1998-03-24Add support for building simulator based on common simulator framework.Joyce Janczyn1-5/+110
Separate out files which get compiled depending on --enable-sim-common configuration.
1998-03-24Add ability to configure mn10300 built with common simulator code base.Joyce Janczyn2-50/+551
Use --enable-sim-common to build this way; default configure has not changed.
1998-03-24New {load/store}_{byte/half/word} macros for simulator built withJoyce Janczyn1-5/+209
common framework.
1998-03-24Header file required by igen generated files.Joyce Janczyn1-0/+96
1998-03-24IGEN input files for mn10300 simulator.Joyce Janczyn2-0/+3524
1998-03-24 * Makefile.in: Get SHELL from configure.Stu Grossman1-0/+16
* configure: Regenerate with autoconf 2.12.1 to fix shell issues for NT native builds.
1998-03-24 * Make-common.in: Get SHELL from configure.Stu Grossman3-39/+225
* (stamp-tvals sim-inline.c): Use $(SHELL) when invoking move-if-change. Fixes NT native build problem. * Makefile.in (nltvals.def): Use $(SHELL) when invoking move-if-change. Fixes NT native build problem. * configure: Regenerate with autoconf 2.12.1 to fix shell issues for NT native builds.
1998-03-24Build IGEN with the mn10300 simulator.Joyce Janczyn3-63/+53
1998-03-22New function hw_strdup() - use memory tied to hw device.Andrew Cagney1-0/+380
Tidy up hw-properties error messages. New device dv-glue.c (copied from ../ppc/hw_glue.) Only attach a port after a devices initialization has finished.
1998-03-22Fix typos: Setting trace in wrong function, ME vs HW.Andrew Cagney2-2/+5
1998-03-22Copy function ../ppc/device_table.c:generic_device_init_address() toAndrew Cagney4-4/+1390
hw-base.c:do_hw_attach_regs(). Use in dv-pal. Add hw_tree_delete to hw-tree.c.
1998-03-22Add function hw_trace() and macro HW_TRACE - provides trace supportAndrew Cagney6-13/+67
for HW devices.
1998-03-22Add hw_{malloc,zalloc,free} functions to hw_device. Any memoryAndrew Cagney7-8/+1335
allocated using these functions is reclaimed when the corresponding device is deleted.
1998-03-22Replace *attach_address() arguments SPACEMASK:ADDR with SPACE:ADDR.Andrew Cagney5-0/+1481
Add notes to hw-device.h that discuss the interpretation of SPACE:ADDR on a BUS.
1998-03-20Added DMAC unit test cases.James Lemke4-2/+580
1998-03-20* Monster bug fixes & improvements from the last two days' demo-testing work.Frank Ch. Eigler4-19/+93
* sky-pke.h (pke_fifo*): Exported these formerly private functions. (pke_device): Added FIFO cache fields. * sky-pke.c (pke_fifo_reset): New function for GPUIF client - clear FIFO contents. (pke_pcrel_fifo): Added caching facility to prevent O(n^2) cost for searching for consecutive operand words. * sky-libvpe.c (MEM, uMEM): New/changed macros that perform modulo calculations to handle out-of-range VU memory addresses. (*): Replaced many previous uses of MEM[] and state->uMEM[] with calls to above macros. * sky-vu.h (struct VectorUnitState): Added qw/dw size fields for MEM/uMEM buffers, for overflow prevention. Renamed MEM/uMEM fields to catch all their prior users. * sky-vu0.c (vu0_attach): Manually align MEM0/MEM1 buffers to force 16-byte alignment. (zalloc is not enough.) * sky-vu1.c (vu1_attach): Ditto. (init_vu): Store buffer sizes from allocation into VectorUnitState. * sky-gpuif.h (GifPath): Use a pke_fifo strucf instead of temporary fixed-size array for flexible FIFO sizing. * sky-gpuif.c (SKY_GPU2_REFRESH): This is now an integer value to be used as a modulus for periodic refresh. (refresh): New function to send GPU2 refresh code periodically. (*): Use pke_fifo calls to en/dequeue GPUIF tags & operands. * sky-pke.h (struct pke_device): Added fields to allow caching of results from recent FIFO searches.
1998-03-18* Changes today consist just of some code hardening.Frank Ch. Eigler1-8/+11
1998-03-18Prototype common device framework. Plenty more work to go.Andrew Cagney3-0/+142
1998-03-18* aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,Andrew Cagney5-105/+351
sim_dv_src in Makefile. Take list of devices as parameter to m4 macro.. * configure: Regenerated to track ../common/aclocal.m4 changes.
1998-03-18* Added --with-sim-gpu2=<path> option for linking SCEI's GPU2 library withFrank Ch. Eigler3-58/+449
the stand-alone executable. [in ChangeLog.sky:] * sky-gpuif.c (call_gs): Call properly into GPU2 library if configured --with-sim-gpu2. Use SKY_GPU2_REFRESH symbol as placeholder for future GPU2-refresh policy. [in ChangeLog:] * 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.
1998-03-17* Added "t-pke4" test case that I forgot to check in when it was created.Frank Ch. Eigler3-1/+610
1998-03-17* Added the "c_gen.pl" perl script into this directory, so the currentFrank Ch. Eigler3-1/+267
bunch of tests may be run on non-Toronto hosts.
1998-03-17* Some changes in PKE tests, as per SCEI e-mail. t-pke1 still fails, butFrank Ch. Eigler6-23/+35
will ignore this until next SCEI clarification. * tsv308_1.trc: Fixed test case as per SCEI email. * tsv316_1.trc: Ditto. * tsv408_1.trc: Same. * tsv416_1.trc: Again. * t-pke3.trc: Added more padding to one VU test to widen timing race.
1998-03-16Pass sim_cia cia into trace_prefix()Andrew Cagney1-1/+6
1998-03-15 * config.in (HAVE_FCNTL_H): Add.Doug Evans4-19/+163
* configure: Regenerate. * Makefile.in (SIM_OBJS): Add devices.o. * m32r-sim.h (m32r_devices): Renamed from m32r_mspr_device. (UART_*): Define m32r serial port parameters. (M32R_DEVICE_ADDR,M32R_DEVICE_LEN): Define. * m32r.c (device_io_{read,write}_buffer,device_error): Move from here, * devices.c: To here. * sim-if.c: Don't include signal.h,sim-core.h. (sim_open): Use M32R_DEVICE_{ADDR,LEN} in sim_core_attach call. (sim_resume): Call sim_module_{resume,suspend}. * m32r.c (m32r_h_cr_{get,set}): Use register number enums. * tconfig.in (SIM_HANDLES_LMA): Define. * sim-if.c (do_trap): Result is new pc. Handle --environment=operating. * sem-switch.c,sem.c: Regenerate. start-sanitize-m32rx * semx.c: Regenerate. end-sanitize-m32rx
1998-03-15 * dv-sockser.c, dv-sockser.h: New files.Doug Evans6-7/+81
* Make-common.in (dv-sockser.o): Add rule for. * aclocal.m4: Check for fcntl.h. * config.h: Add HAVE_FCNTL_H. * sim-break.c (remove_breakpoint): Fix thinko. * sim-hload.c (sim_load): Provide default value of SIM_HANDLES_LMA. Use SIM_HANDLES_LMA for lma_p arg to sim_load_file.
1998-03-14* Added "test0" test bucket from SCEI. Due to changes in the behavior specsFrank Ch. Eigler27-29/+25013
of PKE, some old test cases had to be modified. There are suspected bugs in the SCEI test cases too, so "make check" does not run cleanly at present. * tss*.trc: New files, generated by perl script from SCEI "test0" bucket. * tsv*.trc: New files, generated by perl script from SCEI "test0" bucket. Note that tsv432_0 may obsolete t-pke1. * Makefile.in (TESTS): Run new scripts. (check): Bulldoze through failing test cases with "make -k" until SCEI fixes some of them. (.run.ok): Increased run-time limit since some test runs can take several seconds.
1998-03-14* PKE testing was driven by SCEI "test0" bucket; code coverage remainsFrank Ch. Eigler3-152/+311
effectively full. The code is believed to be functionally complete now. Some code cleanup is included at no extra charge in this version. Fri Mar 13 20:21:57 1998 Frank Ch. Eigler <fche@cygnus.com> * sky-vu1.c: (dump_mem): Commented out function to satiate warning-ful compilation. * sky-pke.c: (pke_reset): New function, called explicitly at initialization and at FBRST. (pke_fifo_flush): New function to flush (skip over) existing quadwords in FIFO. (pke_fifo_fit): New function to add space for new quadword in FIFO. (pke_fifo_access): New function to absolute-index into FIFO. (pke_fifo_old): New function to remove old quadwords from FIFO. (pke_begin_interrupt_stall): New function to abstract interrupt-caused stalls. (pke_*): Access PKE FIFO only thorugh pke_fifo functions. (pke_pcrel_*): Renamed pke_pc_* functions. (pke_code_unpack): Numerous logic tweaks for latest UNPACK behavior changes & clarifications from SCEI. * sky-pke.h (struct pke_fifo): New explicit FIFO representation. (struct pke_device): Use struct above. (PKE_DEBUG): Removed macro as misnomer. * sky-hardware.c: Moved *_cmd_install declarations out. * sky-hardware.h: Moved *_cmd_install declarations in.
1998-03-13 * sim-base.h (struct sim_state_base): Add prog_syms andFred Fish2-8/+84
define macro STATE_PROG_SYMS. * sim-trace.c (trace_one_insn): Add variables abfd, symsize, symbol_count, and asymbols. Call bfd_get_symtab_upper_bound and bfd_canonicalize_symtab, to get symbol table on first use and preserve it via STATE_PROG_SYMS for future calls to bfd_find_nearest_line.
1998-03-13massive sanitization fixesAngela Marie Thomas4-22/+38
1998-03-13new .Sanitize filesAngela Marie Thomas2-0/+68
1998-03-11Sanity for 4320Gavin Romig-Koch1-0/+36
1998-03-11Allow more than just read, write and exec memory spaces in the coreAndrew Cagney6-31/+41
module.
1998-03-11* sky-gdb.c (vu_option_handler): Delete unused local unit.Andrew Cagney1-2/+11
(log_option_handler): Delete extra arg from printf, twice. * sky-pke.c (config.h): Include. (string.h, strings.h): Include. (pke_issue): Delete unused locals imm, num * sky-libvpe.c: Pacify GCC. * sky-gpuif.c (gif_io_write_buffer): Pacify GCC. * sky-dma.c (config.h): Include. (string.h, strings.h): Include. (dma_io_read_buffer): Pacify GCC. (dma_io_write_buffer): Pacify GCC. Initialize pmem before first use. (do_dma_transfer): Delete unused local variables qwbuf and local.
1998-03-10 * vr4320.igen (clz,dclz) : Added.Gavin Romig-Koch2-1/+47
(dmac): Replaced 99, with LO.
1998-03-10Delete function sim_stop.Andrew Cagney1-0/+4
1998-03-09 * sim-base.h (sim_state_base): New member environment.Doug Evans2-0/+17
(STATE_ENVIRONMENT): New macro. * sim-config.c (current_environment): Delete. (sim_config_default): New function. (sim_config): Set STATE_ENVIRONMENT, not current_environment. * sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete. (sim_config_default): Add prototype. * sim-module.c (sim_pre_argv_init): Call sim_config_default. * sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT): Set STATE_ENVIRONMENT, not current_environment.
1998-03-09 * mips/vr4320.igen: Mark the insn in here as vr4320 only.Gavin Romig-Koch2-23/+59
Reorder the insns.
1998-03-09Patch to fix irix6-x-mips64-elf simulator failures.Jim Wilson1-0/+4
* sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
1998-03-06* Numerous changes & small bug fixes in PKE sim code and test suite.Frank Ch. Eigler7-138/+327
for sim/testsuite/sky: * t-pke4.run: Removed test, since it succeeds yet returns a non-zero exit code. * Makefile.in (RUNOPTS): Removed --memory-size flag, made unnecessary by sim/mips/interp.c changes. (TESTS): Removed t-pke4.ok target. * t-pke3.trc: Classified tests with [---] indicators, to match items up with entries documented in testplan.sgml. Added numerous additional tests. They assert behavior that assumes certain favorable answers to PKE question set #6 to SCEI. * t-pke1.trc: Added some [---] indicators. for sim/mips: * sky-pke.c (pke_issue): Revamped interrupt & stall code. Assume that ER1/ER0/PIS bits are only set if not masked by ERR bits. Signal PIS only if unmasked. (pke_code_error): Signal ER1 only if unmasked. (pke_pc_fifo): Signal ER0 only if unmasked. (pke_code_unpack): Round up num_operands for last operand's partial-word. Factor out "R" bit handling for better coverage analysis. Fill upper words of a quadword with zeroes for Vn_m UNPACK with n < 4. * sky-device.c (device_error): Made function accept varargs. * sky-device.h (device_error): Changed declaration to match. * interp.c (sim_open): Made 0x0000 area memory be an alias of the K0/K1 segments. Sanitized code.
1998-03-05Fix opcode fields in SHFL.*Andrew Cagney1-0/+6
1998-03-05* Fixed a double-buffering bug in PKE, due to naive use ofFrank Ch. Eigler1-5/+6
complex macros with side-effects. Gripes.
1998-03-04 * interp.c (sim_open): Map 4M of memory at zero for SKY sim only.James Lemke1-0/+3
1998-03-04 * Makefile.in (SIM_EXTRA_DEPS): Add cpu-opc.h.Doug Evans2-7/+14
(arch.o): Delete cpu-opc.h dependency. (decode.o,model.o): Likewise. (decodex.o,modelx.o): Likewise.
1998-03-04 * cpu.h,model.c,sem-switch.c,sem.c: Regenerate.Doug Evans3-325/+453
* cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
1998-03-04* Merely eliminated silly duplicated code, to raise test coverage.Frank Ch. Eigler1-174/+29
* sky-pke.c (pke_issue): Move interrupt-handling into decode logic. (pke_code_*): Remove duplicated interrupt-handling code.
1998-03-04sim-main.h: track SKY register number changes from gdbRon Unrau1-35/+60
interp.c: ditto
1998-03-04 * sim-core.c (sim_core_attach): Use xmalloc instead of zalloc.Doug Evans2-10/+3
Use 0xa5 as initial value. (sim_core_map_detach): Use free instead of zfree. Back out this change.
1998-03-03 * vr4320.igen: New file.Gavin Romig-Koch3-0/+163
* 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.