3 * configure: Re-generate.
7 * configure: Regenerate to track ../common/aclocal.m4 changes.
11 * interp.c (sim_open): New SIM_DESC result. Argument is now
13 (other sim_*): New SIM_DESC argument.
17 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
18 COMMON_{PRE,POST}_CONFIG_FRAG instead.
19 * configure.in: sinclude ../common/aclocal.m4.
20 * configure: Regenerated.
24 * configure configure.in Makefile.in: Update to new configure
25 scheme which is more compatible with WinGDB builds.
26 * configure.in: Improve comment on how to run autoconf.
27 * configure: Re-run autoconf to get new ../common/aclocal.m4.
28 * Makefile.in: Use autoconf substitution to install common
33 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
34 (SIM_OBJS,SIM_EXTRA_LIBS): Define.
35 * configure.in: Simplify using macros in ../common/aclocal.m4.
36 Call AC_CHECK_HEADERS(unistd.h).
37 * configure: Regenerated.
38 * config.in: New file.
39 * interp.c: #include "config.h". #include <unistd.h> if present.
40 (trap): Fetch errno value with callback->get_errno.
44 * interp.c: Don't include windows polling code if inside simluator.
48 * interp.c: Minor formatting improvements.
49 (saved_state_type): Add bank registers.
50 (bp_holder): New function, use to break on when debugging BUSERROR.
51 (BUSERROR): Call it if bus error occurs.
55 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
56 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
58 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
59 (AC_PROG_INSTALL): Added.
64 * interp.c (saved_state_type): Add memstalls field.
66 (sim_resume): New local variable memstalls. Add it back in to
67 saved_state at the end of the function.
68 (sim_info): Report memstalls.
69 * gencode.c (tab): Add MA() to the execution string of all
70 instructions which access memory.
74 * configure: Regenerate with autoconf 2.7.
78 * gencode.c (mac.l): Don't abort GDB if executing mac.l
79 instruction (which is unimplemented). Generate a SIGTRAP (in the
80 simulated target) instead.
84 * gencode.c (tab): Added several sh3 opcodes.
85 (think): Added printonmatch for A_SSR and A_SPC.
86 * interp.c (SSR, SPC): Added definitions.
87 (saved_state_type): Added ssr and spc registers.
91 * gencode.c (tab): In shad/shld definitions, negate R[m] before
92 the and operation instead of after. For shad delete cast. For shld
93 use UR instead of R and delete cast.
97 * gencode.c (tab): Add explicit NaN support for ftrc instruction.
101 * interp.c: Make target_byte_order be extern to prevent SGI cc from
102 issuing warnings about the use of common symbols.
106 * gencode.c: jsr, bsr and bsrf actually save pc+4 in pr, and rts
111 * sh/interp.c (sim_stop_reason): Catch SIGQUIT and indicate
113 (sim_get_quit_code): Delete.
115 * gencode.c (gensim): Indicate SIGILL instead of calling abort for
120 * interp.c (saved_state_type): Move FP registers to immediately
125 * Makefile.in (BISON): Remove macro.
129 * interp.c (trap, case SYS_utime): Cast second arg of utime to
130 void * to avoid compiler error.
132 * interp.c (callback): Remove last change. It is initialized by
133 a sim_set_callbacks call.
137 * interp.c (callback): Initialize to default callback.
141 * run.c: Moved to ../common.
142 * interp.c (trap): Use gdb's callback interface.
143 * Makefile.in: Updated.
147 * Makefile.in (maintainer-clean): New synonym for realclean.
151 * run.c (sim_callback_write_stdout): New.
152 * interp.c (trap): Call sim_callback_write_stdout when needed.
156 * interp.c (trap): Remove useless code.
160 * syscall.h: Copy from newlib.
164 * gencode.c: Back up PC by 2 for breakpoints.
165 * interp.c: Move fp regs beyond pc/pr/etc to avoid confusing GDB,
166 which expect pc to immediatly follow regs[].
170 * configure.in: Define CC_FOR_BUILD. Don't call AC_PROG_INSTALL.
171 * configure: Rebuild.
172 * Makefile.in (INSTALL): Revert to using install.sh.
173 (INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
174 (INSTALL_XFORM, INSTALL_XFORM1): Restore.
175 (CC_FOR_BUILD): Restore.
176 (gencode): Build using $(CC_FOR_BUILD).
177 (install): Don't install in $(tooldir).
181 (Try to) Update to new bfd autoconf scheme.
182 * run.c: Don't include sysdep.h.
183 * Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
184 (CC, CFLAGS, AR, RANLIB): Likewise.
185 (HDEFINES, TDEFINES): Define.
186 (CC_FOR_BUILD): Delete.
187 (host_makefile_frag): Delete.
188 (Makefile): Don't depend on frags.
189 * configure.in (sysdep.h): Don't create symlink.
190 (host_makefile_frag, frags): Deleted.
191 (CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
192 * configure: Regenerated.
196 * interp.c: Include <math.h>.
200 * Makefile.in (run): Link in math library too.
201 * gencode.c (gensim): abort if an unknown opcode is encountered.
202 * interp.c (FPSCR, FPUL): Define.
203 (struct save_state): Add fields for floating point registers,
205 (sim_resume): Add 'F' for accessing floating point registers
206 in the save state structure.
207 * gencode.c: Add sh3e opcodes.
208 (gensym): Define a buffer for int<->fp conversions.
212 * interp.c (trap): Use trap vector 34 for host system interface.
213 * gencode.c: Add 34 to conditional which determines which traps
214 will be handled by simulator.
218 * run.c: Include <signal.h>. Define SIGQUIT if not defined.
219 (main): New variables reason and sigrc. After simulator exits,
220 check to see if it exited because of a signal, and if so, then
221 use the signal number as the return value.
225 * Update all FSF addresses except those in COPYING* files.
227 Tue Jul 18 23:33:10 1995 Fred Fish <fnf@fishbowl>
229 * interp.c (trap): Only use SYS_execv if defined. Might be
230 implemented as execve(arg1,arg2,0), as with Unixware 2.0.
231 (sim_resume): In sbit initializer, cast shifted arg to unsigned
232 to avoid signed integer overflow.
236 * Makefile.in (clean): Remove run, libsim.a.
237 (distclean, mostlyclean, realclean): Remove Makefile and
242 * Makefile.in, configure.in: converted to autoconf.
243 * configure: New file, generated with autconf 2.4.
247 * interp.c (sim_open): If argument supplied, interpret as
249 (parse_and_set_memory_size): New function.
250 (sim_do_command): New function.
254 * interp.c (SYS_wait): Define as SYS_wait4 if available and
255 SYS_wait is not already defined (SunOS 4.1.3 for example).
256 (SYS_utime): Define as SYS_utimes if available and
257 SYS_utime is not already defined.
261 * interp.c: Don't include sys/times.h or sys/param.h
265 * interp.c (SIGBUS, SIGTERM): Define if not.
266 (sim_memory_size): default to 2^19 on PCs.
267 (sim_resume): Poll for quits on win32.
271 * gencode.c (op_tab): Add SH3 support.
275 * gencode.c (tab): Add bsrf and braf.
279 * configure.in: use ../../bfd/hosts/std-host.h, not
280 ../bfd/hosts/std-host.h (which doesn't exist).
284 * run.c: parse arguments with getopt().
288 * configure.in: Use ../../bfd/hosts/std-host.h if specific
293 * interp.c (macw): Sign extend MACH at bit 10 for non-saturating case.
297 * gencode.c (op_tab): Make MAC.W call macw, not abort.
298 * interp.c (macw): New function.
303 * gencode.c (op_tab): New code for ADDV and SUBV.
304 Make MAC.L abort sicne it is not implemented.
306 * interp.c (dmul): Handle the signed case by adjusting after unsigned multiply.
307 Get rid of __GNUC__ conditional.
311 * gencode.c (op_tab): Also replace NEGC, and try again with SUBC.
312 Change ADDC for symmetry.
314 * gencode.c (op_tab): Replace code for ADDC and SUBC.
318 * interp.c: Remove def of INLINE. This comes from bfd.h. Also,
319 declare IOMEM before using it.
323 * interp.c (BUSERROR): New macro.
324 ([r|w][bwl]at[little|big]) New functions.
325 (sim_resume): If GO32 check for interrupt every now
326 and again. Decrement PC if SIGBUS seen.
327 * run.c (main): Return result of simulated _exit.
331 * Makefile.in (gencode): Allow build in different directory.
335 * Makefile.in (gencode): Change $< to gencode.c for portability.
339 * interp.c ([wr][bwl]at): New functions.
340 (trap): Cope with both byte modes.
344 * gencode.c (tab): Simulate T bit after a negc insn right.
345 * interp.c (RSBAT): Sign extend the arg.
346 (ACE_FAST): New macro.
347 (sim_resume): Remove obsolete test of sim_timeout.
351 * interp.c (IOMEM): New function, simulates very basic I/O area of
353 (WBAT, RBAT) : Call I/O functions.
354 * gencode.c (tab): Special case trapa #3.
358 * run.c (main): Specify the file type again.
362 * interp.c (trap): Fix irix incompatibility.
363 * run.c (main): open without specifying file type.
367 * interp.c (sim_*): Make result void where there isn't one.
368 (sim_set_pc): Delete.
369 (sim_info): Delete printf_fn arg, all callers changed.
370 Call printf_filtered instead.
371 (sim_close): New function.
372 (sim_load): New function.
373 (sim_create_inferior): Renamed from sim_set_args, all callers changed.
374 * run.c: #include <varargs.h>, "remote-sim.h".
375 (printf_filtered): New function.
379 * gencode.c (table): Get direction of some opcodes right.
380 (trapa, rte): Implement fully.
381 * interp.c (trap): Make stat call more portable.
385 * gencode.c (main, gendefines): New -d option prints table of defines.
386 * interp.c (trap): Add a load of system calls.
387 (sim_memory_size): Now default to 8Mbyte.
388 (PARANOID): Keep vector of registers with undefined contents.
392 * gencode.c: mova uses aligned addresses
393 * interp.c (trap): Return results in r0.
397 * Makefile.in (CSEARCH): Add -I$(srcdir)/../../gdb
398 * interp.c: #include "remote-sim.h".
399 (sim_resume): int result, new arg `siggnal'.
400 (sim_write): Use SIM_ADDR for type of arg `addr'.
401 (sim_read): Use SIM_ADDR for type of arg `addr'.
402 Use unsigned char * for `buffer'.
403 (sim_store_register): int result.
404 (sim_fetch_register): Ditto.
405 (sim_stop_reason): Renamed from sim_stop_signal. New arg `reason'.
406 (sim_set_pc): int result, use SIM_ADDR for type of arg `x'.
407 (sim_info): int result, new args `verbose', `printf_fn'.
408 (sim_kill): int result.
409 (sim_open): int result, new arg `name'.
410 * run.c: #include <stdio.h>
411 (main): Update call to sim_info.
415 * interp.c (sim_stop_signal): Result is now enum sim_stop.
419 * gencode.c (table): Becomes unsigned.
420 * interp.c (trap): Get right breakpoint SIGnum. (sim_write,
421 sim_read): Return number of bytes copied. (sim_store_register):
422 Value passed by reference. (sim_kill, sim_open, sim_set_args): New functions.
426 * interp.c (sim_info): Fix small typo in printf string.
430 * interp.c (sim_resume): Set memory after pointers inited.
434 * interp.c (get_now): Use time system call.
435 * Makefile.in: install correctly.
439 * run.c (main), interp.c (sim_set_timeout): Remove timeout
442 Thu Jun 24 13:29:57 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
444 * Makefile.in: don't run indent everytime; also add a space in the
449 * gencode.c: Fix some opcodes.
450 * interp.c: Support for profiling and portability fixes.
451 * run.c (main): Get profiling args.
455 * gencode.c (tab): Lint for sgi compiler
456 * interp.c: Lint for sgi compiler.
460 * run.c (main): Support for resizing simulated RAM.
461 * Makefile.in: Support for broken makes.
462 * interp.c, gencode.c: Lint.