3 * gencode.c (tab): Add explicit NaN support for ftrc instruction.
7 * interp.c: Make target_byte_order be extern to prevent SGI cc from
8 issuing warnings about the use of common symbols.
12 * gencode.c: jsr, bsr and bsrf actually save pc+4 in pr, and rts
17 * sh/interp.c (sim_stop_reason): Catch SIGQUIT and indicate
19 (sim_get_quit_code): Delete.
21 * gencode.c (gensim): Indicate SIGILL instead of calling abort for
27 * interp.c (saved_start_type): Move FP registers to immediately
33 * Makefile.in (BISON): Remove macro.
37 * interp.c (trap, case SYS_utime): Cast second arg of utime to
38 void * to avoid compiler error.
40 * interp.c (callback): Remove last change. It is initialized by
41 a sim_set_callbacks call.
45 * interp.c (callback): Initialize to default callback.
49 * run.c: Moved to ../common.
50 * interp.c (trap): Use gdb's callback interface.
51 * Makefile.in: Updated.
55 * Makefile.in (maintainer-clean): New synonym for realclean.
59 * run.c (sim_callback_write_stdout): New.
60 * interp.c (trap): Call sim_callback_write_stdout when needed.
64 * interp.c (trap): Remove useless code.
68 * syscall.h: Copy from newlib.
73 * gencode.c: Back up PC by 2 for breakpoints.
74 * interp.c: Move fp regs beyond pc/pr/etc to avoid confusing GDB,
75 which expect pc to immediatly follow regs[].
80 * configure.in: Define CC_FOR_BUILD. Don't call AC_PROG_INSTALL.
82 * Makefile.in (INSTALL): Revert to using install.sh.
83 (INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
84 (INSTALL_XFORM, INSTALL_XFORM1): Restore.
85 (CC_FOR_BUILD): Restore.
86 (gencode): Build using $(CC_FOR_BUILD).
87 (install): Don't install in $(tooldir).
91 (Try to) Update to new bfd autoconf scheme.
92 * run.c: Don't include sysdep.h.
93 * Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
94 (CC, CFLAGS, AR, RANLIB): Likewise.
95 (HDEFINES, TDEFINES): Define.
96 (CC_FOR_BUILD): Delete.
97 (host_makefile_frag): Delete.
98 (Makefile): Don't depend on frags.
99 * configure.in (sysdep.h): Don't create symlink.
100 (host_makefile_frag, frags): Deleted.
101 (CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
102 * configure: Regenerated.
107 * interp.c: Include <math.h>.
112 * Makefile.in (run): Link in math library too.
113 * gencode.c (gensim): abort if an unknown opcode is encountered.
115 * interp.c (FPSCR, FPUL): Define.
116 (struct save_state): Add fields for floating point registers,
118 (sim_resume): Add 'F' for accessing floating point registers
119 in the save state structure.
120 * gencode.c: Add sh3e opcodes.
121 (gensym): Define a buffer for int<->fp conversions.
126 * interp.c (trap): Use trap vector 34 for host system interface.
127 * gencode.c: Add 34 to conditional which determines which traps
128 will be handled by simulator.
132 * run.c: Include <signal.h>. Define SIGQUIT if not defined.
133 (main): New variables reason and sigrc. After simulator exits,
134 check to see if it exited because of a signal, and if so, then
135 use the signal number as the return value.
139 * Update all FSF addresses except those in COPYING* files.
141 Tue Jul 18 23:33:10 1995 Fred Fish <fnf@fishbowl>
143 * interp.c (trap): Only use SYS_execv if defined. Might be
144 implemented as execve(arg1,arg2,0), as with Unixware 2.0.
145 (sim_resume): In sbit initializer, cast shifted arg to unsigned
146 to avoid signed integer overflow.
150 * Makefile.in (clean): Remove run, libsim.a.
151 (distclean, mostlyclean, realclean): Remove Makefile and
156 * Makefile.in, configure.in: converted to autoconf.
157 * configure: New file, generated with autconf 2.4.
161 * interp.c (sim_open): If argument supplied, interpret as
163 (parse_and_set_memory_size): New function.
164 (sim_do_command): New function.
168 * interp.c (SYS_wait): Define as SYS_wait4 if available and
169 SYS_wait is not already defined (SunOS 4.1.3 for example).
170 (SYS_utime): Define as SYS_utimes if available and
171 SYS_utime is not already defined.
175 * interp.c: Don't include sys/times.h or sys/param.h
179 * interp.c (SIGBUS, SIGTERM): Define if not.
180 (sim_memory_size): default to 2^19 on PCs.
181 (sim_resume): Poll for quits on win32.
185 * gencode.c (op_tab): Add SH3 support.
189 * gencode.c (tab): Add bsrf and braf.
193 * configure.in: use ../../bfd/hosts/std-host.h, not
194 ../bfd/hosts/std-host.h (which doesn't exist).
198 * run.c: parse arguments with getopt().
202 * configure.in: Use ../../bfd/hosts/std-host.h if specific
207 * interp.c (macw): Sign extend MACH at bit 10 for non-saturating case.
211 * gencode.c (op_tab): Make MAC.W call macw, not abort.
212 * interp.c (macw): New function.
217 * gencode.c (op_tab): New code for ADDV and SUBV.
218 Make MAC.L abort sicne it is not implemented.
220 * interp.c (dmul): Handle the signed case by adjusting after unsigned multiply.
221 Get rid of __GNUC__ conditional.
225 * gencode.c (op_tab): Also replace NEGC, and try again with SUBC.
226 Change ADDC for symmetry.
228 * gencode.c (op_tab): Replace code for ADDC and SUBC.
232 * interp.c: Remove def of INLINE. This comes from bfd.h. Also,
233 declare IOMEM before using it.
237 * interp.c (BUSERROR): New macro.
238 ([r|w][bwl]at[little|big]) New functions.
239 (sim_resume): If GO32 check for interrupt every now
240 and again. Decrement PC if SIGBUS seen.
241 * run.c (main): Return result of simulated _exit.
245 * Makefile.in (gencode): Allow build in different directory.
249 * Makefile.in (gencode): Change $< to gencode.c for portability.
253 * interp.c ([wr][bwl]at): New functions.
254 (trap): Cope with both byte modes.
258 * gencode.c (tab): Simulate T bit after a negc insn right.
259 * interp.c (RSBAT): Sign extend the arg.
260 (ACE_FAST): New macro.
261 (sim_resume): Remove obsolete test of sim_timeout.
265 * interp.c (IOMEM): New function, simulates very basic I/O area of
267 (WBAT, RBAT) : Call I/O functions.
268 * gencode.c (tab): Special case trapa #3.
272 * run.c (main): Specify the file type again.
276 * interp.c (trap): Fix irix incompatibility.
277 * run.c (main): open without specifying file type.
281 * interp.c (sim_*): Make result void where there isn't one.
282 (sim_set_pc): Delete.
283 (sim_info): Delete printf_fn arg, all callers changed.
284 Call printf_filtered instead.
285 (sim_close): New function.
286 (sim_load): New function.
287 (sim_create_inferior): Renamed from sim_set_args, all callers changed.
288 * run.c: #include <varargs.h>, "remote-sim.h".
289 (printf_filtered): New function.
293 * gencode.c (table): Get direction of some opcodes right.
294 (trapa, rte): Implement fully.
295 * interp.c (trap): Make stat call more portable.
299 * gencode.c (main, gendefines): New -d option prints table of defines.
300 * interp.c (trap): Add a load of system calls.
301 (sim_memory_size): Now default to 8Mbyte.
302 (PARANOID): Keep vector of registers with undefined contents.
306 * gencode.c: mova uses aligned addresses
307 * interp.c (trap): Return results in r0.
311 * Makefile.in (CSEARCH): Add -I$(srcdir)/../../gdb
312 * interp.c: #include "remote-sim.h".
313 (sim_resume): int result, new arg `siggnal'.
314 (sim_write): Use SIM_ADDR for type of arg `addr'.
315 (sim_read): Use SIM_ADDR for type of arg `addr'.
316 Use unsigned char * for `buffer'.
317 (sim_store_register): int result.
318 (sim_fetch_register): Ditto.
319 (sim_stop_reason): Renamed from sim_stop_signal. New arg `reason'.
320 (sim_set_pc): int result, use SIM_ADDR for type of arg `x'.
321 (sim_info): int result, new args `verbose', `printf_fn'.
322 (sim_kill): int result.
323 (sim_open): int result, new arg `name'.
324 * run.c: #include <stdio.h>
325 (main): Update call to sim_info.
329 * interp.c (sim_stop_signal): Result is now enum sim_stop.
333 * gencode.c (table): Becomes unsigned.
334 * interp.c (trap): Get right breakpoint SIGnum. (sim_write,
335 sim_read): Return number of bytes copied. (sim_store_register):
336 Value passed by reference. (sim_kill, sim_open, sim_set_args): New functions.
340 * interp.c (sim_info): Fix small typo in printf string.
344 * interp.c (sim_resume): Set memory after pointers inited.
348 * interp.c (get_now): Use time system call.
349 * Makefile.in: install correctly.
353 * run.c (main), interp.c (sim_set_timeout): Remove timeout
356 Thu Jun 24 13:29:57 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
358 * Makefile.in: don't run indent everytime; also add a space in the
363 * gencode.c: Fix some opcodes.
364 * interp.c: Support for profiling and portability fixes.
365 * run.c (main): Get profiling args.
369 * gencode.c (tab): Lint for sgi compiler
370 * interp.c: Lint for sgi compiler.
374 * run.c (main): Support for resizing simulated RAM.
375 * Makefile.in: Support for broken makes.
376 * interp.c, gencode.c: Lint.