3 * compile.c (sim_resume): Fix all rotate-by-2-bits insns.
7 * run.c (main): Don't "load" sections which don't have
9 * compile.c (sim_resume, case "O_NOT"): Use ONOT instead
12 (sim_resume, shift/rotate cases): Add support for shift/rotate
14 (OSHIFTS): Corresponding changes.
18 * compile.c (sim_resume): Handle "ldm.l" and "stm.l".
22 * compile.c (h8300smode): Declare.
26 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
27 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
29 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
30 (AC_PROG_INSTALL): Added.
35 * compile.c (sim_load): Treat the H8/S like the H8/300H for now.
36 * run.c (main): Treat the H8/S like the H8/300H for now.
40 * compile.c (SEXTCHAR): Clear upper bits when sign
45 * compile.c (sim_resume): Correctly handle divu.
49 * compile.c (sim_resume): Never allow the PC to have an
54 * inst.h: Expand on comments regarding H8300H_MSIZE. Note
55 separate memory is allocate for the 8-bit area.
56 (struct cpu_state_type): Add new "eightbit' field.
57 * compile.c (GET_MEMORY_L): Handle access into the 8-bit
59 (GET_MEMORY_W, GET_MEMORY_B): Likewise.
60 (SET_MEMORY_L, SET_MEMORY_W, SET_MEMORY_B): Likewise.
61 (init_pointers): Initialize space for the 8-bit area.
62 (sim_write): Handle writing into the 8-bit area.
63 (sim_read): Handle reading from the 8-bit area.
64 (sim_load): Reallocate space for the 8-bit area.
66 * compile.c (sim_load): Re-allocate memory for the simulator
71 * compile.c (sim_resume): Fix and simplify overflow and carry
72 handling for 32bit ALU insns.
76 * compile.c (sim_resume): Fix overflow checks for ALU insns.
80 * compile.c (decode): Use "bit" to hold L_3 immediates instead
81 of holding them in "abs". Handle ABS8MEM memory references aka
82 8-bit area. Replace ABSMOV references with ABS8MEM.
86 * compile.c (fetch): Handle accesses to the exception/function
91 * compile.c: #include "wait.h".
92 (sim_resume, sleep insn): Check program exit status in r0.
93 (sim_resume, shift insns): Fix setting of overflow flag for shal.
94 * run.c: #include <signal.h>.
95 (main): Abort if program got SIGILL.
96 Print error message if argument is invalid.
97 (usage): Improve text.
101 * configure: Regenerate with autoconf 2.7.
105 * inst.h (MPOWER,MSIZE): Deleted.
106 (H8300{,H}_MSIZE): Define.
107 * compile.c (memory_size): New static global.
108 (init_pointers): Set memory size from one of H8300{,H}_MSIZE.
109 (sim_write,sim_read): Use memory_size.
113 * compile.c (sim_set_callbacks): New.
117 * Makefile.in (BISON): Remove macro.
121 * Makefile.in (maintainer-clean): New synonym for realclean.
125 * Makefile.in (install): Don't install in $(tooldir).
127 * configure.in: Call AC_CONFIG_HEADER. Don't try to use
128 bfd/hosts/*.h file or bfd/config/*.mh file. Call AC_PROG_CC and
129 AC_PROG_RANLIB. Substitute in values for CFLAGS, HDEFINES and AR.
130 Call AC_CHECK_HEADERS for stdlib.h and time.h. Touch stamp.h if
132 * configure: Rebuild.
133 * config.in: New file, created by autoheader.
134 * Makefile.in (AR): Define as @AR@.
135 (CC): New variable, defined as @CC@.
136 (CFLAGS): Define as @CFLAGS@.
137 (RANLIB): Define as @RANLIB@.
138 (HDEFINES, TDEFINES): New variables.
139 (@host_makefile_frag@): Remove.
140 (compile.o, run.o): Depend upon config.h.
141 (mostlyclean): Make the same as clean, not distclean.
142 (clean): Remove config.log.
143 (distclean): Remove config.h and stamp-h.
144 (Makefile): Don't depend upon @frags@. Just rebuild Makefile when
145 invoking config.status.
146 (config.h, stamp-h): New targets.
147 * compile.c: Include "config.h". Don't include <sys/times.h>.
148 Include <time.h> and <stdlib.h> if they exist. Don't include
150 (get_now): Remove unused local b.
151 * run.c: Include "config.h". Include <stdlib.h> if it exists.
152 Don't include "sysdep.h".
153 * writecode.c: Don't include "bfd.h" or "sysdep.h". Include
158 * Update all FSF addresses except those in COPYING* files.
162 * Makefile.in (clean): Remove run.
163 (distclean): Remove Makefile.
167 * Makefile.in, configure.in: converted to autoconf.
168 * configure: New file, generated with autconf 2.4.
172 * compile.c (sim_do_command): New function.
176 * compile.c (get_now): Don't do if win32.
177 (sim_resume): Poll in win32 too.
181 * configure.in: Fix typo in last change.
185 * run.c: parse arguments with getopt().
189 * configure.in: Use ../../bfd/hosts/std-host.h if specific
192 Sun Jan 22 12:35:43 1995 Steve Chamberlain <sac@splat>
194 * compile.c (sim_resume): Initialize cpu.mask.
198 * inst.h (MPOWER): Bump simulated memory size to 2^18 bytes.
202 * compile.c: #include "bfd.h".
203 (sim_*): Set result type to void where there isn't one.
204 (sim_resume, default case): Set cpu.exception to SIGILL.
206 (sim_set_pc): Delete.
207 (sim_info): Delete printf_fn arg, all callers changed.
208 Call printf_filtered.
209 (set_h8300h): New arg `flag', all callers changed.
210 (sim_close): New function.
211 (sim_load): New function.
212 (sim_create_inferior): Renamed from sim_set_args, all callers changed.
213 * run.c: #include <varargs.h>, "remote-sim.h".
214 (printf_filtered): New function.
218 * compile.c (decode): Fix typo (16 bit branches).
219 (*): Some white space clean up.
223 * compile.c (decode): Compile 16bit branches properly.
227 * compile.c: Tidy up formatting. (sim_resume): Add orc, xorc,
228 andc. Poll for interrupts.
232 * compile.c: #include "ansidecl.h" for remote-sim.h.
236 * Makefile.in (CSEARCH): Add -I$(srcdir)/../../gdb
237 * compile.c: #include "remote-sim.h".
238 (sim_resume): New arg siggnal.
239 (sim_write): Use SIM_ADDR for type of arg addr.
240 Always return a value.
242 (sim_store_register): Result is type int.
243 (sim_fetch_register): Ditto.
244 (sim_stop_reason): Renamed from sim_stop_signal.
245 (sim_set_pc): Use SIM_ADDR for type of arg pc.
246 (sim_info): int result, new arg printf_fn.
247 (sim_kill): int result.
248 (sim_open): int result, new arg name.
249 * run.c (main): Use sim_set_pc to set pc.
250 Update call to sim_info.
254 * compile.c (sim_stop_signal): Result is now enum sim_stop.
258 * compile.c (sim_kill, sim_open, sim_set_args): New functions.
262 * compile.c (sim_set_pc): Write to the pc direcly.
263 (sim_store_register): Now value is passed by reference. (sim_read,
264 sim_write): Return number of bytes copied.
268 * compile.c (mop): New function to do multiplies.
272 * compile.c (sim_resume): Add support for nop insn.
276 * compile.c: Reset HMODE back to zero (accidently set it to 1).
278 * run.c (main): If h8/300h binary detected, call set_h8300h.
279 * compile.c (sim_resume): Fix O_NEG insn.
283 * run.c (main): Add -h flag to enable h8/300h emulation.
284 * compile.c: Rename Hmode to HMODE (consistency with gdb).
285 (set_h8300h): New function.
286 (sim_resume): Add support for extu,exts insns.
287 (sim_resume): Fix logical right shifting.
288 (sim_resume, label alu32): Fix setting of carry flag.
292 * compile.c (sim_csize): Initialize cpu.cache.
296 * Makefile.in: Add -I../../bfd to pick up bfd.h.
300 * run.c (main): Fix parsing of args.
302 * compile.c (sim_resume): Fix shll insn.
306 * compile.c: New file, supports H8/300H.
307 * p1,p3, gencode.c, state.h, writecode.c All dead and obsolete.
311 * run.c (main): Add -v to print info.
312 * p3.c (sim_info): New function.
316 * h8300.mt (DO_INSTALL): Renamed from INSTALL.
320 * Makefile.in: Don't use cb or indent
321 * p1.c, state.h, writecode.c: lint
325 * Makefile.in: Make SunOS halfdone VPATH work.
326 * p1.c: Lint picked up by HP native compiler.
330 * p1.c (sim_resume): when running on dos, any character typed to
331 the keyboard will cause a simulated exception.
335 * p1.c, p3.c, run.c, writecode.c: all used h8/300 opcodes in and