+
+ * configure: Regenerate.
+
+
+ * configure: Regenerate.
+
* configure: Regenerate.
* interp.c (sim_open): Add support for bfd_arch_v850_rh850
architecture type. Add support for bfd_mach_v850e2 and
bfd_mach_v850e2v3 machine numbers.
- * v850.igen (dbtrap): Add support for SIM_OPEN_DEBUG.
- (cmpf.d): Correct order of operands.
- (cmpf.s): Likewise.
- (trncf.dul): New pattern.
- (trncf.duw): New pattern.
- (trncf.sul): New pattern.
- (trncf.suw): New pattern.
- * v850-dc: Correct bitfield selection for TRNCF.SW and CVTF.SW.
+ * v850.igen (dbtrap): Add support for SIM_OPEN_DEBUG.
+ (cmpf.d): Correct order of operands.
+ (cmpf.s): Likewise.
+ (trncf.dul): New pattern.
+ (trncf.duw): New pattern.
+ (trncf.sul): New pattern.
+ (trncf.suw): New pattern.
+ * v850-dc: Correct bitfield selection for TRNCF.SW and CVTF.SW.
* config.in: Ditto.
* configure: Regenerate.
(OP_2C007E0): Likewise.
(OP_28007E0): Likewise.
* v850.igen (divh): Likewise.
-
+
* simops.c (OP_C0): Correct saturation logic.
(OP_220): Likewise.
(OP_A0): Likewise.
(OP_28007E0): Likewise, for divh. Also, sign-extend the correct
operand.
* v850.igen (divh): Likewise, for 2-op divh.
-
+
* v850.igen (bsh): Fix carry logic.
Only generate a trap if the target is not the v850e1.
Otherwise treat it as a special kind of branch.
(break): Mark as v850/v850e specific.
-
+
* Makefile.in (SHELL): Make sure this is defined.
(simops.h): New file.
($(BUILT_SRC_FROM_IGEN)): Do not depend on simops.h.
* gencode.c: Delete file.
-
+
* Makefile.in (simops.o): Add simops.h to dependency list.
* configure: Regenerated to track ../common/aclocal.m4 changes.
-
+
* Makefile.in (NL_TARGET): Define as -DNL_TARGET_v850.
- * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
* sim-main.h (trace_module): Change variable decl to integer type.
(TRACE_BRANCH*, TRACE_LD, TRACE_ST): Update.
-
+
* interp.c (sim_store_register, sim_fetch_register): Pass in
* v850.igen (BREAK), simops.c (OP_12007E0): Rename SIGTRAP to
SIM_SIGTRAP.
(illegal): Rename SIGILL to SIM_SIGILL.
-
+
* sim-main.h, simops.c, interp.c: Do not include signal.h.
* sim-main.h: Include sim-signal.h instead of signal.h.
* sim-main.h: delete null override of SIM_ENGINE_HALT_HOOK and
SIM_ENGINE_RESTART_HOOK.
-
+
* configure: Regenerated to track ../common/aclocal.m4 changes.
* Makefile.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
SIM_HOSTENDIAN, SIM_RESERVED_BITS): Delete, moved to common.
(SIM_EXTRA_CFLAGS): Update.
-
+
* configure: Regenerated to track ../common/aclocal.m4 changes.
* simops.c: Move "mov", "reti", to v850.igen, fix tracing.
-
+
* interp.c (hash): Delete.
* v850.igen (nop): Really do nothing.
(trace_module): Global, save component/module name across insn.
* simops.c: Move "bsh" to v850.igen, fix.
-
+
* v850.igen (callt): Load correct number of bytes. Fix tracing.
(stsr, ldsr): Correct src, dest fields. Fix tracing.
(ctret): Force alignment. Fix tracing.
-
+
* simops.c (trace_output): Add result argument.
(trace_values, trace_name, trace_pc, trace_num_values): Make
global.
(GR, SR): Define.
-
+
v850.insn (movea, stsr): Use.
(sxb, sxh, zxb, zxh): Ditto.
-
+
* simops.c: Move "movea" from here.
* v850.igen (simm16): Define, sign extend imm16.
(uimm16): Define, no sign extension.
(addi, andi, movea, movhi, mulhi, ori, satsubi, xori): Use.
-
+
* simops.c: Move "sxh", "switch", "sxb", "callt", "dispose",
"mov32" from here.
* v850.igen: To here.
(switch): Fix off by two error in NIA calc.
-
+
* simops.c (trace_pc, trace_name, trace_values, trace_num_values):
(trace_output): Write trace values to a buffer. Use
trace_one_insn to print trace info and buffer.
(SIZE_OPERANDS, SIZE_LOCATION): Delete.
-
+
* sim-main.h (struct _sim_cpu): Add psw_mask so that reserved bits
instructions from here.
* v850.igen (ldsr, stsr): To here. Mask out reserved bits when
setting PSW.
-
+
* interp.c (sim_open): Set psw_mask if machine known.
* simops.c (OP_300, OP_400, OP_70): Make behavour depend on PSW[US].
-
+
* simops.c: Move "divun", "sld.bu", "divhn", "divhun", "divn",
"divun", "pushml" code from here to v850.igen.
(divun): Make global.
(type3_regs): Make global
-
+
* v850.igen: Move simops.c code to here.
* interp.c (sim_create_inferior): For v850eq set US bit by
* v850.igen (prepare, ...): Add to v850eq architecture.
* interp.c (sim_open): Default to v850eq.
-
+
* interp.c (sim_open): Default to v850e.
* sim-main.h (signal.h): Include.
* interp.c (sim_open): Use sim_do_commandf instead of asprintf.
- * sim-main.h (INSN_NAME):
+ * sim-main.h (INSN_NAME):
* Makefile.in (INCLUDE): Add SIM_EXTRA_DEPS.
(SIM_EXTRA_DEPS): Add itable.h
(SEXT32): Delete, used?
(SEXT40, SEXT44, SEXT64): Use UNSIGNED64 for constants, not ...LL.
(WITH_TARGET_WORD_MSB): Define as 31. v850 little bit endian.
-
+
* simops.c: Use EXTEND15 from sim-bits instead of SEXT16.
* sim-main.h (DEBUG_TRACE, DEBUG_VALUES, v850_debug): Delete,
* sim-main.h (WITH_WATCHPOINTS): Define.
(WITH_MODULO_MEMORY): Define
-
+
* Makefile.in (SIM_OBJS): Add sim-resume, sim-watch, sim-stop,
sim-reason.
* sim-main.h: Replace SIM_HAVE_FLATMEM with mem ptr.
* interp.c (map): Do not add to a void pointer.
-
+
* Makefile.in (INCLUDE): Add sim-main.h
* configure.in: Check for time.h
(AC_CHECK_FUNCS): Add utime.
(AC_CHECK_HEADERS): Add stdlib.h, string.h, strings.h, utime.h
configure: Regenerate.
-
+
* Makefile.in (SIM_RUN_OBJS): Use nrun.o.
(SIM_OBJS): Add sim-io.o, sim-hload.o, sim-utils.o, sim-options.o,
* gencode.c (write_template): Generate #include sim-main.h.
(write_opcodes): Ditto.
-
+
* interp.c (prog_bfd, prog_bfd_was_opened_p): Delete.
(v850_callback): Ditto.
(sim_kind, myname): Ditto.
(sim_set_callbacks): Delete.
(sim_set_interrupt): Pass in SD, use.
(start_time): Delete.
-
+
* v850_sim.h: Remove everything except `struct simops' from here.
* sim-main.h: Move most to here.
* gencode.c: Move #includes to here.
* configure.in: Check for time, chmod.
* configure: Regenerate.
* simops.c (SYS_time, SYS_chmod): Use HAVE_TIME, HAVE_CHMOD.
-
+
* simops.c (../../libgloss/v850/sys/syscall.h): Include instead of
sys/syscall.h.
(OP_10007E0): Check the existance each SYS_* macro independantly.
* simops.c (bsh): Only set CY flag if either of the bottom
bytes is zero.
-
+
* simops.c (prepare, dispose): Lower numbered
registers go to higher numbered address.
* simops.c (unsigned divide instructions): S bit set if result has
top bit set.
-
+
* simops.c (pushml, pushmh, popml, popmh): Lower numbered
registers go to higher numbered address.
-
+
* simops.c (OP_107E0, OP_107F0, OP_307E0, OP_307F0): Use correct
* interp.c (sim_resume): Opcode functions return amount to be
added to PC and all opcodes take a standard format in the OP[]
array.
-
+
(do_format_*): Functions removed.
* v850_sim.h (SP, EP): New register mnemonics.
-
+
* gencode.c (write_header): Functions prototypes return an
integer.
* simops.c: Opcode functions return amount to be added to PC.
-
+
* v850_sim.h (CTPC, CTPSW, CTBP): New register mnemonics.
-
+
* simops.c: Add support for v850e instructions.
-
+
* simops.c: Add support for v850eq instructions.
-
+
* interp.c (sim_open): Add callback argument.
* interp.c: Add support for variable-size allocation of memory,
via simulator command "sim memory-map".
(map): Issue SIGSEGV for references to invalid memory regions.
-
+
-
- * simops.c: Include <sys/time.h> for struct timeval and
- struct timezone.
-
+
+ * simops.c: Include <sys/time.h> for struct timeval and
+ struct timezone.
+
* simops.c (OP_10007E0): Handle SYS_times and SYS_gettimeofday.
* (sim_size): MEM_SIZE is now bytes, not shift factor.
-
- * simops.c (trace_input): Swapped order of operands for output
- output of OP_IMM_REG. Changed the fetching of the operands for
- OP_LOAD32, and OP_STORE32 to work like op-function.
-
+
+ * simops.c (trace_input): Swapped order of operands for output
+ output of OP_IMM_REG. Changed the fetching of the operands for
+ OP_LOAD32, and OP_STORE32 to work like op-function.
+
* interp.c: Move includes of remote-sim.h and callback.h to
- * simops.c (trace_input): Fix thinko.
+ * simops.c (trace_input): Fix thinko.
- * ChangeLog, Makefile.in, configure, configure.in, v850_sim.h,
+ * ChangeLog, Makefile.in, configure, configure.in, v850_sim.h,
gencode.c, interp.c, simops.c: Created.