aboutsummaryrefslogtreecommitdiff
path: root/sim
AgeCommit message (Collapse)AuthorFilesLines
1997-12-02 * interp.c (sim_resume): Call do_2_short with LEFT_FIRST orFred Fish2-26/+36
RIGHT_FIRST, as appropriate, instead of hardcoded ints that don't match enum values. PR 13496
1997-12-02Add support for Thumb target.Nick Clifton1-0/+1
1997-12-02For "sub", compute carry by comparing inputs.Andrew Cagney2-0/+43
Test.
1997-12-02For "msbu", subtract unsigned product from ACC,Andrew Cagney6-5/+40
Test.
1997-12-02For "mulxu", store unsigned product in ACC.Andrew Cagney6-7/+43
Test.
1997-12-02Test mv[tf]ac instructions.Andrew Cagney1-0/+19
1997-12-02For MACU add unsigned multiply to accumulator.Andrew Cagney5-5/+96
Test.
1997-12-02For sub2w, compute carry according to negated addition rules.Andrew Cagney5-5/+81
Test.
1997-12-01Rework sim/common/sim-alu.h to differentiate between direcctAndrew Cagney2-11/+40
subtraction (involves borrow) and negated addition (involves carry). Update d30v so that it uses this method. Add more tests.
1997-11-30Delete sim_io_syscalls and sim_io_getstringMichael Meissner1-0/+5
1997-11-29Switch to using cb_syscall; Fix bug in cb_syscall writeMichael Meissner1-0/+3
1997-11-29Fix problems with d30v addc/subbMichael Meissner2-203/+398
1997-11-28 * gennltvals.sh: Redo syscall support to allow sanitization.Doug Evans2-1/+36
* nltvals.def: Regenerated. And add d30v sanitization.
1997-11-26 * Make-common.in (run.o): Depend on remote-sim.h.Doug Evans1-0/+4
(nrun.o,sim-hload.o,sim-hrw.o): Likewise. (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
1997-11-26Flush writes to stdout, stderrMichael Meissner2-2/+13
1997-11-26* sim-io.c (sim_io_getstring): Delete unused len2. (sim_io_syscalls):Andrew Cagney2-2/+5
Ditto for sys_errno.
1997-11-26Delete magic number FIXME.Doug Evans1-2/+0
1997-11-26Undo last change. callback.h changed instead.Doug Evans2-13/+9
Plus: * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
1997-11-26 * syscall.c (cb_syscall, cases stat, fstat): Handle -Wall -Werror.Doug Evans2-2/+12
1997-11-26Fix typo in format argument to sim_io_eprintf.Andrew Cagney2-3/+5
1997-11-26Move MDMX instructions which are public knowledge from vr5400.igenAndrew Cagney4-441/+1313
into mdmx.igen (MDMX is MMX on steroids). Keep the file secret.
1997-11-26nuke lseekMichael Meissner2-56/+224
1997-11-25sanitize-r5900 not v5900Andrew Cagney1-2/+2
1997-11-25Strip ChangeLog of v850e informationAndrew Cagney1-1/+1
1997-11-25Add file alu-n-tst.hAndrew Cagney1-0/+1
1997-11-25vr5400 sanitize cleanupsAndrew Cagney1-4/+12
1997-11-25Add comment.Doug Evans1-0/+2
1997-11-25 * callback.c (os_stat): Make 3rd arg a host struct stat ptr.Doug Evans2-38/+216
(os_fstat): Likewise. Validate fd argument. (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL, just compute target stat struct length. * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>. (ENOSYS,ENAMETOOLONG): Provide definitions if missing. (get_string): Return host errno values so they can be properly translated later. (cb_syscall): Likewise. (cb_syscall, cases open,unlink): Use get_path instead of get_string. (cb_syscall, case read): Use read_stdin for file descriptor 0. (cb_syscall, case write): Use write_stderr for file descriptor 2. (cb_syscall): Add cases for lseek, unlink, stat, fstat, time. (get_path): New function.
1997-11-25 * gennltvals.sh: Generate syscall values for d30v.Doug Evans3-0/+305
Use libgloss/syscall.h for sparc. * nltvals.def: Regenerate.
1997-11-24Add sim_io_syscalls to do common system call emulationMichael Meissner1-0/+10
1997-11-24 * cpu.h (TRACE_COND_BR): Use TRACE_BRANCH_P, not TRACE_ALU_P.Doug Evans2-1/+5
1997-11-24 * sim-trace.c (trace_option_handler): Set state trace fileDoug Evans2-24/+51
for --trace-file in addition to cpu's values. (trace_vprintf): If cpu == NULL, try state's trace file.
1997-11-24Entries for .gdbinit additions and sim-model.c option fix.Doug Evans1-0/+5
1997-11-24 * sim-model.c (model_options): Use '\0' for `shortopt'.Doug Evans1-0/+2
1997-11-24 * Make-common.in (all): Add .gdbinit.Doug Evans1-0/+3
* gdbinit.in: Add dump command.
1997-11-24 * sim-core.c (sim_core_signal): Fix spelling error in message.Doug Evans1-0/+6
* sim-hrw.c (sim_read): Use read map, not write map.
1997-11-24SanitizationAndrew Cagney2-1/+5
1997-11-23Change MIPS simulator so that it uses the (software) module sim_fpuAndrew Cagney1-1/+6
for floating point operations. Eliminates all dependencies the simulator had on the hosts FP implemantation. Add sim_fpu_{inv,abs,neg} functions to sim_fpu.[hc]
1997-11-22Clarify meaning of sim_signalled's SIGRC argument. Document that thisAndrew Cagney7-14/+35
isn't possible in sim-reason.c and just return the target SIGRC instead. For simulators that rely on sim-reason.c, replace SIG* with SIM_SIG*. Hack nrun.c so that when it is executed (ARGV[0]) as `step' instead of `run' it single steps the simulator. Allows testing of single step without full GDB.
1997-11-20Pacify GCC - SIM_SIGNONE missing in enum, xmalloc/free VS ZALLOC/zfree.Andrew Cagney2-0/+8
1997-11-20o Add SIM_SIGFPE to sim-signalsAndrew Cagney5-18/+25
o Start SIM_SIG* at 64 so that the use of host signal numbers can be detected and reported. o Update MIPS simulator to use sim-signal.
1997-11-20Allow reads/writes to C0_CONFIG register.Andrew Cagney3-13/+40
1997-11-20(enosys): Delete.Doug Evans1-1/+0
1997-11-20 * callback.c (cb_host_to_target_stat): Fix return values.Doug Evans2-3/+8
1997-11-19 * cgen-sim.h (enum_signal_type): Delete.Doug Evans1-0/+6
(engine_signal): Update prototype. * cgen-utils.c: Don't include <signal.h>. (sim_signal_to_host): Delete, lives in sim-signal.c now. (engine_signal): Update.
1997-11-19 * mem-ops.h: Rename SIM_SIG{ACCESS,ALIGN} to SIM_SIG{SEGV,BUS}.Doug Evans1-32/+32
* sim-if.c (sim_open): Call sim_config. (sim_stop_reason): Update call to sim_signal_to_host.
1997-11-19 * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.Doug Evans1-0/+8
(sim_state_free): Call SIM_STATE_FREE if defined. * sim-module.c (sim_module_install): Don't leave any modules installed if one fails to install.
1997-11-19Do not include alloca-conf.h since alloca is not used.Michael Meissner1-0/+3
1997-11-19Fix carry/overflow problemsMichael Meissner1-0/+8
1997-11-19(sim_stop_reason): Add comment.Doug Evans1-0/+5