1 2017-09-06 John Baldwin <jhb@FreeBSD.org>
3 * configure: Regenerate.
5 2017-02-13 Mike Frysinger <vapier@gentoo.org>
7 * gencode.c: Include libiberty.h.
9 (find_opcode_pattern): Change TABLE_SIZE to ARRAY_SIZE.
10 (gen_interpreter): Likewise.
11 * interrupts.c (TableSize): Delete.
12 (interrupts_update_pending): Change TableSize to ARRAY_SIZE.
14 2016-08-16 Mike Frysinger <vapier@gentoo.org>
16 * sim-main.h (inline): Delete define.
17 (phys_to_virt): Change inline to STATIC_INLINE.
18 (memory_read8, memory_write8, memory_read16, memory_write16,
19 cpu_ccr_update_tst16, cpu_ccr_update_shift8, cpu_ccr_update_shift16,
20 cpu_ccr_update_add8, cpu_ccr_update_sub8, cpu_ccr_update_add16,
21 cpu_ccr_update_sub16, cpu_m68hc11_push_uint8, cpu_m68hc11_push_uint16,
22 cpu_m68hc11_pop_uint8, cpu_m68hc11_pop_uint16, cpu_m68hc12_push_uint8,
23 cpu_m68hc12_push_uint16, cpu_m68hc12_pop_uint8,
24 cpu_m68hc12_pop_uint16, cpu_fetch8, cpu_fetch16): Likewise.
26 2016-08-15 Mike Frysinger <vapier@gentoo.org>
28 * interp.c (sim_get_bank_parameters): Delete abfd arg.
29 Replace all symbol lookup code with calls to trace_sym_value.
30 (sim_prepare_for_program): Update sim_get_bank_parameters call.
32 2016-08-13 Mike Frysinger <vapier@gentoo.org>
34 * dv-m68hc11.c (m68hc11cpu_port_event): Adjust cpu prototype style.
35 * dv-m68hc11spi.c (m68hc11spi_port_event): Likewise.
36 * dv-m68hc11tim.c (m68hc11tim_print_timer): Likewise.
37 * emulos.c (emul_bench): Likewise.
38 (emul_write): Likewise. Also rename state to cpu.
39 (emul_os): Rename proc to cpu.
40 * gencode.c: Rename proc to cpu.
41 * interrupts.c (interrupts_initialize): Likewise.
42 * interrupts.h (interrupts): Adjust cpu type.
43 (interrupts_initialize): Likewise.
44 * m68hc11_sim.c (cpu_get_reg): Adjust cpu prototype style.
45 (cpu_get_src_reg, cpu_set_dst_reg, cpu_set_reg,
46 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8,
47 cpu_get_indexed_operand16, cpu_dbcc, cpu_exg): Likewise.
48 (cpu_ccr_update_tst8): Rename proc to cpu.
49 * sim-main.h: Rename PROC and proc to cpu.
51 2016-08-13 Mike Frysinger <vapier@gentoo.org>
53 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Drop cast with
54 return value of hw_malloc.
55 * dv-m68hc11sio.c (m68hc11sio_rx_poll): Mark static.
56 (m68hc11sio_tx_poll): Likewise.
57 * dv-m68hc11spi.c (m68hc11spi_clock): Likewise.
58 * dv-m68hc11tim.c (m68hc11tim_timer_event): Likewise.
59 * dv-nvram.c (attach_nvram_regs): Drop cast with
60 return value of hw_malloc.
61 * emulos.c (emul_bench): Mark static.
62 (emul_write): Likewise.
63 (emul_exit): Likewise.
64 * gencode.c: Include stdio.h.
65 (gen_function_entry): Unify two print lines.
66 (cmp_opcode): Mark args const.
68 2016-01-10 Mike Frysinger <vapier@gentoo.org>
70 * config.in, configure: Regenerate.
72 2016-01-10 Mike Frysinger <vapier@gentoo.org>
74 * configure: Regenerate.
76 2016-01-10 Mike Frysinger <vapier@gentoo.org>
78 * configure: Regenerate.
80 2016-01-10 Mike Frysinger <vapier@gentoo.org>
82 * configure: Regenerate.
84 2016-01-10 Mike Frysinger <vapier@gentoo.org>
86 * configure: Regenerate.
88 2016-01-10 Mike Frysinger <vapier@gentoo.org>
90 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
91 * configure: Regenerate.
93 2016-01-10 Mike Frysinger <vapier@gentoo.org>
95 * configure: Regenerate.
97 2016-01-10 Mike Frysinger <vapier@gentoo.org>
99 * configure: Regenerate.
101 2016-01-09 Mike Frysinger <vapier@gentoo.org>
103 * config.in, configure: Regenerate.
105 2016-01-06 Mike Frysinger <vapier@gentoo.org>
107 * interp.c (sim_open): Mark argv const.
108 (sim_create_inferior): Mark argv and env const.
110 2016-01-04 Mike Frysinger <vapier@gentoo.org>
112 * configure: Regenerate.
114 2016-01-03 Mike Frysinger <vapier@gentoo.org>
116 * interp.c (sim_open): Update sim_parse_args comment.
118 2016-01-03 Mike Frysinger <vapier@gentoo.org>
120 * sim-main.h (sim_state): Delete devices member.
122 2016-01-03 Mike Frysinger <vapier@gentoo.org>
124 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
125 * configure: Regenerate.
127 2016-01-02 Mike Frysinger <vapier@gentoo.org>
129 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
130 * configure: Regenerate.
132 2015-12-30 Mike Frysinger <vapier@gentoo.org>
134 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
135 * configure: Regenerate.
137 2015-12-30 Mike Frysinger <vapier@gentoo.org>
139 * imterp.c (sim_open): Delete current_alignment and
140 current_target_byte_order assignments.
141 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
142 * configure: Regenerate.
144 2015-12-30 Mike Frysinger <vapier@gentoo.org>
146 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
147 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
148 (sim_store_register): Rename to ...
149 (m68hc11_reg_store): ... this. Delete local cpu var.
150 (sim_fetch_register): Rename to ...
151 (m68hc11_reg_fetch): ... this. Delete local cpu var.
153 2015-12-27 Mike Frysinger <vapier@gentoo.org>
155 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
157 2015-12-26 Mike Frysinger <vapier@gentoo.org>
159 * config.in, configure: Regenerate.
161 2015-12-24 Mike Frysinger <vapier@gentoo.org>
163 * sim-main.h (SIM_HANDLES_LMA): Delete.
165 2015-12-24 Mike Frysinger <vapier@gentoo.org>
167 * sim-main.h (WITH_WATCHPOINTS): Delete.
169 2015-11-17 Mike Frysinger <vapier@gentoo.org>
171 * sim-main.h (WITH_MODULO_MEMORY): Delete.
173 2015-11-15 Mike Frysinger <vapier@gentoo.org>
175 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
177 2015-11-14 Mike Frysinger <vapier@gentoo.org>
179 * Makefile.in (SIM_OBJS): Delete sim-load.o.
181 2015-11-14 Mike Frysinger <vapier@gentoo.org>
183 * interp.c (sim_close): Delete.
185 2015-06-23 Mike Frysinger <vapier@gentoo.org>
187 * configure: Regenerate.
189 2015-06-12 Mike Frysinger <vapier@gentoo.org>
191 * configure: Regenerate.
193 2015-06-12 Mike Frysinger <vapier@gentoo.org>
195 * configure: Regenerate.
197 2015-06-11 Mike Frysinger <vapier@gentoo.org>
199 * interp.c (interrupt_names): Delete.
201 2015-06-11 Mike Frysinger <vapier@gentoo.org>
203 * Makefile.in (SIM_OBJS): Add sim-resume.o
204 * interp.c (has_stepped, sim_resume): Delete.
206 2015-06-11 Mike Frysinger <vapier@gentoo.org>
208 * interp.c (INLINE): Delete define.
210 2015-04-29 Nick Clifton <nickc@redhat.com>
213 * gencode.c (gen_fetch_operands): Remove unreachable code.
215 2015-04-18 Mike Frysinger <vapier@gentoo.org>
217 * sim-main.h (SIM_CPU): Delete.
219 2015-04-18 Mike Frysinger <vapier@gentoo.org>
221 * sim-main.h (sim_cia): Delete.
223 2015-04-17 Mike Frysinger <vapier@gentoo.org>
225 * sim-main.h (CIA_GET, CIA_SET): Delete.
227 2015-04-15 Mike Frysinger <vapier@gentoo.org>
229 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
230 * sim-main.h (STATE_CPU): Delete.
232 2015-04-13 Mike Frysinger <vapier@gentoo.org>
234 * configure: Regenerate.
236 2015-04-13 Mike Frysinger <vapier@gentoo.org>
238 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
239 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
240 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
241 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
242 (sim_pc_get): Delete.
243 * sim-main.h (SIM_CPU): Define.
245 (struct sim_state): Change cpu to an array of pointers.
247 2015-04-06 Mike Frysinger <vapier@gentoo.org>
249 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
251 2015-03-31 Mike Frysinger <vapier@gentoo.org>
253 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
254 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
255 variable to restricted.
256 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
258 2015-03-24 Mike Frysinger <vapier@gentoo.org>
260 * interp.c (sim_pc_get): New function.
262 2015-03-24 Mike Frysinger <vapier@gentoo.org>
264 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
265 sim_size, sim_trace): Delete.
266 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
268 2015-03-24 Mike Frysinger <vapier@gentoo.org>
270 * configure: Regenerate.
272 2015-03-23 Mike Frysinger <vapier@gentoo.org>
274 * configure: Regenerate.
276 2015-03-23 Mike Frysinger <vapier@gentoo.org>
278 * configure: Regenerate.
279 * configure.ac (m68hc11_extra_objs): Delete.
280 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
281 (SIM_EXTRA_OBJS): Delete.
283 2015-03-16 Mike Frysinger <vapier@gentoo.org>
285 * config.in, configure: Regenerate.
287 2015-03-14 Mike Frysinger <vapier@gentoo.org>
289 * Makefile.in (SIM_RUN_OBJS): Delete.
291 2015-03-14 Mike Frysinger <vapier@gentoo.org>
293 * configure.ac (AC_CHECK_HEADERS): Delete.
294 * aclocal.m4, configure: Regenerate.
296 2014-08-19 Alan Modra <amodra@gmail.com>
298 * configure: Regenerate.
300 2014-08-15 Roland McGrath <mcgrathr@google.com>
302 * configure: Regenerate.
303 * config.in: Regenerate.
305 2014-03-04 Mike Frysinger <vapier@gentoo.org>
307 * configure: Regenerate.
309 2013-09-23 Alan Modra <amodra@gmail.com>
311 * configure: Regenerate.
313 2013-06-03 Mike Frysinger <vapier@gentoo.org>
315 * aclocal.m4, configure: Regenerate.
317 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
319 * configure: Rebuild.
321 2013-03-26 Mike Frysinger <vapier@gentoo.org>
323 * configure: Regenerate.
325 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
327 * configure.ac: Use $SIM_DV_SOCKSER_O.
328 * configure: Regenerated.
330 2012-06-15 Joel Brobecker <brobecker@adacore.com>
332 * config.in, configure: Regenerate.
334 2012-03-24 Mike Frysinger <vapier@gentoo.org>
336 * aclocal.m4, config.in, configure: Regenerate.
338 2011-12-03 Mike Frysinger <vapier@gentoo.org>
340 * aclocal.m4: New file.
341 * configure: Regenerate.
343 2011-10-19 Mike Frysinger <vapier@gentoo.org>
345 * configure: Regenerate after common/acinclude.m4 update.
347 2011-10-17 Mike Frysinger <vapier@gentoo.org>
349 * configure.ac: Change include to common/acinclude.m4.
351 2011-10-17 Mike Frysinger <vapier@gentoo.org>
353 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
354 call. Replace common.m4 include with SIM_AC_COMMON.
355 * configure: Regenerate.
357 2011-07-05 Mike Frysinger <vapier@gentoo.org>
359 * interp.c (sim_do_command): Delete.
361 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
363 * configure: Regenerate.
365 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
367 * config.in: Regenerate.
368 * configure: Likewise.
370 * configure: Regenerate.
372 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
374 * configure: Regenerate to track ../common/common.m4 changes.
377 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
378 Daniel Jacobowitz <dan@codesourcery.com>
379 Joseph Myers <joseph@codesourcery.com>
381 * configure: Regenerate.
383 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
385 * config.in: Regenerate.
387 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
389 * configure: Regenerated.
391 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
393 * configure: Regenerated.
395 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
397 * configure: Regenerated.
399 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
401 * configure: Regenerate.
403 2005-03-23 Mark Kettenis <kettenis@gnu.org>
405 * configure: Regenerate.
407 2005-01-14 Andrew Cagney <cagney@gnu.org>
409 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
410 explicit call to AC_CONFIG_HEADER.
411 * configure: Regenerate.
413 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
415 * configure: Regenerated to track ../common/aclocal.m4 changes.
417 2005-01-07 Andrew Cagney <cagney@gnu.org>
419 * configure.ac: Rename configure.in, require autoconf 2.59.
420 * configure: Re-generate.
422 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
424 * configure: Regenerate for ../common/aclocal.m4 update.
426 2004-06-15 Alan Modra <amodra@bigpond.net.au>
428 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
429 instead of bfd_get_section_size_before_reloc.
431 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>
433 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
434 control the translation.
435 (m68hc11tim_print_timer): Update cycle_to_string conversion.
436 (m68hc11tim_timer_event): Fix handling of output
437 compare register with its interrupts.
438 (m68hc11tim_io_write_buffer): Check output compare
439 after setting M6811_TMSK1.
440 (m68hc11tim_io_read_buffer): Fix compilation warning.
441 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
442 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
443 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
444 * interrupts.c (interrupts_info): Likewise.
445 (interrupts_reset): Recognize bootstrap mode.
446 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
447 (_sim_cpu): Add cpu_start_mode.
448 (cycle_to_string): Add flags member.
449 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
450 (cpu_options): Declare new option bootstrap.
451 (cpu_option_handler): Handle it.
452 (cpu_info): Update call to cycle_to_string.
454 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>
456 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
457 the physical address in virtual address.
458 (struct _sim_cpu): Add memory bank members.
459 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
460 * interp.c (sim_hw_configure): Create memory bank according to memory
462 (sim_get_bank_parameters): New function to obtain memory bank config
463 from the symbol table.
464 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
465 (sim_open): Call sim_prepare_for_program.
466 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
467 to check if address is within bank window.
468 (m68hc11cpu_io_read_buffer): Likewise.
469 (attach_m68hc11_regs): Map the memory bank according to memory bank
472 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
474 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
476 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
477 Gary Piercey <gpiercey@northstar-technical.com>
479 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
480 * sim-main.h (print_io_word): Declare.
481 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
482 (tflg1_desc): Likewise for TFLG1.
483 (m68hc11tim_info): Print input and output compare registers
485 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
487 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
488 to 32 to support memory bank switching; temporarily use 32-bit for
489 WORD_BITSIZE to avoid a bug in sim-common.
491 2003-03-01 Stephane Carrez <stcarrez@nerim.fr>
493 * interp.c (sim_fetch_register): Only store a single byte for
496 2003-02-27 Andrew Cagney <cagney@redhat.com>
498 * interp.c (sim_prepare_for_program, sim_open)
499 (sim_create_inferior): Rename _bfd to bfd.
501 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
503 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
505 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
507 * interp.c (sim_prepare_for_program): Look up the image for the
508 reset vector and set cpu_use_elf_start to 1 if not found.
509 (sim_open): Do not set cpu_use_elf_start.
511 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
513 * interp.c (sim_hw_configure): Return 1 for success.
514 (sim_prepare_for_program): Use the sim_hw_configure exit code to
517 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
519 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
520 bank window to some virtual address to read from extended memory.
521 (m68hc11cpu_io_write_buffer): Likewise for writing.
522 (attach_m68hc11_regs): When use_bank property is defined, attach
523 to the 68HC12 16K memory bank window.
524 * interp.c (sim_hw_configure): Create memory region for banked
527 2002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
529 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
530 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
531 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
533 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
535 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
536 when IO mapping changed, not when internal RAM mapping is changed.
538 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
540 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
541 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
542 (m6811_regs): Add page register.
543 (cpu_set_page, cpu_get_page): New macros.
544 (phys_to_virt): New function.
545 (cpu_get_indexed_operand_addr, cpu_return): Declare.
546 * gencode.c: Identify indirect addressing mode for call and fix daa.
547 (gen_function_entry): New param to tell if src8/dst8 locals are
549 (gen_interpreter): Use it to avoid generation of unused variables.
550 * interp.c (sim_fetch_register): Allow to read page register; page
551 register, A, B and CCR are only 1 byte wide.
552 (sim_store_register): Likewise for writing.
554 2002-06-16 Andrew Cagney <ac131313@redhat.com>
556 * configure: Regenerated to track ../common/aclocal.m4 changes.
558 2002-06-09 Andrew Cagney <cagney@redhat.com>
560 * Makefile.in (INCLUDE): Update path to callback.h.
561 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
563 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
565 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
566 (cpu_move16): Likewise.
567 (sim_memory_error): Use sim_io_printf.
568 (cpu_option_handler): Fix compilation warning.
569 * interp.c (sim_hw_configure): Fix compilation warning;
570 remove m68hc12sio@2 device.
571 (sim_open): Likewise.
572 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
574 (cycle_to_string): Improve convertion of cpu cycle number.
575 (m68hc11tim_info): Print info about PACNT.
576 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
577 TCTL1 and TCTL2 registers.
578 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
580 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
582 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
584 (sim_hw_configure): Connect the capture input/output events.
585 * sim-main.h (_sim_cpu): New member hw_cpu.
586 (m68hc11cpu_set_oscillator): Declare.
587 (m68hc11cpu_clear_oscillator): Declare.
588 (m68hc11cpu_set_port): Declare.
589 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
590 (m68hc11cpu_ports): New input ports and output ports to reflect
592 (m68hc11_delete): Cleanup any running oscillator.
593 (attach_m68hc11_regs): Create the input oscillators.
594 (make_oscillator): New function.
595 (find_oscillator): New function.
596 (oscillator_handler): New function.
597 (reset_oscillators): New function.
598 (m68hc11cpu_port_event): Handle the new input ports.
599 (m68hc11cpu_set_oscillator): New function.
600 (m68hc11cpu_clear_oscillator): New function.
601 (get_frequency): New function.
602 (m68hc11_option_handler): New function.
603 (m68hc11cpu_set_port): New function.
604 (m68hc11cpu_io_write): Post the port output events.
605 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
606 the output port value.
607 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
608 by latching the TCNT value in the register.
610 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
612 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
613 (cpu_frame_reg, cpu_print_frame): Remove.
614 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
615 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
616 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
617 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
618 * m68hc11_sim.c (cpu_find_frame): Remove.
619 (cpu_create_frame_list): Remove.
620 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
621 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
622 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
623 (cpu_update_frame): Likewise.
624 (cpu_return): Likewise.
625 (cpu_reset): Likewise.
626 (cpu_initialize): Likewise.
627 * interp.c (sim_do_command): Remove call to cpu_print_frame.
629 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
631 * interrupts.c (interrupts_reset): New function, setup interrupt
632 vector address according to cpu mode.
633 (interrupts_initialize): Move reset portion to the above.
634 (interrupt_names): New table to give a name to interrupts.
635 (idefs): Handle pulse accumulator interrupts.
636 (interrupts_info): Print the interrupt history.
637 (interrupt_option_handler): New function.
638 (interrupt_options): New table of options.
639 (interrupts_update_pending): Keep track of when interrupts are
640 raised and implement breakpoint-on-raise-interrupt.
641 (interrupts_process): Keep track of when interrupts are taken
642 and implement breakpoint-on-interrupt.
643 * interrupts.h (struct interrupt_history): Define.
644 (struct interrupt): Keep track of the interrupt history.
645 (interrupts_reset): Declare.
646 (interrupts_initialize): Update prototype.
647 * m68hc11_sim.c (cpu_reset): Reset interrupts.
648 (cpu_initialize): Cleanup.
650 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
652 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
654 (m68hc11eepr_port_event): Fix detach/attach logic.
656 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
658 * Makefile.in (SIM_OBJS): Remove sim-resume.o
659 * interp.c (sim_resume): New function from sim-resume.c, install
660 the stepping event after having processed the pending ticks.
661 (has_stepped): Likewise.
662 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
664 2001-07-10 Andrew Cagney <ac131313@redhat.com>
666 * Makefile.in (gencode): Provide explicit path to gencode.c.
668 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
670 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
671 (m68hc12int.c): Generate using gencode -m6812.
672 (m68hc11int.c): Likewise with -m6811.
674 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
675 (m6811_page1_opcodes): Remove duplicate entries.
676 (m6811_page2_opcodes): Likewise.
677 (m6811_page3_opcodes): Likewise.
678 (m6811_page4_opcodes): Likewise.
679 (m6812_page1_opcodes): New table for 68HC12 instructions.
680 (m6812_page2_opcodes): Likewise.
681 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
682 (gen_save_result): Likewise.
683 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
684 (cmp_opcode): New function for opcode comparision.
685 (prepare_table): Sort the opcodes.
686 (gen_interpreter): Prepare all the tables and generate either
687 a 68HC11 or a 68HC12 simulator.
688 (main): New options -m6811 and -m6812.
690 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
691 (cpu_special): Simulation of some 68HC12 instructions.
692 (cpu_exg): New function.
693 (cpu_dbcc): Likewise.
694 (cpu_fetch_relbranch16): Likewise.
695 (cpu_push_all): Push according to 68HC11 or 68HC12.
696 (cpu_move16): Likewise.
697 (cpu_move8): Likewise.
698 (cpu_get_indexed_operand16): Likewise.
699 (cpu_get_indexed_operand8): Likewise.
700 (cpu_get_indexed_operand_addr): Likewise.
701 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
702 (cpu_reset): Setup INIT register according to architecture.
704 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
705 (_sim_cpu): Keep track of the cpu being simulated.
706 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
707 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
708 (cpu_m68hc11_pop_uint8): Likewise.
709 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
710 (cpu_m68hc12_pop_uintxx): Likewise.
711 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
712 (cpu_fetch_relbranch16): Likewise.
713 (cpu_interp_m6811): Rename of cpu_interp.
714 (cpu_interp_m6812): New function.
715 * interp.c (free_state): New function.
716 (dev_list_68hc12): New table.
717 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
718 (sim_hw_configure): New function.
719 (sim_prepare_for_program): New function.
720 (sim_open): Use above new functions.
721 (sim_close): Call free_state().
722 (sim_info): Print info according to cpu.
723 (sim_create_inferior): Use sim_prepare_for_program.
724 (sim_do_command): Configure the hardware after a change of the
727 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
729 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
731 * interrupts.c (interrupts_process): Keep track of the last number
732 of masked insn cycles.
733 (interrupts_initialize): Clear last number of masked insn cycles.
734 (interrupts_info): Report them.
735 (interrupts_update_pending): Compute clear and set masks of
736 interrupts and clear the interrupt bits before setting them
737 (due to SCI interrupt sharing).
738 * interrupts.h (struct interrupts): New members last_mask_cycles
739 and xirq_last_mask_cycles.
741 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
743 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
744 instead of a hard-coded value.
745 (m68hc11cpu_io_write_buffer): Likewise.
746 (dv_m68hc11_descriptor): Define a 68hc12 device.
747 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
748 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
749 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
750 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
752 2000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
754 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
755 (m68hc11cpu_delete): Delete handler to detach the address space.
757 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
759 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
760 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
761 instead of free and malloc.
763 2000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
765 * Makefile.in: Was missing from initial patch.
767 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
769 * interp.c (sim_store_register): Remove soft register hack.
770 (sim_fetch_register): Likewise.
771 (sim_create_inferior): Likewise.
772 * sim-main.h: Likewise.
774 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
776 * interrupts.c (interrupts_update_pending): Clear the mask of
777 pending interrupts here.
778 (interrupts_get_current): Don't clear the mask of pending interrupts.
780 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
782 * sim-main.h: Define cycle_to_string.
783 * dv-m68hc11tim.c (cycle_to_string): New function to translate
784 the cpu cycle into some formatted time string.
785 (m68hc11tim_print_timer): Use it.
786 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
787 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
788 * interrupts.c (interrupts_info): Likewise.
789 * m68hc11_sim.c (cpu_info): Likewise.
791 2000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
793 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
794 interrupt and compare events accurately. Take into account the
795 pending ticks not processed by the simulator yet (introduced a shift).
796 (m68hc11_port_event): Reset the timer interrupt delays.
797 (m68hc11tim_io_read_buffer): Be able to read several bytes.
798 (m68hc11tim_io_write_buffer): Likewise for write.
799 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
801 2000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
803 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
804 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
805 (m68hc11spi_info): Clarify the status report
806 of the SPI when a byte is being sent.
807 (m68hc11spi_clock): Fix the spi send frame.
809 2000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
811 * sim-main.h (m68hc11_map_level): Define level of address mappings.
812 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
813 whether the eeprom is currently mapped or not.
814 (m68hc11eepr_port_event): Use the flag to see if we must unmap
815 or map the eeprom. Update the flag to reflect the current state.
816 Use M6811_EEPROM_LEVEL when mapping the eeprom.
817 (m68hc11eepr_finish): Remove overlap hack.
818 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
819 config and control registers.
820 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
821 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
822 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
823 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
824 (attach_m68hc11spi_regs): Likewise.
825 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
826 (attach_m68hc11tim_regs): Likewise.
827 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
828 (attach_m68hc11sio_regs): Likewise.
829 * interp.c (sim_open): Likewise.
830 * dv-nvram.c (attach_nvram_regs): Likewise.
832 Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
834 * configure, config.in: Regenerate.
836 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
838 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
839 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
840 (dv_m6811_detach_address_callback): New function to detach a
841 device from an address space.
842 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
843 config register according to --cpu-config option.
844 * sim-main.h (_sim_cpu): Add cpu_config member.
845 * interp.c (sim_open): Delete specific simulator options.
846 * m68hc11_sim.c (cpu_option_handler): New options
847 --emulos and -cpu-config <val> to configure the simulator.
848 (cpu_initialize): Initialize cpu_config member.
850 2000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
852 * emulos.c: Fix indentation and comments.
853 * gencode.c: Likewise.
854 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
855 (m68hc11tim_io_write_buffer): Write compare registers and
857 * interp.c: Remove unused global variables.
858 * interrupts.c (idefs): New compare interrupts.
859 Fix indentation and comments.
860 * interrupts.h: Likewise.
862 2000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
864 * dv-m68hc11sio.c: Fix indentation and comments.
866 * dv-m68hc11.c: Fix indentation and comments.
867 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
868 * m68hc11_sim.c (cpu_reset): To here.
869 * dv-m68hc11eepr.c: Fix indentation and comments.
871 2000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
873 * dv-nvram.c: New file, rename from dv-pram.c.
874 * dv-pram.c: Delete file.
875 * sim-main.h: Incorporate m68hc11_sim.h.
876 * m68hc11_sim.h: Delete file.
877 * configure.in: Rename pram into nvram.
878 * interp.c (sim_open): Likewise in creation of device tree.
880 2000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
882 * interp.c (sim_open): Create the SPI device.
883 * dv-m68hc11spi.c: New file for SPI device simulation.
884 * configure.in (hw_extra_devices): Add SPI device.
886 2000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
888 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
889 (interrupts_process): Separate IRQ and XIRQ accounting.
890 (interrupts_info): Report XIRQ accounting.
891 * interrupts.h (struct interrupts): Added accounting for XIRQ.
893 2000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
895 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
896 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
897 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
898 configuration from the 'mode' device tree property.
899 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
902 2000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
904 * sim-main.h: Remove WITH_TARGET_* defines.
905 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
907 2000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
909 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
910 1200 baud when cpu is in bootstrap mode.
912 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
913 write in the TCTN timer register.
915 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
916 by 4 to obtain the E clock frequency.
917 (sccr2_desc): Use M6811_TIE for TIE bit.
918 (m68hc11sio_info): Fix baud rate report.
920 * dv-m68hc11tim.c (to_realtime): Likewise.
922 * interp.c (sim_open): When building device tree, only provide
923 devices that do not exist yet.
925 * emulos.c: Fix compilation pb under Windows.
927 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
928 from the 'clock' property.
930 2000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
932 * m68hc11_sim.h (*_REGNUM): Define.
933 (_sim_cpu): New member cpu_page0_reg table.
934 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
935 addresses of soft registers in .page0.
936 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
937 to get/set soft registers.
939 1999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
941 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
942 returning random values.
944 1999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
946 * gencode.c: Fix "subb N,x" that used a instead of b.
948 1999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
950 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
952 1999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
954 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
956 1999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
958 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
959 register region in the m68hc11cpu struct.
960 (m68hc11cpu_io_write): When the IO mapping addres changes,
961 detach the register region and re-attach it at the new address.
962 (m68hc11cpu_io_read_buffer): Renamed base_address into
964 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
965 to m68hc11cpu_io_write.
967 1999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
969 * gencode.c: For sbc8, check the carry and increment the source
970 before trying to set the carry for the result.
972 1999-05-24 John S. Kallal <kallal@voicenet.com>
974 * interp.c (sim_get_info): Don't crash if the command line is 0.
975 Define prototype for sim_get_info() and init_system().
976 (sim_info): Correct call to sim_get_info().
978 1999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
980 * configure.in: Recognize m6811-*-*.
981 * configure: Regenerate.
982 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
983 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
984 Correct the computation of carry of 8 and 16-bits add and subtract.
985 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
986 overflow set in a different manner than add).
988 1999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
990 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
992 * interp.c (sim_open, sim_create_inferior): Initialize the
993 cpu_elf_start from the ELF header.
994 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
995 (cpu_restart): Use cpu_elf_start as the starting address when
997 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
998 exits the simulator (exit status is in D).
999 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
1000 cpu_elf_star to start execution at address specified in ELF file.
1002 1999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
1004 * Makefile.in, config.in, configure, configure.in: New files.
1005 * gencode.c: New file, generation of 68HC11 interpreter.
1006 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
1008 * interrupts.c, interrupts.h: New files, management of interrupts.
1009 * interp.c, sim-main.h,
1010 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
1011 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
1012 68HC11 (dv-pram.c is generic and could probably migrate to common).
1013 * emulos.c: New file, basic emulation of some os.