Commit graph

21465 commits

Author SHA1 Message Date
Frank Ch. Eigler
534a3d5cf1 * Continuing unit testing of PKE simulator. It now successfully matches
the SCEI PKE simulator's output on its own test sample (tsv432.in).

	* sky-pke.h (PKE_MEM_READ, PKE_MEM_WRITE, PKE_REG_MASK_SET): Add
 	trace file records.

	* sky-pke.c: (pke_track_write): Removed function.  Replaced with
 	in-line modifications to VU tracking tables.
	(pke_attach): Attach VU tracking tables.  Use line buffering on
 	trace files.
	(pke_issue): Spit out additional trace records.
	(pke_pc_operand_bits): Correct bitfield masking error.
	(*): Replace sim_read/write with kludge PKE_MEM_READ/WRITE
 	throughout.
	(pke_code_unpack): Correct numerous small bugs in operand decoding
 	etc.
1998-02-20 01:50:01 +00:00
Doug Evans
8d157f9653 * m32r-opc.[ch]: Regenerate. 1998-02-20 00:57:03 +00:00
John Metzler
c3cf44c448 remove long long printf crash 1998-02-20 00:52:37 +00:00
Doug Evans
cab581557e * m32r.c (do_lock,do_unlock): Delete.
* cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
	* sem.c,sem-switch.c: Regenerate.
	* cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
1998-02-20 00:45:47 +00:00
Doug Evans
a94cefa164 (DVP_OPCODE_IGNORE_DIS): New macro. 1998-02-20 00:32:30 +00:00
Nick Clifton
c4448eec8c Yet more tests of m32r instructions 1998-02-20 00:30:14 +00:00
Richard Henderson
ecc9627d6f * listing.c (list_symbol_table): Categorize symbols by
undefined_section rather than sy_frag->line == NULL.

PR 14986
1998-02-20 00:16:51 +00:00
Nick Clifton
67dfe6e82c Even more instruction tests 1998-02-19 23:56:39 +00:00
Nick Clifton
dfe9df588d Test even more instructions. 1998-02-19 23:18:45 +00:00
Doug Evans
915729414d * config/tc-dvp.c (LOCAL_LABEL_PREFIX,END_LABEL_PREFIX): New macros.
(inline_dmadata): Renamed from s_dmadata_implied.
	(assemble_one_insn): Rewrite dma operand processing.
	(md_apply_fix3): Handle DVP_OPERAND_DMA_NEXT.
	(unique_name,setup_autocount): New functions.
1998-02-19 22:51:08 +00:00
Doug Evans
6370553445 Rewrite dma operands/opcodes tables. 1998-02-19 22:40:08 +00:00
Doug Evans
aece8f205d * dvp.h (DVP_OPERAND_DMA_*): Rewrite.
(DVP_OPERAND_AUTOCOUNT): New modifier.
	(dma_operand_{count,addr}): Declare.
1998-02-19 22:37:34 +00:00
Nick Clifton
0a2f6d9304 test 32 bit BCL instruction. 1998-02-19 21:52:27 +00:00
John Metzler
180d1f0b50 Fall back from using igen to using gencode for the mips64vr4100 because
igen is not ready yet.
1998-02-19 21:28:50 +00:00
Nick Clifton
4630c94949 Add more tests. 1998-02-19 19:43:18 +00:00
Nick Clifton
d03da19e36 Added a couple of tests. 1998-02-19 19:16:54 +00:00
Ian Lance Taylor
ccac0df194 * configure.in: Don't build libgui for a cygwin32 target when not on
a cygwin32 host.
1998-02-19 18:43:09 +00:00
Gavin Romig-Koch
f319bab251 * interp.c (load_memory): Add missing "break"'s. 1998-02-19 15:24:10 +00:00
Doug Evans
1ece1d561b * config/tc-dvp.c: Include stdarg.h/varargs.h.
(md_pseudo_table): Add .word.
	(assemble_dma): Set alignment to 16 bytes.  Enable code that records
	fixups.
	(assemble_one_insn): Handle DVP_OPERAND_DMA_{ADDR,AUTOCOUNT}.
	(md_apply_fix3): Handle DVP_OPERAND_DMA_ADDR.
	(parse_dma_addr_autocount): Renamed from parse_dma_ptr_autocount.
	Rewrite.
	(eval_expr): New function.
	(create_label,create_colon_label): New function.
	(s_enddmadata): Rewrite.
1998-02-19 10:24:15 +00:00
Doug Evans
c9320f0675 * dvp.h (DVP_OPERAND_DMA_{ADDR,AUTOCOUNT}): Split
DVP_OPERAND_DMA_PTR_AUTOCOUNT into two.
	(dma_operand_{count,addr}): Declare.
1998-02-19 10:10:32 +00:00
Richard Henderson
9c0e2b9ee4 * Makefile.am (install-exec-local): Install properly when ln
fails or tooldir == prefix.
1998-02-19 07:44:04 +00:00
Nick Clifton
65850016ba Special case handling of updates to the condition bit to allow for the fact
that it is shadowed by several registers.
1998-02-19 02:13:27 +00:00
Doug Evans
1028c33feb * tc-dvp.c: Allow FAKE arguments to have a parser handler. 1998-02-19 00:40:15 +00:00
Doug Evans
a48a6f2301 Allow FAKE arguments to have a parser handler. 1998-02-19 00:39:38 +00:00
Doug Evans
18daef646e fix thinko in last patch 1998-02-18 23:57:47 +00:00
Doug Evans
19f12fb41c * config/tc-dvp.c (parse_float): New function.
(assemble_vu): Handle loi insns.
	(assemble_one_insn): Simplify suffix parsing.
	Handle DVP_OPERAND_FLOAT.
1998-02-18 23:56:15 +00:00
Doug Evans
1b4817e3c3 * dvp-dis.c (print_vu): Handle loi insns.
(print_insn): Likewise.
	* dvp-opc.c (vu_lower_opcodes): Add "loi".
1998-02-18 23:49:27 +00:00
Nick Clifton
20419451ad Added --Wp and --Wnp abbreviations for --[no-]warn-explicit-parallel-conflicts.
Forced parallel constructions to use non-relaxable aliases of insns.
1998-02-18 22:35:08 +00:00
Frank Ch. Eigler
e23069923b * Started PKE sim unit testing. A number of minor errors were corrected.
A few PKE instructions even run correctly!  Next missing function of
  interest: FIFO pruning.

	* sky-pke.c (pke_issue): Take extra SIM_DESC argument.
	(pke_attach): Attach correct PKE0/PKE1 device.  Open trace file if
 	VIF{0,1}_TRACE_FILE env. var. is defined.
	(pke_io_write_buffer): Classify words in FIFO quadword.  Use
 	kludgey sim_core routines to access DMA registers.
	(pke_pc_advance): Add PKEcode classification.  Correct DMA tag
 	skipping.  Emit trace records.
	(pke_pc_fifo): Add PKEcode operand classification.
	(pke_check_stall): Perform stall checks against updated register
 	scheme.
	(pke_code_unpack): Correct operand-count calculation.
	(pke_code_stmask): Correct instruction skipping.

	* sky-pke.h (PKE_MEM_WRITE, PKE_MEM_READ): New kludge macros.
	(BIT_MASK_BTW): Corrected off-by-one error.
	(enum wordclass): Classify words in a FIFO quadword.

	* sky-dma.c (dma_io_read_buffer): Correct address checking assertions.

	* sky-engine.c (engine_run): Pass along SIM_DESC to PKE
 	instruction issue code.
1998-02-18 21:26:38 +00:00
Doug Evans
b1c9871889 Delete rac-d,rac-ds,rach-d,rach-ds, they're aliases. 1998-02-18 20:39:02 +00:00
Doug Evans
cf6145bc28 .Sanitize for devo/sim/testsuite/sim/m32r. 1998-02-18 20:37:27 +00:00
Jeff Law
0983e650e5 * simops.c (multiply instructions): Cast input operands to a
signed64/unsigned64 type as appropriate.
1998-02-18 20:05:53 +00:00
Nick Clifton
af82efaf88 Treat a double vertical bar as a seperator between instructions. 1998-02-18 19:01:59 +00:00
James Lemke
3733e09fb6 DMA define names changed (SRCADDR -> MADR). 1998-02-18 16:47:03 +00:00
Doug Evans
e4cf2977c7 (CGEN_{INSN,KEYWORD,OPERAND}_NBOOL_ATTRS): Renamed from ..._MAX_ATTRS. 1998-02-18 07:57:59 +00:00
Doug Evans
deaa05853b * cgen.h (CGEN_SYNTAX_MAKE_FIELD): New macro. 1998-02-18 05:46:37 +00:00
Andrew Cagney
8dcc896d0e Extend sim-trace.[hc] to include a generic set of macro's for tracing
ALU/... inputs/outputs.
Base implementation on original v850 code.
Update igen to generate code interfacing with newer sim-trace.[hc].
1998-02-18 04:11:09 +00:00
Doug Evans
5871376494 * config.bfd (targ_archs): If mips64r5900-sky-elf, add bfd_dvp_arch. 1998-02-18 04:04:07 +00:00
Doug Evans
63aa1c7407 * cen.c (cgen_md_apply_fix3): Delete call to validate_operand.
Test result of insert_operand for error.
1998-02-18 02:59:52 +00:00
Doug Evans
98a112c069 * dvp-opc.c (parse_vfreg): Dest spec is optional.
(print_vfreg): Don't print dest spec.
	(parse_accdest): Dest spec is optional.
	(print_accdest): Don't print dest spec.
1998-02-18 02:50:58 +00:00
Doug Evans
1e796e1d54 * gas/dvp/{basic-1,lower-1,upper-1,upper-2}.d: Update to remove dest
spec on operands.
1998-02-18 02:46:36 +00:00
Richard Henderson
a3a4bb5d4a * objcopy.c (compare_section_lma): Rename from _vma.
(copy_object): Gap fill based on LMA not VMA.
	* binutils.texi: Update and clarify.
	* objcopy.1: Likewise.

PR 14917
1998-02-18 02:45:07 +00:00
Doug Evans
0c22a4c125 remove #ifdef HAVE_CPU_M32RX uses. tweak some comments 1998-02-18 02:31:57 +00:00
Doug Evans
b8641a4d20 * Makefile.in (M32R_OBJS): Add cpu.o.
(cpu.o): Add rule for.
	(NL_TARGET): Define.
	* configure.in: Add AC_CHECK_PROG(SCHEME).
	* cpu.c: New file.
	* cpuall.h,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
	* sem-switch.c,sem.c: Regenerate.
	* mloop.in (execute): Update call to semantic fn.
	(M32RX_OBJS): Add cpux.o.
	(cpux.o): Add rule for.
	cpux.c: New file.
	* cpux.h,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
	* m32rx.c (m32rx_h_accums_{get,set}): Rewrite.
	(m32rx_h_cr_{get,set}): New functions.
	(m32rx_h_accums_{get,set}): New functions.
	* mloopx.in: Rewrite main loop.

	* m32r.c (do_trap): Move from here.
	* sim-if.c (do_trap): To here, and rewrite to use CB_SYSCALL support.
	(sim_create_inferior): Use h_pc_set.
	(h_pc_{get,set}): New functions.
	(h_gr_{get,set}): New functions.
	(syscall_{read,write}_mem): New functions.
	* sim-main.h (h_{gr,pc}_{get,set}): Declare.
1998-02-18 02:26:47 +00:00
Doug Evans
5bd0ca8616 * Make-common.in (CGEN_MAIN_SCM): Update.
* aclocal.m4 (USE_MAINTAINER_MODE): New variable.
1998-02-18 02:05:54 +00:00
Ian Lance Taylor
c9b3e42e6b * dlltool.c (make_one_lib_file): Don't add 1 to hint. 1998-02-18 01:34:41 +00:00
Doug Evans
4f071e3056 * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.
(SEMANTIC_FN): Rewrite declaration.
	(DECODE): Update type of semantic_fast member.
	({EX,SEM}_FN_NAME): Have only one version.
	* cgen.sh: Support building cpu.c.
	* sim-base.h (sim_state_base): Delete conditionals surrounding
	member scache_size.
1998-02-18 01:30:04 +00:00
Doug Evans
b02643b554 * Makefile.am (CGENFILES): Update.
* Makefile.in: Regenerate.
	* cgen-asm.in (insert_normal): Result is error message now.
	Validate value to be inserted.
	(insert_insn_normal): Result is error message now.
	(@arch@_cgen_assemble_insn): Update.
	* cgen-asm.c (cgen_parse_{signed,unsigned}_integer): Delete min,max
	arguments.  Don't perform validation here.
	* m32r-asm.c,m32r-dis.c,m32r-opc.c: Regenerate.
1998-02-18 01:26:15 +00:00
Doug Evans
652af042db * cgen.h (cgen_insert_fn): Change type of result to const char *.
(cgen_parse_{signed,unsigned}_integer): Delete min,max arguments.
1998-02-18 00:02:27 +00:00
Ian Carmichael
374ed20d80 * XGKICK now uses memory-based GIF fifo. 1998-02-17 23:50:35 +00:00