Andrew Cagney [Wed, 1 Apr 1998 04:52:37 +0000 (04:52 +0000)]
* d10v-tdep.c (d10v_extract_return_value): Wierd. GCC wants to return
odd sized register quantities with only half of the first register used!
* config/d10v/tm-d10v.h (USE_STRUCT_CONVENTION): Use stack when size > 8.
Ian Lance Taylor [Tue, 31 Mar 1998 22:54:00 +0000 (22:54 +0000)]
* Makefile.am (DEP_INCLUDES): New variable.
(.dep1): Change to work when srcdir is not an absolute path.
(.tcdep, .objdep, .dep2): Likewise.
* Makefile.in: Rebuild.
Ian Lance Taylor [Tue, 31 Mar 1998 22:19:53 +0000 (22:19 +0000)]
* configure.in: Add $(LIBIDETCL) as well as $(LIBIDE) if
--enable-ide.
* Makefile.in (IDE_CFLAGS_X): Add -I for libidetcl/src.
(LIBIDETCL): Define.
* configure: Rebuild.
James Lemke [Tue, 31 Mar 1998 21:46:31 +0000 (21:46 +0000)]
* sky-dma.c: Clarify text in warning msg.
* interp.c: Add global option "float-type".
* sky-vu.h: Add SIM_DESC sd; to VectorUnitState for accessing
global options.
Bob Manson [Tue, 31 Mar 1998 08:42:55 +0000 (08:42 +0000)]
* lib/gdb.exp(gdb_test): Send multiline commands one at a time; wait
for a newline from gdb before continuing.
(default_gdb_exit): Just look for y or n.
Jason Molenda [Tue, 31 Mar 1998 00:46:48 +0000 (00:46 +0000)]
Mon Mar 30 16:42:12 1998 Jason Molenda (crash@bugshack.cygnus.com)
* rdi-share/Makefile.am, rdi-share/aclocal.m4,
rdi-share/configure: New files.
* rdi-share/configure.in: Rewritten to be an autoconf input file.
* rdi-share/Makefile.in, rdi-share/configure: Generated by
automake/autoconf.
* rdi-share/dbg_hif.h, etherdrv.c, hostchan.c: Use autoconf tests
to check environment.
automake/autoconfiscate rdi-share. We don't use the checks that autoconf
provides too much for now, but it'll be easier to use them if any problems
crop up in the future. (rdi-share/ is foreign code and it probably isn't
worth spending any more time than necessary messing with it.)
Ian Lance Taylor [Mon, 30 Mar 1998 16:24:28 +0000 (16:24 +0000)]
Mon Mar 30 11:22:08 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* config/tc-i386.h (FWait): Define.
* config/tc-i386.c (md_assemble): Emit fwait prefix before any
other prefixes. Check FWait flag in opcode table to see which
instructions require an fwait prefix.
Ian Lance Taylor [Mon, 30 Mar 1998 15:54:24 +0000 (15:54 +0000)]
* elf.c (_bfd_elf_copy_private_section_data): Call
copy_private_bfd_data once we've seen the last SEC_ALLOC section.
Fixes strip on Irix 6. Without this, a stripped program would report
22964:g++: rld: Warning: This object has a DT_MIPS_OPTIONS tag, but no corresponding
program header. This could be the result of file corruption
or faulty compilation/linking.
Ian Lance Taylor [Mon, 30 Mar 1998 15:29:49 +0000 (15:29 +0000)]
Mon Mar 30 10:25:54 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* i386.h (i386_optab): Change second operand constraint of `mov
sreg,reg|mem' instruction from Reg16|Mem to WordReg|WordMem to
allow legal instructions such as `movl %gs,%esi'
Ian Lance Taylor [Sun, 29 Mar 1998 04:15:29 +0000 (04:15 +0000)]
Fix some gcc -Wall warnings:
* cg_arcs.c (num_cycles): Change to unsigned int.
(numarcs): Likewise.
(arc_add): Change maxarcs to unsigned int.
(cg_assemble): Change index to unsigned int.
* cg_arcs.h (num_cycles, numarcs): Update declarations.
* cg_print.c (cg_print): Change index to unsigned int.
(cg_print_index): Change index, nnames, todo, i, and j to unsigned
int.
(cg_print_file_ordering): Change symbol_count and index2 to
unsigned int.
* core.c (symbol_map_count): Change to unsigned int.
(core_create_function_syms): Change j to unsigned int.
(core_create_line_syms): Add cast to avoid warning.
* hist.c (hist_assign_samples): Change j to unsigned int.
(hist_print): Change index to unsigned i nt. Add cast to avoid
warning.
* sym_ids.c (parse_spec): Add casts to avoid warning.
* symtab.c (symtab_finalize): Change j to unsigned int.
(sym_lookup): Update printf format strings.
* symtab.h (Sym_Table): Change len to unsigned int.
* tahoe.c (tahoe_reladdr): Add casts to avoid warnings.
Ian Lance Taylor [Sat, 28 Mar 1998 21:34:25 +0000 (21:34 +0000)]
* coff-arm.c: Define all globally visible variables and functions
only when COFF_WITH_PE is not defined.
* configure.in (armpe_little_vec, armpe_big_vec): Add
coff-arm.lo.
* configure: Rebuild.
Frank Ch. Eigler [Fri, 27 Mar 1998 22:00:56 +0000 (22:00 +0000)]
* Inserted skeleton of R5900 COP2 simulation. Merged old vu[01].[ch] code
into single PKE-style vu.[ch].
[ChangeLog]
Fri Mar 27 16:19:29 1998 Frank Ch. Eigler <fche@cygnus.com>
start-sanitize-sky
* Makefile.in (SIM_SKY_OBJS): Replaced sky-vu[01].o with sky-vu.o.
* interp.c (sim_{load,store}_register): Use new vu[01]_device
static to access VU registers.
(decode_coproc): Added skeleton of sky COP2 (VU) instruction
decoding. Work in progress.
* mips.igen (LDCzz, SDCzz): Removed *5900 case for this
overlapping/redundant bit pattern.
(LQC2, SQC2): Added *5900 COP2 instruction skeleta. Work in
progress.
* sim-main.h (status_CU[012]): Added COP[n]-enabled flags for
status register.
end-sanitize-sky
* interp.c (cop_lq, cop_sq): New functions for future 128-bit
access to coprocessor registers.
* sim-main.h (COP_LQ, COP_SQ): New macro front-ends for above.
[ChangeLog.sky]
* sky-engine.c (engine_run): Adapted from vu[01] -> vu merge.
* sky-hardware.c (register_devices): Ditto
* sky-pke.c (pke_fifo_*): Made these functions private again, now
that the GPUIF code does not use them.
sky-gs.c: initial drop of GS control registers (outstanding questions)
sky-gs.h: initial drop of GS control registers
Makefile.in: added sky-gs.o to sanitized list
sky-gpuif.c (gif_io_write_buffer): correct memset length error, renamed
trace file for gif
Ian Lance Taylor [Fri, 27 Mar 1998 17:48:28 +0000 (17:48 +0000)]
* config/tc-m68k.c (m68k_ip): Check legal addressing modes for
mcf5200 just as we do for m68000.
(m68k_init_after_args): Likewise.
(md_estimate_size_before_relax): Likewise.
Ron Unrau [Fri, 27 Mar 1998 14:44:39 +0000 (14:44 +0000)]
* sky-vu.c: new file to read/write VU registers
* Makefile.in .Sanitize: add sky-vu.c
* sky-vu.h: define registers as enum, export read/write routines
* sky-vu[01].[ch]: use register read/write routines in sky-vu.c
* interp.c: use register read/write routines in sky-vu.c
Ian Lance Taylor [Fri, 27 Mar 1998 04:10:05 +0000 (04:10 +0000)]
Thu Mar 26 23:07:18 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* config/tc-i386.c (md_assemble): Swap template arguments to
CONSISTENT_REGISTER_MATCH macro in reverse direction test.
This macro is currently symmetric, so passing them the wrong
way didn't cause any problem, but may if the macro is changed
in the future.
After copying template to i.tm, use i.tm. rather than t-> to
access fields, and make t a const*
Move i.tm.operand_types[] swap to immediately after the copy.
* tracepoint.c (trace_status_command): Recognize a boolean return
value from the stub to indicate whether trace experiment is
running. Export this value as a global state variable
(trace_running_p) for use by the GUI. (from Michael Snyder)
(trace_pass_command) added call to modify_tracepoint_hook.
Martin Hunt [Thu, 26 Mar 1998 20:24:19 +0000 (20:24 +0000)]
Thu Mar 26 12:00:35 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdbtk_fputs): Insert fencepost.
(gdb_loc): Correct pc calculation.
(gdb_immediate_command): Return if a load is in progress.
(gdb_cmd): Return if a load is in progress.
(target_stop_wrapper): New function.
(gdb_stop): Call target_stop_wrapper.
(x_event): Add fencepost and optimize load cancel check.
(gdbtk_start_timer): Set up structs only once.
(gdbtk_stop_timer): Just use preset structs to set timer parameters.
(gdb_loadfile): If file cannot be loaded, return error message.
(gdb_loadfile): Add space before tab so that lines without
a '-' can later be changed to have one.
Stu Grossman [Thu, 26 Mar 1998 10:18:35 +0000 (10:18 +0000)]
* Makefile.in (tmp-igen): Prefix all usage of move-if-change
script with $(SHELL) to make NT native builds happy.
* configure: Regenerate because of change to ../common/aclocal.m4.
Andrew Cagney [Thu, 26 Mar 1998 01:13:38 +0000 (01:13 +0000)]
* configure.in: Make --enable-sim-common the default.
* configure: Re-generate.
* sim-main.h (CIA_GET, CIA_SET): Save/restore current instruction
address into Sate.regs[REG_PC] instead of common struct.
Andrew Cagney [Wed, 25 Mar 1998 22:37:33 +0000 (22:37 +0000)]
* hw-tree.c (hw_tree_find_property): Return NULL when device is not found.
(hw_tree_find_*_property): Clean up error message when property is not found.
* dv-pal.c (hw_pal_io_read_buffer): Check the smp property is present before
looking for it.
Doug Evans [Wed, 25 Mar 1998 22:31:13 +0000 (22:31 +0000)]
* config/tc-dvp.h (md_estimate_size_before_relax): Delete.
(md_convert_frag): Delete.
(TC_FIX_TYPE): New fields wl,cl,user_value;
* config/tc-dvp.c (insert_mpg_marker): New argument ignore.
All callers updated.
(insert_unpack_marker): New function.
(insert_file): New argument insert_marker_arg. All callers updated.
(gif_user_value): New static local.
(vif_data_start,vif_data_end): New static locals.
(mpgloc_sym,unpackloc_sym): New static locals.
(cur_varlen_frag,cur_varlen_insn,cur_varlen_value): Delete.
(cur_opcode,cur_operand): New static locals.
(endmpg_caller): New enum.
(md_pseudo_table): Pass ENDMPG_USER to s_endmpg.
(md_begin): Initialize mpgloc_sym, unpackloc_sym.
(dvp_fixup): New members user_value,wl,cl;
(assemble_vif): Rewrite.
(assemble_gif): Tweak name of data start label.
(assemble_one_insn): Allow special parser to punt and call the
normal expression parser. Set cur_opcode,cur_operand for md_operand.
(md_operand): Handle '*' value for mpgloc,unpackloc.
(md_estimate_size_before_relax): New function.
(dvp_relax_frag,md_convert_frag): New functions.
(md_pcrel_from_section): Handle end data label for variable length
vif insns.
(md_apply_fix3): Handle count field for variable length vif insns.
Handle address field for mpg,unpack.
(eval_expr): Initialize user_value,wl,cl fields of the fixup.
(cur_vif_insn_length): Delete.
(vif_length_value): New function.
(install_vif_length): Don't perform logical->physical conversion here.
(s_enddirect,s_endmpg,s_endunpack): Rewrite.
Tom Tromey [Wed, 25 Mar 1998 22:05:40 +0000 (22:05 +0000)]
* configure.in, configure, acconfig.h, aclocal.m4: New files.
* Makefile.in (OBJECTS): Depend on config.h, not ../config.h.
(Makefile): Rebuild Makefile here, not in `..'.
Doug Evans [Wed, 25 Mar 1998 21:43:02 +0000 (21:43 +0000)]
* dvp-dis.c (print_insn): Print unpack address in hex.
* dvp-opc.c (parse_vif_mpgloc): Renamed from parse_vif_mpgloc_star.
Don't skip over '*', just record it.
(insert_vif_mpgloc): Don't update state_vif_mpgloc if '*' value.
(parse_vif_unpackloc): Renamed from parse_vif_unpackloc_star.
Don't skip over '*', just record it.
(insert_vif_unpackloc): Don't update state_vif_unpackloc if '*' value.
(vif_operands): Delete VIF_MPGLOC_STAR,VIF_UNPACKLOC_STAR entries.
(vif_opcodes): Likewise.
(state_vif_{mpg,unpack}loc_star_p): New static locals.
(vif_macros,vif_macro_count): New globals.
(vif_unpack_len_value): New arguments wl,cl. All callers updated.
(vif_set_{mpg,unpack}loc): Delete. All callers updated.
(vif_get_wl_cl): New function.
(dvp_opcode_init_parse): Init mpgloc,unpackloc state.