aboutsummaryrefslogtreecommitdiff
path: root/sim
AgeCommit message (Collapse)AuthorFilesLines
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.
1998-03-03Fix DIV, DIV1 (wrong check for overflow) and DIVU1 (shouldn't checkAndrew Cagney3-3/+26
for overflow). Pacify GCC.
1998-03-03 * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.Andrew Cagney1-0/+6
* sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
1998-03-03Fix typos.Doug Evans1-2/+2
1998-03-03 * Make-common.in (TAGS): Make smarter.Doug Evans1-0/+1
* Makefile.in (TAGS): Ditto.
1998-03-03 * Make-common.in (TAGS): Make smarter.Doug Evans1-0/+2
1998-03-03Good grief. Detailed function descriptions should accompany their definition.Doug Evans2-12/+4
1998-03-03(sim_core_attach): Add a comment describing its function.Doug Evans1-1/+13
Tweak switch() sanity check.
1998-03-03Improve comment.Doug Evans1-1/+1
1998-03-03* Continuing PKE sim unit tests. Found little bugs in VU instead.Frank Ch. Eigler1-1/+1
* sky-vu1.c (vu1_io_write_register_window): Make CIA (pc) write effective by updating more registers. * sky-libvpe.c: Updated to match earlier VU state-change code. * sky-vpe.h: Removed unused globals from declarations.
1998-03-02* Added more PKE unit tests. Coverage now at 90%.Frank Ch. Eigler2-1/+46
* t-pke3.trc: Added FLUSH* / PKEMS* tests.
1998-03-02 * sim-core.c (sim_core_attach): Revise last patch.Doug Evans2-1/+5
Use 0xa5 as initial value.
1998-03-02 * sim-core.c (sim_core_attach): Use xmalloc instead of zalloc.Doug Evans2-2/+8
(sim_core_map_detach): Use free instead of zfree.
1998-03-02add sky-gdb.c to sky_filesRon Unrau1-1/+1
1998-03-01(find_match): recheck argv[argi] in multi-word match. Fixes crash whenRon Unrau1-1/+2
subset words are alone on the command line.
1998-03-01sky-gdb.c: new file - temporary demo version of the sim interfaceRon Unrau1-18/+19
sky-hardware.c: add sim commands Makefile.in: build sky-gdb.c
1998-02-28 * sim-module.c (*): Fix typos in assertion tests.Doug Evans2-11/+15
1998-02-28Pacify GCC: const char * passed to asprintf; int function returningAndrew Cagney3-4/+14
void; unused variable.
1998-02-28Add generic sim-info.c:sim_info() function using module mechanism.Andrew Cagney19-127/+700
Clean up compile probs in mips/vr5400.
1998-02-28 * interp.c (DECLARE_OPTION_HANDLER): Use it.Doug Evans2-2/+12
(mips_option_handler): New argument `cpu'. (sim_open): Update call to sim_add_option_table.
1998-02-28 * simops.c (inc): Fix typo.Jeff Law1-1/+1
1998-02-27* Updated build to allow srcdir != objdir. Tests still do not use dejagnu.Frank Ch. Eigler2-8/+15
1998-02-27* Major endianness fixes on sky code today. The milestone sample and existingFrank Ch. Eigler4-48/+65
PKE tests run identically on SPARC/Solaris and x86/Linux. * sky-pke.c (pke_io_{read,write}_buffer): Endianness fixes aka "E-fixes" in register and FIFO read/writes. (pke_code_{pkemscalf,pkemscal}): E-fixes in VU CIA setting. (pke_code_{mpg,unpack}): E-fixes in VU memory & tracking updates. (pke_code_direct): E-fixes in GPUIF FIFO stuffing. * sky-pke.h (PKE_MEM_WRITE): E-fixes in trace file writing. * sky-vu0.c (vu0_attach): Allocate micro/data memory with zalloc to guarantee sufficient (16-byte) alignment. * sky-vu1.c (vu1_attach): Ditto. (vu1_io_read_register_window): *PARTIAL* E-fixes in register accesses. * sky-libvpe.c (gif_write): E-fixes in GPUIF FIFO stuffing. * sky-gpuif.c (gif_io_{read,write}_buffer): E-fixes in register and FIFO read/writes. * sky-dma.c (do_dma_transfer_tag): E-fixes in tag reading.
1998-02-27 * sim-base.h (sim_cpu_base): New members name, options.Doug Evans7-112/+316
(sim_cpu_lookup): Add prototype. * sim-module.c (sim_pre_argv_init): Provide default names for cpus. * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'. (sim_add_option_table): Update prototype. * sim-options.c (sim_add_option_table): New argument `cpu'. (standard_option_handler,standard_install): Update. (sim_parse_args): Handle cpu specific options. (print_help): New static function. (sim_print_help): Call it. Print cpu specific options. (find_match): New static function. (sim_args_command): Call it. Handle cpu specific options. * sim-utils.c (sim_cpu_lookup): New function. * sim-memopt.c (memory_option_handler): Update. (sim_memopt_install): Update. * sim-model.c (model_option_handler): Update. (model_install): Update. * sim-profile.c (profile_option_handler): Update. (profile_install): Update. * sim-trace.c (trace_option_handler): Update. (trace_install): Update. * sim-watch.c (watchpoint_option_handler): Update. (sim_watchpoint_install): Update. * cgen-scache.c (scache_option_handler): Update. (scache_install): Update.
1998-02-27 * mloopx.in: Fix handling of branch in parallel with another insn.Doug Evans2-1/+8
* semx.c: Regenerate.