1 2021-05-16 Mike Frysinger <vapier@gentoo.org>
3 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c, dv-m68hc11spi.c,
4 dv-m68hc11tim.c, dv-nvram.c, emulos.c, gencode.c, interp.c,
5 interrupts.c, m68hc11_sim.c: Include defs.h.
7 2021-05-16 Mike Frysinger <vapier@gentoo.org>
9 * config.in, configure: Regenerate.
11 2021-05-14 Mike Frysinger <vapier@gentoo.org>
13 * sim-main.h: Update include path.
15 2021-05-07 Mike Frysinger <vapier@gentoo.org>
17 * dv-m68hc11tim.c (cycle_to_string): Increase buf to 128 bytes.
18 Merge two sprintf buf calls.
20 2021-05-06 Mike Frysinger <vapier@gentoo.org>
22 * interp.c (sim_hw_configure): Change %lx to %x in format strings.
23 * configure.ac: Delete SIM_AC_OPTION_WARNINGS call.
24 * configure: Regenerate.
26 2021-05-06 Mike Frysinger <vapier@gentoo.org>
28 * emulos.c: Include errno.h & stdio.h.
29 (emul_write): Print a warning when the write fails.
31 2021-05-04 Mike Frysinger <vapier@gentoo.org>
33 * dv-m68hc11.c (struct m68hc11cpu): Change attach_size to unsigned int.
34 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Cast buffer to const char*.
36 2021-05-04 Mike Frysinger <vapier@gentoo.org>
38 * configure: Regenerate.
40 2021-05-01 Mike Frysinger <vapier@gentoo.org>
42 * config.in, configure: Regenerate.
44 2021-04-23 Mike Frysinger <vapier@gentoo.org>
46 * configure.ac (SIM_AC_OPTION_HARDWARE): Delete first two args.
47 * configure: Regenerate.
49 2021-04-22 Tom Tromey <tom@tromey.com>
51 * configure, config.in: Rebuild.
53 2021-04-22 Tom Tromey <tom@tromey.com>
55 * Makefile.in (INCLUDE): Remove.
57 2021-04-22 Tom Tromey <tom@tromey.com>
59 * Makefile.in (interp.o): Remove.
61 2021-04-22 Tom Tromey <tom@tromey.com>
65 2021-04-21 Mike Frysinger <vapier@gentoo.org>
67 * aclocal.m4: Regenerate.
69 2021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
71 * configure: Regenerate.
73 2021-04-18 Mike Frysinger <vapier@gentoo.org>
75 * configure: Regenerate.
77 2021-04-12 Mike Frysinger <vapier@gentoo.org>
79 * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
81 2021-04-02 Mike Frysinger <vapier@gentoo.org>
83 * aclocal.m4, configure: Regenerate.
85 2021-03-13 Mike Frysinger <vapier@gentoo.org>
87 * Makefile.in (gencode.o): New rule.
88 (gencode): Call LINK_FOR_BUILD.
90 2021-02-28 Mike Frysinger <vapier@gentoo.org>
92 * configure: Regenerate.
94 2021-02-21 Mike Frysinger <vapier@gentoo.org>
96 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
97 * aclocal.m4, configure: Regenerate.
99 2021-02-13 Mike Frysinger <vapier@gentoo.org>
101 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
102 * aclocal.m4, configure: Regenerate.
104 2021-02-06 Mike Frysinger <vapier@gentoo.org>
106 * configure: Regenerate.
108 2021-01-30 Mike Frysinger <vapier@gentoo.org>
110 * dv-m68hc11tim.c (cycle_to_string): Change llu to PRIi64.
112 2021-01-30 Mike Frysinger <vapier@gentoo.org>
114 * m68hc11_sim.c (cpu_set_sp): Add static markings.
115 (cpu_get_reg, cpu_get_src_reg, cpu_set_dst_reg,
116 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8): Likewise.
118 2021-01-30 Mike Frysinger <vapier@gentoo.org>
120 * interp.c (sim_get_info, sim_board_reset): Pass %s to sim_hw_parse.
122 2021-01-30 Mike Frysinger <vapier@gentoo.org>
124 * dv-m68hc11.c, m68hc11_sim.c: Include stdlib.h.
126 2021-01-30 Mike Frysinger <vapier@gentoo.org>
128 * configure.ac (SIM_AC_OPTION_HARDWARE): Inline variables.
129 * configure: Regenerate.
131 2021-01-11 Mike Frysinger <vapier@gentoo.org>
133 * config.in, configure: Regenerate.
135 2021-01-09 Mike Frysinger <vapier@gentoo.org>
137 * configure: Regenerate.
139 2021-01-09 Mike Frysinger <vapier@gentoo.org>
141 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
142 * configure: Regenerate.
144 2021-01-08 Mike Frysinger <vapier@gentoo.org>
146 * configure: Regenerate.
148 2021-01-04 Mike Frysinger <vapier@gentoo.org>
150 * configure: Regenerate.
152 2017-09-06 John Baldwin <jhb@FreeBSD.org>
154 * configure: Regenerate.
156 2017-02-13 Mike Frysinger <vapier@gentoo.org>
158 * gencode.c: Include libiberty.h.
159 (TABLE_SIZE): Delete.
160 (find_opcode_pattern): Change TABLE_SIZE to ARRAY_SIZE.
161 (gen_interpreter): Likewise.
162 * interrupts.c (TableSize): Delete.
163 (interrupts_update_pending): Change TableSize to ARRAY_SIZE.
165 2016-08-16 Mike Frysinger <vapier@gentoo.org>
167 * sim-main.h (inline): Delete define.
168 (phys_to_virt): Change inline to STATIC_INLINE.
169 (memory_read8, memory_write8, memory_read16, memory_write16,
170 cpu_ccr_update_tst16, cpu_ccr_update_shift8, cpu_ccr_update_shift16,
171 cpu_ccr_update_add8, cpu_ccr_update_sub8, cpu_ccr_update_add16,
172 cpu_ccr_update_sub16, cpu_m68hc11_push_uint8, cpu_m68hc11_push_uint16,
173 cpu_m68hc11_pop_uint8, cpu_m68hc11_pop_uint16, cpu_m68hc12_push_uint8,
174 cpu_m68hc12_push_uint16, cpu_m68hc12_pop_uint8,
175 cpu_m68hc12_pop_uint16, cpu_fetch8, cpu_fetch16): Likewise.
177 2016-08-15 Mike Frysinger <vapier@gentoo.org>
179 * interp.c (sim_get_bank_parameters): Delete abfd arg.
180 Replace all symbol lookup code with calls to trace_sym_value.
181 (sim_prepare_for_program): Update sim_get_bank_parameters call.
183 2016-08-13 Mike Frysinger <vapier@gentoo.org>
185 * dv-m68hc11.c (m68hc11cpu_port_event): Adjust cpu prototype style.
186 * dv-m68hc11spi.c (m68hc11spi_port_event): Likewise.
187 * dv-m68hc11tim.c (m68hc11tim_print_timer): Likewise.
188 * emulos.c (emul_bench): Likewise.
189 (emul_write): Likewise. Also rename state to cpu.
190 (emul_os): Rename proc to cpu.
191 * gencode.c: Rename proc to cpu.
192 * interrupts.c (interrupts_initialize): Likewise.
193 * interrupts.h (interrupts): Adjust cpu type.
194 (interrupts_initialize): Likewise.
195 * m68hc11_sim.c (cpu_get_reg): Adjust cpu prototype style.
196 (cpu_get_src_reg, cpu_set_dst_reg, cpu_set_reg,
197 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8,
198 cpu_get_indexed_operand16, cpu_dbcc, cpu_exg): Likewise.
199 (cpu_ccr_update_tst8): Rename proc to cpu.
200 * sim-main.h: Rename PROC and proc to cpu.
202 2016-08-13 Mike Frysinger <vapier@gentoo.org>
204 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Drop cast with
205 return value of hw_malloc.
206 * dv-m68hc11sio.c (m68hc11sio_rx_poll): Mark static.
207 (m68hc11sio_tx_poll): Likewise.
208 * dv-m68hc11spi.c (m68hc11spi_clock): Likewise.
209 * dv-m68hc11tim.c (m68hc11tim_timer_event): Likewise.
210 * dv-nvram.c (attach_nvram_regs): Drop cast with
211 return value of hw_malloc.
212 * emulos.c (emul_bench): Mark static.
213 (emul_write): Likewise.
214 (emul_exit): Likewise.
215 * gencode.c: Include stdio.h.
216 (gen_function_entry): Unify two print lines.
217 (cmp_opcode): Mark args const.
219 2016-01-10 Mike Frysinger <vapier@gentoo.org>
221 * config.in, configure: Regenerate.
223 2016-01-10 Mike Frysinger <vapier@gentoo.org>
225 * configure: Regenerate.
227 2016-01-10 Mike Frysinger <vapier@gentoo.org>
229 * configure: Regenerate.
231 2016-01-10 Mike Frysinger <vapier@gentoo.org>
233 * configure: Regenerate.
235 2016-01-10 Mike Frysinger <vapier@gentoo.org>
237 * configure: Regenerate.
239 2016-01-10 Mike Frysinger <vapier@gentoo.org>
241 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
242 * configure: Regenerate.
244 2016-01-10 Mike Frysinger <vapier@gentoo.org>
246 * configure: Regenerate.
248 2016-01-10 Mike Frysinger <vapier@gentoo.org>
250 * configure: Regenerate.
252 2016-01-09 Mike Frysinger <vapier@gentoo.org>
254 * config.in, configure: Regenerate.
256 2016-01-06 Mike Frysinger <vapier@gentoo.org>
258 * interp.c (sim_open): Mark argv const.
259 (sim_create_inferior): Mark argv and env const.
261 2016-01-04 Mike Frysinger <vapier@gentoo.org>
263 * configure: Regenerate.
265 2016-01-03 Mike Frysinger <vapier@gentoo.org>
267 * interp.c (sim_open): Update sim_parse_args comment.
269 2016-01-03 Mike Frysinger <vapier@gentoo.org>
271 * sim-main.h (sim_state): Delete devices member.
273 2016-01-03 Mike Frysinger <vapier@gentoo.org>
275 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
276 * configure: Regenerate.
278 2016-01-02 Mike Frysinger <vapier@gentoo.org>
280 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
281 * configure: Regenerate.
283 2015-12-30 Mike Frysinger <vapier@gentoo.org>
285 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
286 * configure: Regenerate.
288 2015-12-30 Mike Frysinger <vapier@gentoo.org>
290 * imterp.c (sim_open): Delete current_alignment and
291 current_target_byte_order assignments.
292 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
293 * configure: Regenerate.
295 2015-12-30 Mike Frysinger <vapier@gentoo.org>
297 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
298 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
299 (sim_store_register): Rename to ...
300 (m68hc11_reg_store): ... this. Delete local cpu var.
301 (sim_fetch_register): Rename to ...
302 (m68hc11_reg_fetch): ... this. Delete local cpu var.
304 2015-12-27 Mike Frysinger <vapier@gentoo.org>
306 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
308 2015-12-26 Mike Frysinger <vapier@gentoo.org>
310 * config.in, configure: Regenerate.
312 2015-12-24 Mike Frysinger <vapier@gentoo.org>
314 * sim-main.h (SIM_HANDLES_LMA): Delete.
316 2015-12-24 Mike Frysinger <vapier@gentoo.org>
318 * sim-main.h (WITH_WATCHPOINTS): Delete.
320 2015-11-17 Mike Frysinger <vapier@gentoo.org>
322 * sim-main.h (WITH_MODULO_MEMORY): Delete.
324 2015-11-15 Mike Frysinger <vapier@gentoo.org>
326 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
328 2015-11-14 Mike Frysinger <vapier@gentoo.org>
330 * Makefile.in (SIM_OBJS): Delete sim-load.o.
332 2015-11-14 Mike Frysinger <vapier@gentoo.org>
334 * interp.c (sim_close): Delete.
336 2015-06-23 Mike Frysinger <vapier@gentoo.org>
338 * configure: Regenerate.
340 2015-06-12 Mike Frysinger <vapier@gentoo.org>
342 * configure: Regenerate.
344 2015-06-12 Mike Frysinger <vapier@gentoo.org>
346 * configure: Regenerate.
348 2015-06-11 Mike Frysinger <vapier@gentoo.org>
350 * interp.c (interrupt_names): Delete.
352 2015-06-11 Mike Frysinger <vapier@gentoo.org>
354 * Makefile.in (SIM_OBJS): Add sim-resume.o
355 * interp.c (has_stepped, sim_resume): Delete.
357 2015-06-11 Mike Frysinger <vapier@gentoo.org>
359 * interp.c (INLINE): Delete define.
361 2015-04-29 Nick Clifton <nickc@redhat.com>
364 * gencode.c (gen_fetch_operands): Remove unreachable code.
366 2015-04-18 Mike Frysinger <vapier@gentoo.org>
368 * sim-main.h (SIM_CPU): Delete.
370 2015-04-18 Mike Frysinger <vapier@gentoo.org>
372 * sim-main.h (sim_cia): Delete.
374 2015-04-17 Mike Frysinger <vapier@gentoo.org>
376 * sim-main.h (CIA_GET, CIA_SET): Delete.
378 2015-04-15 Mike Frysinger <vapier@gentoo.org>
380 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
381 * sim-main.h (STATE_CPU): Delete.
383 2015-04-13 Mike Frysinger <vapier@gentoo.org>
385 * configure: Regenerate.
387 2015-04-13 Mike Frysinger <vapier@gentoo.org>
389 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
390 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
391 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
392 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
393 (sim_pc_get): Delete.
394 * sim-main.h (SIM_CPU): Define.
396 (struct sim_state): Change cpu to an array of pointers.
398 2015-04-06 Mike Frysinger <vapier@gentoo.org>
400 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
402 2015-03-31 Mike Frysinger <vapier@gentoo.org>
404 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
405 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
406 variable to restricted.
407 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
409 2015-03-24 Mike Frysinger <vapier@gentoo.org>
411 * interp.c (sim_pc_get): New function.
413 2015-03-24 Mike Frysinger <vapier@gentoo.org>
415 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
416 sim_size, sim_trace): Delete.
417 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
419 2015-03-24 Mike Frysinger <vapier@gentoo.org>
421 * configure: Regenerate.
423 2015-03-23 Mike Frysinger <vapier@gentoo.org>
425 * configure: Regenerate.
427 2015-03-23 Mike Frysinger <vapier@gentoo.org>
429 * configure: Regenerate.
430 * configure.ac (m68hc11_extra_objs): Delete.
431 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
432 (SIM_EXTRA_OBJS): Delete.
434 2015-03-16 Mike Frysinger <vapier@gentoo.org>
436 * config.in, configure: Regenerate.
438 2015-03-14 Mike Frysinger <vapier@gentoo.org>
440 * Makefile.in (SIM_RUN_OBJS): Delete.
442 2015-03-14 Mike Frysinger <vapier@gentoo.org>
444 * configure.ac (AC_CHECK_HEADERS): Delete.
445 * aclocal.m4, configure: Regenerate.
447 2014-08-19 Alan Modra <amodra@gmail.com>
449 * configure: Regenerate.
451 2014-08-15 Roland McGrath <mcgrathr@google.com>
453 * configure: Regenerate.
454 * config.in: Regenerate.
456 2014-03-04 Mike Frysinger <vapier@gentoo.org>
458 * configure: Regenerate.
460 2013-09-23 Alan Modra <amodra@gmail.com>
462 * configure: Regenerate.
464 2013-06-03 Mike Frysinger <vapier@gentoo.org>
466 * aclocal.m4, configure: Regenerate.
468 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
470 * configure: Rebuild.
472 2013-03-26 Mike Frysinger <vapier@gentoo.org>
474 * configure: Regenerate.
476 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
478 * configure.ac: Use $SIM_DV_SOCKSER_O.
479 * configure: Regenerated.
481 2012-06-15 Joel Brobecker <brobecker@adacore.com>
483 * config.in, configure: Regenerate.
485 2012-03-24 Mike Frysinger <vapier@gentoo.org>
487 * aclocal.m4, config.in, configure: Regenerate.
489 2011-12-03 Mike Frysinger <vapier@gentoo.org>
491 * aclocal.m4: New file.
492 * configure: Regenerate.
494 2011-10-19 Mike Frysinger <vapier@gentoo.org>
496 * configure: Regenerate after common/acinclude.m4 update.
498 2011-10-17 Mike Frysinger <vapier@gentoo.org>
500 * configure.ac: Change include to common/acinclude.m4.
502 2011-10-17 Mike Frysinger <vapier@gentoo.org>
504 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
505 call. Replace common.m4 include with SIM_AC_COMMON.
506 * configure: Regenerate.
508 2011-07-05 Mike Frysinger <vapier@gentoo.org>
510 * interp.c (sim_do_command): Delete.
512 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
514 * configure: Regenerate.
516 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
518 * config.in: Regenerate.
519 * configure: Likewise.
521 * configure: Regenerate.
523 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
525 * configure: Regenerate to track ../common/common.m4 changes.
528 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
529 Daniel Jacobowitz <dan@codesourcery.com>
530 Joseph Myers <joseph@codesourcery.com>
532 * configure: Regenerate.
534 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
536 * config.in: Regenerate.
538 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
540 * configure: Regenerated.
542 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
544 * configure: Regenerated.
546 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
548 * configure: Regenerated.
550 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
552 * configure: Regenerate.
554 2005-03-23 Mark Kettenis <kettenis@gnu.org>
556 * configure: Regenerate.
558 2005-01-14 Andrew Cagney <cagney@gnu.org>
560 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
561 explicit call to AC_CONFIG_HEADER.
562 * configure: Regenerate.
564 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
566 * configure: Regenerated to track ../common/aclocal.m4 changes.
568 2005-01-07 Andrew Cagney <cagney@gnu.org>
570 * configure.ac: Rename configure.in, require autoconf 2.59.
571 * configure: Re-generate.
573 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
575 * configure: Regenerate for ../common/aclocal.m4 update.
577 2004-06-15 Alan Modra <amodra@bigpond.net.au>
579 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
580 instead of bfd_get_section_size_before_reloc.
582 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>
584 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
585 control the translation.
586 (m68hc11tim_print_timer): Update cycle_to_string conversion.
587 (m68hc11tim_timer_event): Fix handling of output
588 compare register with its interrupts.
589 (m68hc11tim_io_write_buffer): Check output compare
590 after setting M6811_TMSK1.
591 (m68hc11tim_io_read_buffer): Fix compilation warning.
592 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
593 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
594 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
595 * interrupts.c (interrupts_info): Likewise.
596 (interrupts_reset): Recognize bootstrap mode.
597 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
598 (_sim_cpu): Add cpu_start_mode.
599 (cycle_to_string): Add flags member.
600 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
601 (cpu_options): Declare new option bootstrap.
602 (cpu_option_handler): Handle it.
603 (cpu_info): Update call to cycle_to_string.
605 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>
607 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
608 the physical address in virtual address.
609 (struct _sim_cpu): Add memory bank members.
610 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
611 * interp.c (sim_hw_configure): Create memory bank according to memory
613 (sim_get_bank_parameters): New function to obtain memory bank config
614 from the symbol table.
615 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
616 (sim_open): Call sim_prepare_for_program.
617 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
618 to check if address is within bank window.
619 (m68hc11cpu_io_read_buffer): Likewise.
620 (attach_m68hc11_regs): Map the memory bank according to memory bank
623 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
625 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
627 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
628 Gary Piercey <gpiercey@northstar-technical.com>
630 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
631 * sim-main.h (print_io_word): Declare.
632 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
633 (tflg1_desc): Likewise for TFLG1.
634 (m68hc11tim_info): Print input and output compare registers
636 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
638 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
639 to 32 to support memory bank switching; temporarily use 32-bit for
640 WORD_BITSIZE to avoid a bug in sim-common.
642 2003-03-01 Stephane Carrez <stcarrez@nerim.fr>
644 * interp.c (sim_fetch_register): Only store a single byte for
647 2003-02-27 Andrew Cagney <cagney@redhat.com>
649 * interp.c (sim_prepare_for_program, sim_open)
650 (sim_create_inferior): Rename _bfd to bfd.
652 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
654 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
656 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
658 * interp.c (sim_prepare_for_program): Look up the image for the
659 reset vector and set cpu_use_elf_start to 1 if not found.
660 (sim_open): Do not set cpu_use_elf_start.
662 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
664 * interp.c (sim_hw_configure): Return 1 for success.
665 (sim_prepare_for_program): Use the sim_hw_configure exit code to
668 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
670 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
671 bank window to some virtual address to read from extended memory.
672 (m68hc11cpu_io_write_buffer): Likewise for writing.
673 (attach_m68hc11_regs): When use_bank property is defined, attach
674 to the 68HC12 16K memory bank window.
675 * interp.c (sim_hw_configure): Create memory region for banked
678 2002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
680 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
681 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
682 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
684 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
686 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
687 when IO mapping changed, not when internal RAM mapping is changed.
689 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
691 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
692 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
693 (m6811_regs): Add page register.
694 (cpu_set_page, cpu_get_page): New macros.
695 (phys_to_virt): New function.
696 (cpu_get_indexed_operand_addr, cpu_return): Declare.
697 * gencode.c: Identify indirect addressing mode for call and fix daa.
698 (gen_function_entry): New param to tell if src8/dst8 locals are
700 (gen_interpreter): Use it to avoid generation of unused variables.
701 * interp.c (sim_fetch_register): Allow to read page register; page
702 register, A, B and CCR are only 1 byte wide.
703 (sim_store_register): Likewise for writing.
705 2002-06-16 Andrew Cagney <ac131313@redhat.com>
707 * configure: Regenerated to track ../common/aclocal.m4 changes.
709 2002-06-09 Andrew Cagney <cagney@redhat.com>
711 * Makefile.in (INCLUDE): Update path to callback.h.
712 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
714 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
716 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
717 (cpu_move16): Likewise.
718 (sim_memory_error): Use sim_io_printf.
719 (cpu_option_handler): Fix compilation warning.
720 * interp.c (sim_hw_configure): Fix compilation warning;
721 remove m68hc12sio@2 device.
722 (sim_open): Likewise.
723 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
725 (cycle_to_string): Improve convertion of cpu cycle number.
726 (m68hc11tim_info): Print info about PACNT.
727 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
728 TCTL1 and TCTL2 registers.
729 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
731 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
733 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
735 (sim_hw_configure): Connect the capture input/output events.
736 * sim-main.h (_sim_cpu): New member hw_cpu.
737 (m68hc11cpu_set_oscillator): Declare.
738 (m68hc11cpu_clear_oscillator): Declare.
739 (m68hc11cpu_set_port): Declare.
740 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
741 (m68hc11cpu_ports): New input ports and output ports to reflect
743 (m68hc11_delete): Cleanup any running oscillator.
744 (attach_m68hc11_regs): Create the input oscillators.
745 (make_oscillator): New function.
746 (find_oscillator): New function.
747 (oscillator_handler): New function.
748 (reset_oscillators): New function.
749 (m68hc11cpu_port_event): Handle the new input ports.
750 (m68hc11cpu_set_oscillator): New function.
751 (m68hc11cpu_clear_oscillator): New function.
752 (get_frequency): New function.
753 (m68hc11_option_handler): New function.
754 (m68hc11cpu_set_port): New function.
755 (m68hc11cpu_io_write): Post the port output events.
756 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
757 the output port value.
758 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
759 by latching the TCNT value in the register.
761 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
763 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
764 (cpu_frame_reg, cpu_print_frame): Remove.
765 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
766 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
767 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
768 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
769 * m68hc11_sim.c (cpu_find_frame): Remove.
770 (cpu_create_frame_list): Remove.
771 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
772 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
773 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
774 (cpu_update_frame): Likewise.
775 (cpu_return): Likewise.
776 (cpu_reset): Likewise.
777 (cpu_initialize): Likewise.
778 * interp.c (sim_do_command): Remove call to cpu_print_frame.
780 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
782 * interrupts.c (interrupts_reset): New function, setup interrupt
783 vector address according to cpu mode.
784 (interrupts_initialize): Move reset portion to the above.
785 (interrupt_names): New table to give a name to interrupts.
786 (idefs): Handle pulse accumulator interrupts.
787 (interrupts_info): Print the interrupt history.
788 (interrupt_option_handler): New function.
789 (interrupt_options): New table of options.
790 (interrupts_update_pending): Keep track of when interrupts are
791 raised and implement breakpoint-on-raise-interrupt.
792 (interrupts_process): Keep track of when interrupts are taken
793 and implement breakpoint-on-interrupt.
794 * interrupts.h (struct interrupt_history): Define.
795 (struct interrupt): Keep track of the interrupt history.
796 (interrupts_reset): Declare.
797 (interrupts_initialize): Update prototype.
798 * m68hc11_sim.c (cpu_reset): Reset interrupts.
799 (cpu_initialize): Cleanup.
801 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
803 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
805 (m68hc11eepr_port_event): Fix detach/attach logic.
807 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
809 * Makefile.in (SIM_OBJS): Remove sim-resume.o
810 * interp.c (sim_resume): New function from sim-resume.c, install
811 the stepping event after having processed the pending ticks.
812 (has_stepped): Likewise.
813 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
815 2001-07-10 Andrew Cagney <ac131313@redhat.com>
817 * Makefile.in (gencode): Provide explicit path to gencode.c.
819 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
821 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
822 (m68hc12int.c): Generate using gencode -m6812.
823 (m68hc11int.c): Likewise with -m6811.
825 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
826 (m6811_page1_opcodes): Remove duplicate entries.
827 (m6811_page2_opcodes): Likewise.
828 (m6811_page3_opcodes): Likewise.
829 (m6811_page4_opcodes): Likewise.
830 (m6812_page1_opcodes): New table for 68HC12 instructions.
831 (m6812_page2_opcodes): Likewise.
832 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
833 (gen_save_result): Likewise.
834 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
835 (cmp_opcode): New function for opcode comparision.
836 (prepare_table): Sort the opcodes.
837 (gen_interpreter): Prepare all the tables and generate either
838 a 68HC11 or a 68HC12 simulator.
839 (main): New options -m6811 and -m6812.
841 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
842 (cpu_special): Simulation of some 68HC12 instructions.
843 (cpu_exg): New function.
844 (cpu_dbcc): Likewise.
845 (cpu_fetch_relbranch16): Likewise.
846 (cpu_push_all): Push according to 68HC11 or 68HC12.
847 (cpu_move16): Likewise.
848 (cpu_move8): Likewise.
849 (cpu_get_indexed_operand16): Likewise.
850 (cpu_get_indexed_operand8): Likewise.
851 (cpu_get_indexed_operand_addr): Likewise.
852 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
853 (cpu_reset): Setup INIT register according to architecture.
855 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
856 (_sim_cpu): Keep track of the cpu being simulated.
857 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
858 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
859 (cpu_m68hc11_pop_uint8): Likewise.
860 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
861 (cpu_m68hc12_pop_uintxx): Likewise.
862 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
863 (cpu_fetch_relbranch16): Likewise.
864 (cpu_interp_m6811): Rename of cpu_interp.
865 (cpu_interp_m6812): New function.
866 * interp.c (free_state): New function.
867 (dev_list_68hc12): New table.
868 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
869 (sim_hw_configure): New function.
870 (sim_prepare_for_program): New function.
871 (sim_open): Use above new functions.
872 (sim_close): Call free_state().
873 (sim_info): Print info according to cpu.
874 (sim_create_inferior): Use sim_prepare_for_program.
875 (sim_do_command): Configure the hardware after a change of the
878 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
880 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
882 * interrupts.c (interrupts_process): Keep track of the last number
883 of masked insn cycles.
884 (interrupts_initialize): Clear last number of masked insn cycles.
885 (interrupts_info): Report them.
886 (interrupts_update_pending): Compute clear and set masks of
887 interrupts and clear the interrupt bits before setting them
888 (due to SCI interrupt sharing).
889 * interrupts.h (struct interrupts): New members last_mask_cycles
890 and xirq_last_mask_cycles.
892 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
894 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
895 instead of a hard-coded value.
896 (m68hc11cpu_io_write_buffer): Likewise.
897 (dv_m68hc11_descriptor): Define a 68hc12 device.
898 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
899 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
900 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
901 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
903 2000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
905 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
906 (m68hc11cpu_delete): Delete handler to detach the address space.
908 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
910 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
911 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
912 instead of free and malloc.
914 2000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
916 * Makefile.in: Was missing from initial patch.
918 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
920 * interp.c (sim_store_register): Remove soft register hack.
921 (sim_fetch_register): Likewise.
922 (sim_create_inferior): Likewise.
923 * sim-main.h: Likewise.
925 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
927 * interrupts.c (interrupts_update_pending): Clear the mask of
928 pending interrupts here.
929 (interrupts_get_current): Don't clear the mask of pending interrupts.
931 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
933 * sim-main.h: Define cycle_to_string.
934 * dv-m68hc11tim.c (cycle_to_string): New function to translate
935 the cpu cycle into some formatted time string.
936 (m68hc11tim_print_timer): Use it.
937 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
938 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
939 * interrupts.c (interrupts_info): Likewise.
940 * m68hc11_sim.c (cpu_info): Likewise.
942 2000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
944 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
945 interrupt and compare events accurately. Take into account the
946 pending ticks not processed by the simulator yet (introduced a shift).
947 (m68hc11_port_event): Reset the timer interrupt delays.
948 (m68hc11tim_io_read_buffer): Be able to read several bytes.
949 (m68hc11tim_io_write_buffer): Likewise for write.
950 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
952 2000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
954 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
955 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
956 (m68hc11spi_info): Clarify the status report
957 of the SPI when a byte is being sent.
958 (m68hc11spi_clock): Fix the spi send frame.
960 2000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
962 * sim-main.h (m68hc11_map_level): Define level of address mappings.
963 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
964 whether the eeprom is currently mapped or not.
965 (m68hc11eepr_port_event): Use the flag to see if we must unmap
966 or map the eeprom. Update the flag to reflect the current state.
967 Use M6811_EEPROM_LEVEL when mapping the eeprom.
968 (m68hc11eepr_finish): Remove overlap hack.
969 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
970 config and control registers.
971 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
972 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
973 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
974 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
975 (attach_m68hc11spi_regs): Likewise.
976 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
977 (attach_m68hc11tim_regs): Likewise.
978 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
979 (attach_m68hc11sio_regs): Likewise.
980 * interp.c (sim_open): Likewise.
981 * dv-nvram.c (attach_nvram_regs): Likewise.
983 Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
985 * configure, config.in: Regenerate.
987 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
989 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
990 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
991 (dv_m6811_detach_address_callback): New function to detach a
992 device from an address space.
993 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
994 config register according to --cpu-config option.
995 * sim-main.h (_sim_cpu): Add cpu_config member.
996 * interp.c (sim_open): Delete specific simulator options.
997 * m68hc11_sim.c (cpu_option_handler): New options
998 --emulos and -cpu-config <val> to configure the simulator.
999 (cpu_initialize): Initialize cpu_config member.
1001 2000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1003 * emulos.c: Fix indentation and comments.
1004 * gencode.c: Likewise.
1005 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
1006 (m68hc11tim_io_write_buffer): Write compare registers and
1007 setup compare event.
1008 * interp.c: Remove unused global variables.
1009 * interrupts.c (idefs): New compare interrupts.
1010 Fix indentation and comments.
1011 * interrupts.h: Likewise.
1013 2000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1015 * dv-m68hc11sio.c: Fix indentation and comments.
1017 * dv-m68hc11.c: Fix indentation and comments.
1018 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
1019 * m68hc11_sim.c (cpu_reset): To here.
1020 * dv-m68hc11eepr.c: Fix indentation and comments.
1022 2000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1024 * dv-nvram.c: New file, rename from dv-pram.c.
1025 * dv-pram.c: Delete file.
1026 * sim-main.h: Incorporate m68hc11_sim.h.
1027 * m68hc11_sim.h: Delete file.
1028 * configure.in: Rename pram into nvram.
1029 * interp.c (sim_open): Likewise in creation of device tree.
1031 2000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1033 * interp.c (sim_open): Create the SPI device.
1034 * dv-m68hc11spi.c: New file for SPI device simulation.
1035 * configure.in (hw_extra_devices): Add SPI device.
1037 2000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1039 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
1040 (interrupts_process): Separate IRQ and XIRQ accounting.
1041 (interrupts_info): Report XIRQ accounting.
1042 * interrupts.h (struct interrupts): Added accounting for XIRQ.
1044 2000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
1046 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
1047 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
1048 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
1049 configuration from the 'mode' device tree property.
1050 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
1053 2000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
1055 * sim-main.h: Remove WITH_TARGET_* defines.
1056 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
1058 2000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
1060 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
1061 1200 baud when cpu is in bootstrap mode.
1063 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
1064 write in the TCTN timer register.
1066 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
1067 by 4 to obtain the E clock frequency.
1068 (sccr2_desc): Use M6811_TIE for TIE bit.
1069 (m68hc11sio_info): Fix baud rate report.
1071 * dv-m68hc11tim.c (to_realtime): Likewise.
1073 * interp.c (sim_open): When building device tree, only provide
1074 devices that do not exist yet.
1076 * emulos.c: Fix compilation pb under Windows.
1078 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
1079 from the 'clock' property.
1081 2000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
1083 * m68hc11_sim.h (*_REGNUM): Define.
1084 (_sim_cpu): New member cpu_page0_reg table.
1085 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
1086 addresses of soft registers in .page0.
1087 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
1088 to get/set soft registers.
1090 1999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
1092 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
1093 returning random values.
1095 1999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
1097 * gencode.c: Fix "subb N,x" that used a instead of b.
1099 1999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
1101 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
1103 1999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
1105 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
1107 1999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
1109 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
1110 register region in the m68hc11cpu struct.
1111 (m68hc11cpu_io_write): When the IO mapping addres changes,
1112 detach the register region and re-attach it at the new address.
1113 (m68hc11cpu_io_read_buffer): Renamed base_address into
1115 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
1116 to m68hc11cpu_io_write.
1118 1999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
1120 * gencode.c: For sbc8, check the carry and increment the source
1121 before trying to set the carry for the result.
1123 1999-05-24 John S. Kallal <kallal@voicenet.com>
1125 * interp.c (sim_get_info): Don't crash if the command line is 0.
1126 Define prototype for sim_get_info() and init_system().
1127 (sim_info): Correct call to sim_get_info().
1129 1999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
1131 * configure.in: Recognize m6811-*-*.
1132 * configure: Regenerate.
1133 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
1134 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
1135 Correct the computation of carry of 8 and 16-bits add and subtract.
1136 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
1137 overflow set in a different manner than add).
1139 1999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
1141 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
1143 * interp.c (sim_open, sim_create_inferior): Initialize the
1144 cpu_elf_start from the ELF header.
1145 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
1146 (cpu_restart): Use cpu_elf_start as the starting address when
1148 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
1149 exits the simulator (exit status is in D).
1150 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
1151 cpu_elf_star to start execution at address specified in ELF file.
1153 1999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
1155 * Makefile.in, config.in, configure, configure.in: New files.
1156 * gencode.c: New file, generation of 68HC11 interpreter.
1157 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
1159 * interrupts.c, interrupts.h: New files, management of interrupts.
1160 * interp.c, sim-main.h,
1161 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
1162 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
1163 68HC11 (dv-pram.c is generic and could probably migrate to common).
1164 * emulos.c: New file, basic emulation of some os.