Doug Evans
38377b3a48
* Make-common.in (srccom): New variable.
1997-11-18 07:14:20 +00:00
Doug Evans
269a0e01c7
* Makefile.in (remote-sim.o): Depend on $(INCLUDE_DIR)/callback.h.
1997-11-17 23:36:16 +00:00
Doug Evans
9b51b3ddd3
Tweak comment.
1997-11-17 23:17:31 +00:00
Doug Evans
f7abc1ca0c
* Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
...
(LIB_OBJS): Add syscall.o.
(gentmap): Pass $(NL_TARGET) to $(CC).
(syscall.o): Add rule for.
(sim_main_headers): Add $(SIM_EXTRA_DEPS).
(sim-bits.o): Depend on $(sim-n-bits_h).
(sim-load.o): Depend on callback.h.
* Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
* cgen-mem.h, cgen-ops.h: New files.
* aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
* Makefile.in (nltvals.def): Depend on gennltvals.sh.
Rewrite build rule.
* callback.c: #include string.h or strings.h.
#include sys/types.h and sys/stat.h.
(cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
(enosys): New function.
(os_get_errno,os_open): Update.
(os_stat,os_fstat): New functions.
(os_init): Initialize syscall_map, errno_map, open_map.
(default_callback): Add entries for os_stat, os_fstat, syscall_map,
errno_map, open_map, signal_map, stat_map.
(cb_read_target_syscall_maps): New function.
(cb_target_to_host_syscall): New function.
(cb_host_to_target_errno): Renamed from host_to_target_errno.
(cb_target_to_host_open): Renamed from target_to_host_open.
(store): New function.
(cb_host_to_target_stat): New function.
* gentmap.c (sys_tdefs): New global.
(gen_targ_vals_h): Output target syscall numbers.
(gen_targ_map_c): Update. Output target syscall translation map.
* gentvals.sh: New first argument `target'. Preface table with
#ifdef NL_TARGET_$target if non-null target passed.
* gennltvals.sh: New file.
* nltvals.def: Regenerated.
1997-11-17 23:09:08 +00:00
Andrew Cagney
891703e5e8
Test SUBI omsn
1997-11-17 22:36:19 +00:00
Doug Evans
8d5306e718
* callback.h (CB_TARGET_DEFS_MAP): Renamed from target_defs_map.
...
(host_callback): Add stat, fstat, syscall_map, errno_map, open_map,
signal_map, stat_map.
(errn_map,open_map): Renamed to cb_init_foo_map.
(cb_host_to_target_errno,cb_target_to_host_open): Renamed from
host_to_target_errno,target_to_host_open.
(cb_read_target_syscall_maps): Add prototype.
(cb_target_to_host_syscall): Likewise.
(cb_host_to_target_stat): Likewise.
(cb_syscall): Likewise.
(CB_SYS_{exit,open,close,read,write,lseek,unlink,getpid,kill,fstat,
argvlen,argv,chdir,stat,chmod,utime,time}): Define.
(CB_SYSCALL): New type.
(CB_RC): New enum.
1997-11-17 22:12:52 +00:00
Jeff Law
bf39c4900e
* elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Fix typo.
...
(mn10300_elf_relax_section): Likewise.
1997-11-17 22:06:48 +00:00
Michael Meissner
7f7e2b0027
Make d30v defaults match chip
1997-11-17 01:21:37 +00:00
Fred Fish
469e5960b1
* peicode.h (coff_swap_aouthdr_in): Cast second arg of
...
bfd_h_get_* calls to "bfd_byte *".
1997-11-17 00:26:46 +00:00
Fred Fish
8d8693868c
* config/obj-coff.c (fixup_segment): Cast second arg of
...
md_apply_fix3 call to type "valueT *".
1997-11-17 00:23:35 +00:00
Doug Evans
cf02c13ce2
(sim_core_signal): Add missing "\n" in message.
...
Forgot to check in yesterday.
1997-11-14 21:52:04 +00:00
Jeff Law
e7f1439940
* jv-exp.y (copy_exp, insert_exp): Avoid ANSI prototypes.
1997-11-14 20:02:46 +00:00
Andrew Cagney
f23e93dab0
* mips.igen: Tag vr5000 instructions.
...
(ANDI): Was missing mipsIV model, fix assembler syntax.
(do_c_cond_fmt): New function.
(C.cond.fmt): Handle mips I-III which do not support CC field
separatly.
(bc1): Handle mips IV which do not have a delaed FCC separatly.
(SDR): Mask paddr when BigEndianMem, not the converse as specified
in IV3.2 spec.
(DMULT, DMULTU): Force use of hosts 64bit multiplication. Handle
vr5000 which saves LO in a GPR separatly.
* configure.in (enable-sim-igen): For vr5000, select vr5000
specific instructions.
* configure: Re-generate.
1997-11-14 08:27:38 +00:00
Andrew Cagney
15ddb4c9ad
Add FreeBSD/aout target confiiguration. Make it a 386BSD clone.
1997-11-13 22:21:36 +00:00
Doug Evans
9e8a900adf
* sim-base.h (sim_state_base): Move `magic' to end of struct.
...
* sim-base.h (sim_state_base): Add member trace_data.
(STATE_TRACE_DATA): New macro.
* sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
({WITH_,}TRACE_DEBUG_P): New macros.
(STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
(_sim_cpu): Delete forward reference.
(debug_printf): Update.
* sim-trace.c (OPTION_TRACE_DEBUG): Define.
(trace_options): Add --trace-debug.
(set_trace_options): Handle it.
(trace_option_handler): Likewise.
(trace_install): Init state trace_data struct.
(trace_uninstall): Close state trace file.
* sim-events.c (ETRACE): Only print source file and number if
--trace-debug.
* sim-n-core.h (sim_core_trace_M): Likewise.
* sim-core.c (sim_core_signal): Add missing "\n" in message.
1997-11-13 21:18:14 +00:00
Felix Lee
c7e3f734a7
* sim-n-core.h (sim_core_read_unaligned_N): illegal empty
...
initializer.
* sim-types.h (unsigned128,signed128): fix typo for MSVC.
1997-11-13 18:45:21 +00:00
Gavin Romig-Koch
9bb4d38497
* mips.h (struct mips_opcode): Changed comments to reflect new
...
field usage.
* mips-opc.c: Move the INSN_MACRO ISA value to the membership
field for all INSN_MACRO's.
* mips16-opc.c: same
* config/tc-mips.c (macro_build): Use the membership field
for INSN_MACRO's.
(mips_ip): Same.
1997-11-13 16:13:03 +00:00
Michael Meissner
35cac98ab5
fix spacing
1997-11-13 15:38:23 +00:00
Michael Meissner
c2f766136e
Add comment about code that is actually d10v specific instead of d30v
1997-11-13 15:11:56 +00:00
Michael Meissner
5d62f957a8
Add info command to print out flags values
1997-11-13 14:52:14 +00:00
Joern Rennecke
832ef2cca2
* config/tc-d10v.c (find_opcode): For OPCODE_FAKE, add check for
...
first argument if it's supposed to be a register.
PR 13952.
1997-11-13 02:19:13 +00:00
Doug Evans
5dcf955d46
* Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
...
built this way.
(sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
(clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
source tree.
1997-11-12 20:29:53 +00:00
Doug Evans
15f5035c7d
* aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
...
Updating of configure's left for later.
1997-11-12 20:19:34 +00:00
Ian Lance Taylor
df1859da76
* ld-cdtest/cdtest-foo.h (class Foo): Declare len to be int to
...
avoid compiler warning.
* ld-srec/sr3.cc (class Foo): Likewise.
1997-11-12 19:20:11 +00:00
Gavin Romig-Koch
cfcbe03ff7
mips-opc.c (sync,cache): These are 3900 insns.
1997-11-12 15:18:56 +00:00
Gavin Romig-Koch
42444087ff
config/tc-mips.c (mips_4900): Added.
...
(hilo_interlocks): Added mips_4900.
(md_begin): Set default for mips_4900.
(macro_build,mips_ip): Test for INSN_4900 if mips_4900.
(md_longopts): Add "m4900" and "no-m4900".
(md_parse_option): Handle above options.
1997-11-12 15:09:33 +00:00
Joern Rennecke
3c7ad09f36
sh-opc.h (sh_table): Remove ftst/nan.
...
Fixes gcc/13330.
1997-11-12 00:02:37 +00:00
Joern Rennecke
f2fafccac2
* app.c (do_scrub_chars): If d10v, re-insert a space before
...
a '#' when in state 10.
Fix for PR 13894.
1997-11-11 19:35:49 +00:00
Ian Lance Taylor
5de020b44e
* config/tc-h8300.c: Include "subsegs.h".
...
(tc_reloc_mangle): Handle references to symbols which are not
being output, so that references to `.' work.
PR 13915.
1997-11-11 18:35:20 +00:00
Jeff Law
fc615b0b1e
* simops.c (call:16 call:32): Stack adjustment is determined solely
...
by the imm8 field.
1997-11-11 17:37:04 +00:00
Andrew Cagney
a94c5493a7
Make the signess of compares between GPR's explicit using a cast to
...
signed_word.
1997-11-11 12:31:24 +00:00
Andrew Cagney
030843d7f8
Fix IGEN version of MFC0, MTC0, SWC1, LWC1, SDC1, LDC1, LWXC1,
...
SWXC1MTC1, MFC1, DMTC1, DMFC1, CFC1, CTC1, MULT, MULTU, BEQZ, ...MTHI,
MFHI instructions.
Trace nullified instruction.
1997-11-11 07:50:13 +00:00
Andrew Cagney
f445a8902d
* sim-events.c (sim_events_process): Re-compute the time -
...
update_time_from_event - as each event is processed. Reverses
previous change.
1997-11-11 07:48:05 +00:00
Andrew Cagney
87192c630a
* simops.c (OP_4201): "rachi". Sign extend bit 40 of ACC. Sign
...
extend bit 44 all constants.
(OP_4201): Replace GCC specific 0x..LL with SIGNED64 macro.
1997-11-10 22:40:14 +00:00
Ian Lance Taylor
13c8330080
* lib/ld-lib.exp (default_ld_simple_link): Permit the linker to
...
have any name when looking for entry symbol warnings.
1997-11-10 22:07:27 +00:00
Ian Lance Taylor
db316a832a
* valprint.c (print_longest): The b, h, w, and g format specifiers
...
print unsigned values.
1997-11-10 20:14:15 +00:00
Michael Meissner
ccb412002c
Configure all directories for d30v
1997-11-10 19:39:04 +00:00
Ian Lance Taylor
9793236cc3
Mon Nov 10 14:32:40 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
...
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't crash if
a version dependency could not be found.
1997-11-10 19:33:59 +00:00
Ian Lance Taylor
20d41979a9
* ld-srec/sr3.cc (__eh_pc): Define.
1997-11-10 19:26:09 +00:00
Ken Raeburn
93d2187d32
fix vr5400 sanitization
1997-11-10 19:24:15 +00:00
Ian Lance Taylor
77635763d6
* config/tc-m68k.c (m68k_ip): Call add_fix when needed for '_'
...
case.
PR 13886.
1997-11-10 19:15:45 +00:00
Ian Lance Taylor
f19d08dc40
* macro.c (sub_actual): If we don't find a parameter for an &,
...
just substitute &.
PR 13868.
1997-11-10 18:45:31 +00:00
Andrew Cagney
51624b4bf6
Test rachi instruction.
1997-11-10 08:27:15 +00:00
Andrew Cagney
8cb060b6b0
* callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
1997-11-10 02:08:50 +00:00
Michael Meissner
cb7732ecbd
Configure newlib, libiberity for d30v.
1997-11-09 22:37:20 +00:00
Jeff Law
004d8ce36d
* Makefile.am (bin_PROGRAMS): Don't use line continuations here.
...
Avoid blank line after a line continuation. Fixes problems with many
non-gnu makes.
1997-11-09 18:00:55 +00:00
Michael Meissner
64a383a412
Add libgloss to d30v build list
1997-11-08 19:45:25 +00:00
Ken Raeburn
b3ed1af38c
* config/tc-mips.c (mips_ip): Added cases for "e", "%", and "P" operand types.
...
(hilo_interlocks): VR5400 has interlocks.
(md_begin): Expect mips64vr5400, not mips64r5400.
* config/tc-mips.c (mips_ip): In default case, call as_bad instead of fprintf,
to get "assembler messages:" message output before instead of after.
1997-11-08 02:44:22 +00:00
Ken Raeburn
4aa424c7a7
* gas/mips/vr5400.s, gas/mips/vr5400.d: New test, for VR5400-specific
...
instructions.
* gas/mips/mips.exp: Run it.
* gas/ieee-fp/x930509a.exp: Don't run IEEE FP tests for Vax targets.
1997-11-08 02:41:48 +00:00
Doug Evans
4afb407dae
* frags.h: Handle multiple inclusion.
1997-11-07 18:37:06 +00:00