3 * configure.ac: Removed.
9 * aclocal.m4: Regenerate.
10 * configure: Regenerate.
14 * configure: Regenerate.
18 * configure.ac (SIM_AC_COMMON): Delete.
19 * aclocal.m4, configure: Regenerate.
23 * aclocal.m4: Regenerate.
24 * configure: Regenerate.
28 * aclocal.m4: Regenerate.
29 * configure: Regenerate.
33 * configure: Regenerate.
37 * aclocal.m4, configure: Regenerate.
41 * configure: Regenerate.
45 * interp.c: Include sim-signal.h.
49 * configure.ac: Delete SIM_AC_OPTION_ENDIAN call.
50 * interp.c (sim_open): Set current_target_byte_order.
51 * aclocal.m4, configure: Regenerate.
55 * configure: Regenerate.
59 * configure: Regenerate.
64 * config.in, configure: Regenerate.
68 * configure.ac: Delete call to SIM_AC_OPTION_WARNINGS.
69 * configure: Regenerate.
73 * configure.ac: Delete call to SIM_AC_OPTION_ALIGNMENT.
74 * interp.c (sim_open): Set current_alignment.
78 * aclocal.m4, config.in, configure: Regenerate.
82 * config.in, configure: Regenerate.
86 * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Delete.
90 * interp.c (do_call): Change sd to avr_sim_state.
91 (step_once): Likewise.
93 (sim_create_inferior): Likewise.
94 * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Define.
95 (struct sim_state): Delete.
96 (struct avr_sim_state): New struct.
97 (AVR_SIM_STATE): Define.
101 * interp.c: Replace config.h include with defs.h.
105 * config.in, configure: Regenerate.
109 * interp.c: Update include path.
113 * configure: Regenerate.
117 * config.in, configure: Regenerate.
121 * aclocal.m4, config.in, configure: Regenerate.
125 * configure, config.in: Rebuild.
129 * configure: Rebuild.
133 * aclocal.m4: Regenerate.
137 * configure: Regenerate.
141 * configure: Regenerate.
145 * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
149 * aclocal.m4, configure: Regenerate.
153 * configure: Regenerate.
157 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
158 * aclocal.m4, configure: Regenerate.
162 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
163 * aclocal.m4, configure: Regenerate.
167 * interp.c (sim_open): Delete call to STATE_WATCHPOINTS.
171 * configure: Regenerate.
175 * interp.c (sim_open): Delete STATE_WATCHPOINTS (sd)->sizeof_pc.
179 * config.in, configure: Regenerate.
180 * interp.c: Delete HAVE_STRING_H.
184 * configure: Regenerate.
188 * configure: Regenerate.
192 * configure: Regenerate.
196 * configure: Regenerate.
201 * interp.c (step_once): Pass break instruction address to
202 sim_engine_halt function which writes that to PC. Remove code that
203 follows that function call as it is unreachable.
207 * config.in, configure: Regenerate.
211 * configure: Regenerate.
215 * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
216 * configure: Regenerate.
220 * configure: Regenerate.
224 * configure: Regenerate.
228 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
229 * configure: Regenerate.
233 * configure: Regenerate.
237 * configure: Regenerate.
241 * config.in, configure: Regenerate.
245 * interp.c (sim_open): Mark argv const.
246 (sim_create_inferior): Mark argv and env const.
250 * configure: Regenerate.
254 * interp.c (sim_open): Update sim_parse_args comment.
258 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
259 * configure: Regenerate.
263 * configure.ac (SIM_AC_OPTION_ENDIAN): Change LITTLE_ENDIAN to
265 * configure: Regenerate.
269 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
273 * config.in, configure: Regenerate.
277 * interp.c (sign_ext): Fix left shift of negative value.
281 * interp.c (pc, cycles, avr_pc22): Delete.
282 (do_call): Add cpu to arguments. Declare sd. Change pc to cpu->pc,
283 avr_pc22 to sd->avr_pc22, and cycles to cpu->cycles.
284 (gen_mul): Add cpu to arguments. Change cycles to cpu->cycles.
285 (step_once): Change pc to cpu->pc, avr_pc22 to sd->avr_pc22, and
286 cycles to cpu->cycles. Pass cpu to do_call and gen_mul calls.
287 (avr_reg_store, avr_reg_fetch, avr_pc_get, avr_pc_set): Change pc
289 (sim_open): Likewise. Declare cpu.
290 (sim_create_inferior): Declare cpu and addr. Change pc to addr and
291 call sim_pc_set. Change avr_pc22 to sd->avr_pc22.
292 * sim-main.h (pc): Delete.
293 (struct _sim_cpu): Add pc and cycles.
294 (struct sim_state): Add avr_pc22.
298 * interp.c (sim_store_register): Rename to ...
299 (avr_reg_store): ... this. Adjust signature.
300 (sim_fetch_register): Rename to ...
301 (avr_reg_fetch): ... this. Adjust signature.
302 (sim_open): Call CPU_REG_FETCH and CPU_REG_STORE.
306 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
310 * interp.c (sim_close): Delete.
314 * configure: Regenerate.
318 * configure: Regenerate.
322 * configure: Regenerate.
326 * Makefile.in (SIM_OBJS): Move interp.o
327 above $(SIM_NEW_COMMON_OBJS).
331 * sim-main.h (SIM_CPU): Delete.
335 * sim-main.h (sim_cia): Delete.
339 * sim-main.h (CIA_GET, CIA_SET): Delete.
343 * interp.c (avr_pc_get, avr_pc_set): New functions.
344 (sim_open): Declare new local var i. Call CPU_PC_FETCH &
345 CPU_PC_STORE for all cpus.
349 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
350 * sim-main.h (STATE_CPU): Delete.
354 * configure: Regenerate.
358 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
366 * config.in, configure: Regenerate.
370 * Makefile.in (SIM_EXTRA_CFLAGS, SIM_RUN_OBJS, SIM_EXTRA_LIBS): Delete.
371 (interp.o): Delete rule.
372 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
373 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
374 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT,
375 SIM_AC_OPTION_INLINE, and SIM_AC_OPTION_WARNINGS.
376 * interp.c: Delete gdb/callback.h, gdb/signals.h, dis-asm.h, and
377 sim-utils.h includes. Include sim-main.h, sim-base.h, and
379 (tracing, lock_step, verbose): Delete.
381 (cur_bfd, cpu_exception, cpu_signal, sim_kind, myname, callback):
383 (flash, sram): Add TODO.
384 (sim_size, disasm_read_memory, disasm_perror_memory,
385 disassemble_insn): Delete.
386 (sim_resume): Rename to ...
387 (step_once): ... this. Mark static. Delete step variable and while
388 loop, and unindent body. Add #if 0 around tracing/verbose code.
389 Change cpu_exception to sim_engine_halt.
391 (sim_engine_run): New function.
392 (sim_stop_reason, sim_stop, sim_info): Delete.
393 (free_state): New function.
394 (sim_open, sim_close, sim_create_inferior): Rewrite from scratch.
395 (sim_load, sim_do_command, sim_set_callbacks,
396 sim_complete_command): delete.
397 * sim-main.h: New file.
398 * config.in, configure: Regenerate.
402 * aclocal.m4, config.in, configure: Regenerate.
406 * Makefile.in (SIM_EXTRA_CFLAGS): Set to
407 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
408 (SIM_RUN_OBJS): Set to run.o.
412 * interp.c (sim_kill): Delete unused func.
416 * configure: Regenerate.
420 * configure: Regenerate.
421 * config.in: Regenerate.
425 * interp.c (sim_do_command): Add const to cmd.
429 * interp.c (sim_load): Add const to prog.
433 * configure: Regenerate.
437 * aclocal.m4, configure: Regenerate.
441 * config.in, configure: Regenerate.
446 * Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
450 * aclocal.m4, config.in, configure: Regenerate.
454 * aclocal.m4: New file.
455 * configure: Regenerate.
459 * configure.ac: Change include to common/acinclude.m4.
463 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
464 call. Replace common.m4 include with SIM_AC_COMMON.
465 * configure: Regenerate.
469 * interp.c (sim_complete_command): New stub function.
473 * interp.c (sim_write): Add const to buffer arg.
477 * interp.c (sim_write): Allow byte access.
482 * interp.c (sim_load): Clear memory before loading.
486 * interp.c (sim_resume): Fix typo for OP_ret.
490 * interp.c (sim_stop): Return 1.
494 * interp.c, Makefile.in, configure.ac: New files.
495 * config.in: New file, generated by autoheader.
496 * configure: New file generated by autoconf.