Jeff Law [Wed, 24 Sep 1997 07:27:43 +0000 (07:27 +0000)]
r5900 sanitization fixes.
Ian Lance Taylor [Tue, 23 Sep 1997 23:04:37 +0000 (23:04 +0000)]
* elf.c (map_sections_to_segments): Even if we are not demand
paged, don't put a loadable section after a nonloadable section.
(assign_file_positions_for_segments): Increment the file offset
for a section with contents, even if it is not loadable.
PR 13139.
Ian Lance Taylor [Tue, 23 Sep 1997 22:10:55 +0000 (22:10 +0000)]
* app.c (do_scrub_chars): Clear mri_state at end of .mri
pseudo-op.
Ian Lance Taylor [Tue, 23 Sep 1997 21:49:22 +0000 (21:49 +0000)]
* config/tc-mips.c (hilo_interlocks): Change from a static
variable to a macro, so that it varies with the variables upon
which it depends.
(gpr_interlocks, cop_interlocks): Likewise.
(md_begin): Don't initialize them.
Jeff Law [Tue, 23 Sep 1997 21:45:43 +0000 (21:45 +0000)]
mips64vr5900el-elf -> mips64r5900-elf.
Stan Shebs [Tue, 23 Sep 1997 18:25:55 +0000 (18:25 +0000)]
* Makefile.in (ALLCONFIG): Remove, inaccurate and never used.
Felix Lee [Tue, 23 Sep 1997 18:08:09 +0000 (18:08 +0000)]
* sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
an hour.
* sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
if (0) { 1 % 0; }
* sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
(SIGBUS) define for Windows.
* sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
* sim-resume.c: define SIGTRAP for windows.
* sim-xcat.h: use token pasting if ALMOST_STDC.
Jeff Law [Tue, 23 Sep 1997 16:42:24 +0000 (16:42 +0000)]
vr5900 -> r5900
Accept r5900el too
Jeff Law [Tue, 23 Sep 1997 16:36:19 +0000 (16:36 +0000)]
vr5900 -> r5900
Jeff Law [Tue, 23 Sep 1997 16:33:28 +0000 (16:33 +0000)]
vr5900 -> r5900
Accept r5900el too.
Jeff Law [Tue, 23 Sep 1997 16:31:33 +0000 (16:31 +0000)]
vr5900 -> r5900
r5900 is always little endian.
Jeff Law [Tue, 23 Sep 1997 16:21:23 +0000 (16:21 +0000)]
vr5900-r5900.
Andrew Cagney [Tue, 23 Sep 1997 08:40:55 +0000 (08:40 +0000)]
Check v850eq popm[hl] instructions.
Check v850 NMI/RETI.
Peter Schauer [Tue, 23 Sep 1997 07:10:51 +0000 (07:10 +0000)]
* mips-tdep.c (mips_push_arguments): Tweak alignment of register
value if the remaining length of a non-integral argument is smaller
than the register size for big-endian non-EABI mode.
* rs6000-tdep.c (branch_dest): Handle return from signal
handler function via sigreturn kernel call.
Andrew Cagney [Tue, 23 Sep 1997 04:05:50 +0000 (04:05 +0000)]
* Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign configured values.
(CONFIG_CFLAGS): Add same.
Felix Lee [Tue, 23 Sep 1997 03:51:33 +0000 (03:51 +0000)]
* sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
(SIGNED32): use ##i32.
Felix Lee [Tue, 23 Sep 1997 03:48:59 +0000 (03:48 +0000)]
* configure.in: i386-windows is a cross, so don't expect
libiberty to be there.
* configure: updated.
Andrew Cagney [Tue, 23 Sep 1997 01:25:26 +0000 (01:25 +0000)]
Remove need to update <targ>/Makefile.in when adding optional options
to <targ>/configure.in.
Simplify logic used to select target [default] endianness.
Dawn Perchik [Mon, 22 Sep 1997 22:52:23 +0000 (22:52 +0000)]
* stabsread.h, symtab.h, dbxread.c, symtab.c, stabsread.c:
Fix prototypes. Remove function scoped function declarations.
Ian Lance Taylor [Mon, 22 Sep 1997 22:33:48 +0000 (22:33 +0000)]
* ldlang.c (wild_doit): Revert patch of September 3.
It doesn't work with linker scripts that use NOLOAD for debugging
sections.
Nick Clifton [Mon, 22 Sep 1997 19:28:04 +0000 (19:28 +0000)]
Removed v850eq sanitization.
Ian Lance Taylor [Mon, 22 Sep 1997 16:07:31 +0000 (16:07 +0000)]
remove v850 sanitization
Ian Lance Taylor [Mon, 22 Sep 1997 15:29:33 +0000 (15:29 +0000)]
only remove more.parse if it exists
Andrew Cagney [Mon, 22 Sep 1997 09:40:57 +0000 (09:40 +0000)]
Add memory alignment config option.
Andrew Cagney [Mon, 22 Sep 1997 09:34:28 +0000 (09:34 +0000)]
Enable --alignment option, stop sim-options.c hardwiring the alignment.
Andrew Cagney [Mon, 22 Sep 1997 09:16:14 +0000 (09:16 +0000)]
Fix disabling of model code when simulator does not support modeling.
Stops `-p' crashing simulators.
Andrew Cagney [Mon, 22 Sep 1997 02:49:57 +0000 (02:49 +0000)]
Simplify logic behind the generic configuration option --enable-sim-alignment.
Ken Raeburn [Mon, 22 Sep 1997 01:06:25 +0000 (01:06 +0000)]
don't sanitize out empty directories if they're not here (e.g., 'cvs co -P')
Ken Raeburn [Mon, 22 Sep 1997 00:27:36 +0000 (00:27 +0000)]
Lose the empty directories only if they exist; otherwise Sanitize complains.
Andrew Cagney [Mon, 22 Sep 1997 00:24:46 +0000 (00:24 +0000)]
Add support for --enable-sim-alignment to simulator common aclocal.m4
Add support for --alignment={strict,nonstrict,forced} to simulator common
run-time options.
For v850 use, make the default NONSTRICT_ALIGNMENT.
Nick Clifton [Sun, 21 Sep 1997 19:36:06 +0000 (19:36 +0000)]
Fixed v850eq sanitization
Nick Clifton [Sun, 21 Sep 1997 19:09:09 +0000 (19:09 +0000)]
Fixed sanitization for v850eq
Nick Clifton [Sun, 21 Sep 1997 17:44:16 +0000 (17:44 +0000)]
Fixed sanitization bugs.
Nick Clifton [Sun, 21 Sep 1997 01:19:51 +0000 (01:19 +0000)]
Removed v850eq sanitization.
Nick Clifton [Sun, 21 Sep 1997 00:19:41 +0000 (00:19 +0000)]
Removed v850eq sanitization.
Added Things-to-loose entries for unspecifed/empty directories.
Nick Clifton [Sat, 20 Sep 1997 23:59:31 +0000 (23:59 +0000)]
Removed v850eq sanitization.
Changed mismatch architecture message to a warning.
Nick Clifton [Sat, 20 Sep 1997 23:40:50 +0000 (23:40 +0000)]
Removed the v850eq sanitization
Nick Clifton [Sat, 20 Sep 1997 23:13:05 +0000 (23:13 +0000)]
Removed v850eq sanitization.
Nick Clifton [Sat, 20 Sep 1997 23:07:04 +0000 (23:07 +0000)]
Removed v850eq sanitization.
Nick Clifton [Sat, 20 Sep 1997 22:46:30 +0000 (22:46 +0000)]
Remove use of sanitization to select target CPU. This is now done based
on the contents of the configuration string TARGET_CPU.
Gavin Romig-Koch [Sat, 20 Sep 1997 18:22:22 +0000 (18:22 +0000)]
Add handling for 3900's SDBBP, DERET, and RFE insns.
* gencode.c (SDBBP,DERET): Added (3900) insns.
(RFE): Turn on for 3900.
* interp.c (DebugBreakPoint,DEPC,Debug,Debug_*): Added.
(dsstate): Made global.
(SUBTARGET_R3900): Added.
(CANCELDELAYSLOT): New.
(SignalException): Ignore SystemCall rather than ignore and
terminate. Add DebugBreakPoint handling.
(decode_coproc): New insns RFE, DERET; and new registers Debug
and DEPC protected by SUBTARGET_R3900.
(sim_engine_run): Use CANCELDELAYSLOT rather than clearing
bits explicitly.
* Makefile.in,configure.in: Add mips subtarget option.
* configure: Update.
Felix Lee [Sat, 20 Sep 1997 01:53:41 +0000 (01:53 +0000)]
* config/i386/windows.mh (XDEPFILES): need to list some files
explicitly, for odd reasons.
Jeff Law [Fri, 19 Sep 1997 23:09:08 +0000 (23:09 +0000)]
* config/tc-mn10300.c (md_assemble): Use strcasecomp instead
of strcmp where appropriate.
Fixes problem in one of mec's prs.
Gavin Romig-Koch [Fri, 19 Sep 1997 13:39:55 +0000 (13:39 +0000)]
* gencode.c: Add r3900 (tx39).
* gencode.c: Fix some configuration problems by improving
the relationship between tx19 and tx39.
Andrew Cagney [Fri, 19 Sep 1997 08:11:40 +0000 (08:11 +0000)]
Add alignment option.
Add support for hardwired and default alignment to configuration.
Andrew Cagney [Fri, 19 Sep 1997 06:40:11 +0000 (06:40 +0000)]
More tests.
Have sld check verify that the processor is a v850eq.
Andrew Cagney [Fri, 19 Sep 1997 06:39:21 +0000 (06:39 +0000)]
Clean up tracing for Bcond & jmp insns.
Fix computation of disp16 and disp22.
Clean up tracing of sld* insns.
Andrew Cagney [Fri, 19 Sep 1997 04:41:01 +0000 (04:41 +0000)]
Correctly locate `_' in generated names.
Andrew Cagney [Fri, 19 Sep 1997 02:20:02 +0000 (02:20 +0000)]
Fix cmov immed.
Andrew Cagney [Fri, 19 Sep 1997 02:16:41 +0000 (02:16 +0000)]
Correct ordering of args for cmov insn.
David Edelsohn [Fri, 19 Sep 1997 01:06:57 +0000 (01:06 +0000)]
Update sparc -A/-xarch docs.
David Edelsohn [Fri, 19 Sep 1997 00:57:16 +0000 (00:57 +0000)]
* config/tc-sparc.c: (lookup_arch,init_default_arch): New functions.
(default_arch,default_init_p,sparc_arch_table): New static locals.
(sparc_arch_size): New static local.
(max_architecture): Initialize in init_default_arch.
(md_parse_options): Call init_default_arch if necessary.
Rewrite -xarch/-A processing.
(md_show_usage): Print -A values from sparc_arch_table.
(md_begin): Call init_default_arch if necessary.
(sparc_md_end): Handle both 32 and 64 bit environments.
* config/tc-sparc.h (TARGET_FORMAT): Likewise.
* acconfig.h (SPARC_V9,SPARC_ARCH64): Delete.
(DEFAULT_ARCH): Add.
* config.in: Regenerate.
* configure.in (sparc): Default DEFAULT_ARCH based on target cpu.
(SPARC_V9,SPARC_ARCH64): Delete.
* configure: Regenerate.
* config/vms-conf.h (SPARC_V9,SPARC_ARCH64): Delete.
Andrew Cagney [Fri, 19 Sep 1997 00:50:24 +0000 (00:50 +0000)]
Change semantic function name to semantic_<INSN>_<FMT> instead of
semantic_<FMT>_<INSN>.
Andrew Cagney [Fri, 19 Sep 1997 00:50:19 +0000 (00:50 +0000)]
Fix cmov insn.
Nick Clifton [Fri, 19 Sep 1997 00:43:54 +0000 (00:43 +0000)]
Reset processor mask if specified by command line switch
David Edelsohn [Thu, 18 Sep 1997 23:45:12 +0000 (23:45 +0000)]
* gas/sparc/splet.d: Update to new objdump output format.
* gas/sparc/{asi.d,membar.d,prefetch.d,rdpr.d,wrpr.d}: Likewise.
* gas/sparc/set64.[ds]: New testcase.
* gas/sparc/splet-2.[ds]: New testcase.
* gas/sparc/sparc.exp: Run them.
David Edelsohn [Thu, 18 Sep 1997 23:44:43 +0000 (23:44 +0000)]
* gas/sparc/{asi.d,membar.d,prefetch.d,rdpr.d,wrpr.d}: Update to new
objdump output format.
* gas/sparc/set64.[ds]: New testcase.
* gas/sparc/splet-2.[ds]: New testcase.
* gas/sparc/sparc.exp: Run them.
Nick Clifton [Thu, 18 Sep 1997 23:15:05 +0000 (23:15 +0000)]
Oops - fixed typos in previous delta.
Andrew Cagney [Thu, 18 Sep 1997 22:50:58 +0000 (22:50 +0000)]
Allow tk, tcl, itcl et.al. to be built with a canadian cross.
Nick Clifton [Thu, 18 Sep 1997 22:16:18 +0000 (22:16 +0000)]
Proced error messages when special data are relocations are used on
instructions which do not support them.
Nick Clifton [Thu, 18 Sep 1997 22:02:06 +0000 (22:02 +0000)]
Improved error message to include symbol's name.
David Edelsohn [Thu, 18 Sep 1997 21:12:06 +0000 (21:12 +0000)]
* config/tc-sparc.c: Reorganize file.
(SPECIAL_CASE_NONE): New macro.
(md_assemble): Use it.
Nick Clifton [Thu, 18 Sep 1997 21:09:14 +0000 (21:09 +0000)]
Added code to cope with a constant offset to a ZDA relocation.
David Edelsohn [Thu, 18 Sep 1997 18:25:50 +0000 (18:25 +0000)]
* config/tc-sparc.c (parse_keyword_arg): Allow numbers in reg names.
David Edelsohn [Thu, 18 Sep 1997 18:23:30 +0000 (18:23 +0000)]
* sparc-opc.c (sparclet_cpreg_table): Add %ccsr2, %cccrr, %ccrstr.
David Edelsohn [Thu, 18 Sep 1997 18:18:22 +0000 (18:18 +0000)]
* gas/sparc/splet.d: Update to new objdump output format.
David Edelsohn [Thu, 18 Sep 1997 18:17:07 +0000 (18:17 +0000)]
Remove arc sanization.
David Edelsohn [Thu, 18 Sep 1997 18:15:14 +0000 (18:15 +0000)]
Remove arc sanitization.
Felix Lee [Thu, 18 Sep 1997 06:03:52 +0000 (06:03 +0000)]
sanitization fixes. typoes, missing fences, "start" instead of "end", etc.
Felix Lee [Thu, 18 Sep 1997 04:56:22 +0000 (04:56 +0000)]
add missing files.
Felix Lee [Thu, 18 Sep 1997 01:33:24 +0000 (01:33 +0000)]
v850 files that weren't being removed if !keep-v850
Nick Clifton [Thu, 18 Sep 1997 00:43:19 +0000 (00:43 +0000)]
Corrected spelling mistake!
Nick Clifton [Wed, 17 Sep 1997 23:55:26 +0000 (23:55 +0000)]
Added support for ctoff() reloc prefix.
Nick Clifton [Wed, 17 Sep 1997 23:50:21 +0000 (23:50 +0000)]
Added support for the call table relocations.
Felix Lee [Wed, 17 Sep 1997 23:46:49 +0000 (23:46 +0000)]
* sim-main.h (kill): macro was missing args.
(SIGTRAP): define for MSVC.
Nick Clifton [Wed, 17 Sep 1997 23:45:41 +0000 (23:45 +0000)]
Added support for the call table data area.
Nick Clifton [Wed, 17 Sep 1997 23:39:04 +0000 (23:39 +0000)]
Added new relocations to handle the call table.
Mark Alexander [Wed, 17 Sep 1997 20:59:27 +0000 (20:59 +0000)]
Fix tx19 sanitization.
Nick Clifton [Wed, 17 Sep 1997 16:52:23 +0000 (16:52 +0000)]
Catch relocations against non-existant symbols.
Andrew Cagney [Wed, 17 Sep 1997 13:46:29 +0000 (13:46 +0000)]
Test US bit of v850eq.
Loop program for testing interrupt delivery.
Andrew Cagney [Wed, 17 Sep 1997 08:14:23 +0000 (08:14 +0000)]
Clean up more tracing.
FIX interrupt delivery - was zapping PSW before it had been saved.
FIX interrupt return, was one instruction out.
Andrew Cagney [Wed, 17 Sep 1997 08:13:07 +0000 (08:13 +0000)]
* sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
trace output.
* sim-core.c (sim_core_signal): When bad access halt simulator
SIGSEGV / SIGBUS instead of aborting.
(signal.h): Include.
* sim-watch.c (sim_watchpoint_install): Handler for watchpoint
options was missing.
Andrew Cagney [Wed, 17 Sep 1997 05:31:00 +0000 (05:31 +0000)]
Fix tracing for: "ctret", "bsw", "hsw"
Fix bugs in: "bsh", "callt", "stsr".
Andrew Cagney [Wed, 17 Sep 1997 05:28:32 +0000 (05:28 +0000)]
Define MOVED macro, move sub-bitfield from XXX to YYY.
Andrew Cagney [Wed, 17 Sep 1997 05:27:56 +0000 (05:27 +0000)]
More v850 simulator tests.
Bob Manson [Wed, 17 Sep 1997 05:24:14 +0000 (05:24 +0000)]
* gdb.base/callfuncs.exp: Fix indentation.
* lib/gdb.exp(gdb_expect): Set remote_suppress_flag if
suppress_flag has been set.
(gdb_step_for_stub): Check for gdb,use_breakpoint_for_stub
target feature.
Per Bothner [Wed, 17 Sep 1997 04:28:14 +0000 (04:28 +0000)]
* valops.c (search_struct_field): Search basesclasses in
ascending, not descending order. Hack to avoid virtual baseclass
botch for Java interfaces.
Per Bothner [Wed, 17 Sep 1997 03:38:30 +0000 (03:38 +0000)]
* jv-exp.y (push_fieldnames): New, to handle EXP.FIELD1....FIELDN.
(push_expression_name): New, to handle expression names.
(push_qualified_expression_name): New, for qualified expression names.
(parse_number): Fix bugs in parsing of non-decimal integers.
* jv-lang.h, jv-lang.c (java_demangle_type_signature): New.
* jv-lang.c (type_from_class): Just use name with java_lookup_class.
(java_link_class_type): Add dummy "class" field.
(java_lookup_type): New.
(evaluate_subexp_java case STRUCTOP_STRUCT): Force to address.
* jv-typeprint.c (java_type_print_base): Don't print "class" field.
Use java_demangle_type_signature to print array class types.
* jv-valprint.c (java_value_print): Preliminary array support.
Print pointer as TYPE@HEXADDR, instead of (TYPE)0xHEXADDR.
(java_val_print): Move check for object type to java_value_print.
Check for null. Print pointer as @HEXADDR, not 0xHEXADDR.
Andrew Cagney [Wed, 17 Sep 1997 03:31:09 +0000 (03:31 +0000)]
More v850 simulator tests.
Andrew Cagney [Wed, 17 Sep 1997 03:25:54 +0000 (03:25 +0000)]
Add/test 8bit bit manipuation macros.
Test LS and MS versions of SEXT macro.
Simplify/test macro returning a single bit.
Per Bothner [Wed, 17 Sep 1997 02:57:39 +0000 (02:57 +0000)]
* util.c (run_cleanup_chain, make_run_cleanup, do_run_cleanups):
New cleanup clean for cleanups to be run when at each 'run' command.
* infcmd.c (run_command): Call do_run_cleanups.
* solib.c (find_solib): Register cleanup to call clear_solib
on a new 'run' command.
(symbol_add_stub): First look for existing objfile with same name.
Stan Shebs [Tue, 16 Sep 1997 23:58:01 +0000 (23:58 +0000)]
* monitor.h (MO_SREC_ACK_PLUS, MO_SREC_ACK_ROTATE): New flags.
* monitor.c (monitor_wait_srec_ack): Add DINK32-specific ack code.
* dsrec.c (load_srec): Always write a header S-record.
* dink32-rom.c (dink32_regnames): Fix the names of float registers.
(dink32_cmds): Set to use S-record downloading with acks.
* remote-est.c (est_cmds): Add MO_SREC_ACK_PLUS flag.
Andrew Cagney [Tue, 16 Sep 1997 23:57:57 +0000 (23:57 +0000)]
Generic rules for building simple simulator test programs.
Stan Shebs [Tue, 16 Sep 1997 23:01:29 +0000 (23:01 +0000)]
* remote-sds.c (sds_load): New function.
(sds_ops): Use it.
(sds_open): Don't set inferior_pid yet.
(sds_kill): Remove contents.
(sds_create_inferior): Rewrite to work more like monitor
interfaces.
(sds_restart): Remove, no longer used.
Nick Clifton [Tue, 16 Sep 1997 22:15:48 +0000 (22:15 +0000)]
Further rearrangements of the opcodes.
Ken Raeburn [Tue, 16 Sep 1997 21:31:03 +0000 (21:31 +0000)]
* d30v-opc.c (rot2h, sra2h, srl2h insns): Revert last change. (PR 13051)
Nick Clifton [Tue, 16 Sep 1997 21:21:30 +0000 (21:21 +0000)]
Add support for a 16 bit reloc against the TDA pointer!
Nick Clifton [Tue, 16 Sep 1997 21:16:15 +0000 (21:16 +0000)]
Add support for a 16 bit relocation against the TDA register!
Nick Clifton [Tue, 16 Sep 1997 21:13:48 +0000 (21:13 +0000)]
Add new reloc, R_V850_TDA_16_16_OFFSET.
Gavin Romig-Koch [Tue, 16 Sep 1997 20:01:00 +0000 (20:01 +0000)]
* sim/mips/gencode.c (build_instruction): Don't need to subtract 4 for
JALR, just 2.