Commit Graph

21613 Commits

Author SHA1 Message Date
Jeff Law 097e6924c2 * simops.c (signed multiply instructions): Cast input operands to
signed32 before casting them to signed64 so that the sign bit
        is propagated properly.
1998-02-25 08:58:23 +00:00
Doug Evans c248113005 delete FIXME 1998-02-25 08:37:11 +00:00
Doug Evans 95bb4ad144 * dvp-dis.c (print_insn): Handle word number.
Handle mips address vs vu address.
        * dvp-opc.c (vif_operands): Use DVP_OPERAND_VU_ADDRESS.
        (dma_operands): Use DVP_OPERAND_MIPS_ADDRESS.
        ({insert,extract}_dma_addr): Fix word ofset.
        ({insert,print}_gif_regs): Fix encode/decode.
1998-02-25 08:34:41 +00:00
Doug Evans 3e4a83f036 * dvp.h (DVP_OPERAND_MIPS_ADDRESS): Renamed from DVP_OPERAND_ADDRESS.
(DVP_OPERAND_VU_ADDRESS): New macro.
        (DVP_OPERAND_*): Renumber.
1998-02-25 08:26:52 +00:00
Doug Evans b500809f33 * genmloop.sh (engine_resume): Update insn_count before exiting.
(engine_resume_full): Keep accurate core profile data.
	* cgen-utils.c (sim_disassemble_insn): Don't use
	sim_core_read_aligned_N, it messes up profiling results.
1998-02-25 08:25:11 +00:00
Doug Evans ab062d2278 (profile_print_core): Simplify by calling sim_core_map_to_str.
* sim-core.h (sim_core_map_to_str): Declare.
	* sim-core.c (sim_core_map_to_str): Make non-static.
1998-02-25 07:47:32 +00:00
Doug Evans 751197f231 (profile_print_core): Simplify by calling sim_core_map_to_str.
* sim-core.h (sim_core_map_to_str): Declare.
	* sim-core.c (sim_core_map_to_str): Make non-static.
1998-02-25 07:36:23 +00:00
Doug Evans 3910fb4a51 * sim-profile.c (profile_print): Delete duplicate test of
PROFILE_INSN_IDX.
	(profile_print_pc): Exit early if data collection not set up.
1998-02-25 07:16:09 +00:00
Nick Clifton 39149be224 Fix bug detected by Michael snyder. 1998-02-25 02:05:09 +00:00
Frank Ch. Eigler 89154e47a3 * Unit testing of PKE sim continuing. Only minor VU addressing problems
found today.
1998-02-25 01:13:05 +00:00
Doug Evans fdd59f73f9 (dma_opcodes): Add dmarefe insn. 1998-02-25 01:11:14 +00:00
Frank Ch. Eigler 559eba20a8 * Added test bucket directory for sky tests, which may be run in conjunction
with the mips64r5900 tests.  It's all meant to be sanitized out without
  "keep-sky".
1998-02-25 01:08:47 +00:00
Doug Evans b439fb8117 (s_endgif): Update. NLOOP is in quadwords for IMAGE mode now. 1998-02-25 01:05:10 +00:00
Doug Evans 4a7d1b79f1 (gif_regs): Add new register number/name changes. 1998-02-25 00:57:19 +00:00
Doug Evans 7744ce8bb4 (gif_reg): Add recent register name/number changes. 1998-02-25 00:55:32 +00:00
Ian Carmichael 733cfc784b * A bunch of changes which get us closer to running the sample. 1998-02-24 23:37:20 +00:00
Doug Evans 4771aa23ae (print_gif): Fix word order. 1998-02-24 22:10:28 +00:00
Doug Evans 9152bebae6 (UNIQUE_LABEL_PREFIX): New macro.
(unique_label): Use it.
	(assemble_gif): Emit start label before mach label.
	(s_endgif): Update.
1998-02-24 22:08:40 +00:00
Doug Evans 52491f93ae * dvp-opc.c (gif_operands): Fix word order.
(gif_opcodes): Likewise.
	({insert,extract,print}_gif_regs): Likewise.
1998-02-24 21:56:44 +00:00
Doug Evans ef9448db9a (s_endgif): Change length mismatched errors to warnings. 1998-02-24 21:39:58 +00:00
Doug Evans 88b38f0c3c * arm-dis.c (print_insn_{big,little}_arm): info->symbol changed
to *info->symbols.
	* mips-dis.c (print_insn_{big,little}_mips): Likewise.
	* tic30-dis.c (print_branch): Likewise.
start-sanitize-sky
	* mips-dis.c (print_insn_little_mips): Call dvp_info_mach_type.
	* dvp-dis.c (dvp_info_mach_type): New function.
	(print_insn_dvp): Call it.
	(print_vif): Return length of 4 if mpg or direct insn so following
	insns get properly disabled.
	* dvp-opc.c (vif_insn_len): New argument `pcpu'.  All callers updated.
end-sanitize-sky
1998-02-24 20:57:58 +00:00
Doug Evans b6d331b9cd (create_colon_label): New argument `sto'. All callers updated.
(record_mach): New argument `force_next_p'.  All callers updated.
	(cpu_sto): New function.
1998-02-24 20:40:41 +00:00
Jason Molenda 9a760d248f Change from rth.
* Makefile.in (BISON): Don't even pretend to use yacc.
        (c-exp.tab.o): Use bison -o to use a unique intermediate file.
        (jv-exp.tab.o, f-exp.tab.o, m2-exp.tab.o): Likewise.
1998-02-24 19:25:44 +00:00
Nick Clifton 89dc75c562 Removed saved_symbol code as it is no longer needed. 1998-02-24 19:23:07 +00:00
Nick Clifton c3ba2ed2d0 Fixed bug displaying symbols in big endian arms. 1998-02-24 19:07:28 +00:00
Doug Evans 69312dac86 * config/tc-dvp.h (tc_frob_label): Define.
* config/tc-dvp.c (dvp_frob_label): New function.
1998-02-24 19:04:22 +00:00
Doug Evans 3e9f7612e3 * dvp.h (dvp_cpu): Add DVP_UNKNOWN.
(vif_insn_len): Update prototype.
1998-02-24 18:46:29 +00:00
Mark Alexander a9faef120e * Makefile.in: Last change was bad. Define NL_TARGET
so that targ-vals.h will be used instead of syscall.h.
	* simops.c: Use targ-vals.h instead of syscall.h.
	(OP_F020): Disable unsupported system calls.
1998-02-24 05:07:11 +00:00
Mark Alexander 845a591785 * nltvals.def: Regenerate with MN10300 additions. 1998-02-24 05:00:53 +00:00
Andrew Cagney d3e1d59414 Add tracing to r5900 p* instructions. 1998-02-24 03:42:27 +00:00
Frank Ch. Eigler b4d2f483b3 * PKE sim unit testing continuing. Starting to run milestone sample.
* sky-pke.h (PKE_MEM_READ): Removed "read" entry from FIFO trace.

	* sky-pke.c (pke_attach): Set trace file to line buffering iff
 	open.
	(pke_io_read_buffer, pke_io_write_buffer): Handle erroneous
 	reads/writes by zero-padding.
	(pke_io_write_buffer): Switch to more bit-field definition macros.
	(pke_issue): Remove "stalled" entry from FIFO trace.
	(pke_pc_advance): Correct logic for DMA-tag-skipping, PKEcode
 	classification.
	(pke_code_mskpath3): Sketch of possible PATH3 masking method.
	(pke_code_mpg): Keep order of lower/upper VU words as supplied.
	(pke_code_unpack): Logic change for wl/cl/num unpacking.  Weird.
1998-02-24 02:10:23 +00:00
Ian Lance Taylor 3c9f13f43f * configure.in: Add elf.lo to elf shell variable.
* Makefile.am (BFD_LIBS): Remove elf.lo.
	(BFD_LIBS_CFILES): Remove elf.c.
	(BFD32_BACKENDS): Add elf.lo.
	(BFD32_BACKENDS_CFILES): Add elf.c.
	* configure, Makefile.in: Rebuild.
1998-02-24 00:53:38 +00:00
Doug Evans e9cb12e459 * config/tc-dvp.c (assemble_dma): Do alignment before parsing insn.
(setup_dma_autocount): Renamed from setup_autocount.  New argument
	inline_p.  All callers changed.  Fix word address of count.
	(parse_dma_addr_autocount): Fix word address of address.
1998-02-24 00:00:18 +00:00
Ulrich Drepper b35d842de7 (elf_i386_relocate_section): A pc-relative relocation against a
now-local symbol should not have a dynamic relocation.
1998-02-23 23:58:16 +00:00
Doug Evans 34e2f57412 (dma_operands): Fix word numbers.
(dma_opcodes): Likewise.
	({insert,extract}_dma_flags): Likewise.
1998-02-23 23:56:04 +00:00
James Lemke c74ca124fe Added sanitization for my latest changelog entry. 1998-02-23 23:50:39 +00:00
Ron Unrau ce4713dc3b Make it compile again for -DTARGET_SKY 1998-02-23 23:40:40 +00:00
Ian Lance Taylor fc96bc860d * emultempl/pe.em (sort_sections): Permit the wildcard to include
a trailing '*' when sorting grouped sections.
	* scripttempl/pe.sc: Include grouped sections using NAME\$*.  Only
	include them when relocating.
1998-02-23 22:48:20 +00:00
James Lemke 96f5b6b2a5 Instead of changing the names of .bss etc, add .vubss etc via
the macro ELF_TC_SPECIAL_SECTIONS.  As per Ian's suggestion.
1998-02-23 22:27:12 +00:00
Doug Evans 02310b01ca * sim-main.h: #include symcat.h.
* m32r-sim.h (BRANCH_NEW_PC): Delete current_cpu arg.
	(NEW_PC_{BASE,SKIP,2,4,BRANCH_P}): New macros.
	* cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
	* sem.c,sem-switch.c: Regenerate.
	* m32r-sim.h (SEM_NEXT_PC): Modify to handle parallel exec.
	* mloopx.in: Rewrite.
	* cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
1998-02-23 21:36:15 +00:00
Doug Evans 93f34464a3 * cgen-sim.h (SEM_NEXT_PC): New arg `len'. 1998-02-23 21:28:14 +00:00
Doug Evans 0bf55db8fd * m32r-asm.c,m32r-dis.c,m32r-opc.h,m32r-opc.c: Regenerate. 1998-02-23 21:20:37 +00:00
Ian Lance Taylor b1f09b637e * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
COFF filehdr flags.
	(pe_print_private_bfd_data): Print PE flags.  From Mikey
	<jeffdb@netzone.com>.
1998-02-23 21:18:30 +00:00
Doug Evans 833d299073 * cgen-asm.c: Include symcat.h.
* cgen-dis.c,cgen-opc.c,cgen-asm.in,cgen-dis.in: Ditto.
1998-02-23 21:17:29 +00:00
Nick Clifton 677c3439a7 Implment backup PC shadowing of CR6. 1998-02-23 20:31:19 +00:00
Ian Lance Taylor 0eaf0ce754 * Makefile.in (INSTALL_MODULES): Move install-tcl before
install-itcl.
	(install-itcl): Remove dependency on install-tcl.
1998-02-23 19:46:52 +00:00
Doug Evans a15a45e51f * cgen.c: #include symcat.h.
* config/tc-m32r.c: Likewise.
1998-02-23 19:30:18 +00:00
Doug Evans a2f256c4e0 * cgen.h (CGEN_CAT3): Delete. Use CONCAT3 now.
(cgen_insn): Record syntax and format entries here, rather than
	separately.
1998-02-23 18:39:25 +00:00
Doug Evans 36dbc8bb7c * sim-xcat.h: Delete.
* cgen-mem.h: Delete inclusion of sim-xcat.h.
	* cgen-sim.h: Ditto.
	* sim-alu.h: Replace sim-xcat.h with symcat.h.
	* sim-n-bits.h: Ditto.
	* sim-n-core.h: Ditto.
	* sim-n-endian.h: Ditto.
1998-02-23 18:21:14 +00:00
Michael Meissner 3aeca4624a Handle short reads and EOF 1998-02-23 18:21:13 +00:00