1 2015-11-17 Mike Frysinger <vapier@gentoo.org>
3 * sim-main.h (WITH_MODULO_MEMORY): Delete.
5 2015-11-15 Mike Frysinger <vapier@gentoo.org>
7 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
9 2015-11-14 Mike Frysinger <vapier@gentoo.org>
11 * Makefile.in (SIM_OBJS): Delete sim-load.o.
13 2015-11-14 Mike Frysinger <vapier@gentoo.org>
15 * interp.c (sim_close): Delete.
17 2015-06-23 Mike Frysinger <vapier@gentoo.org>
19 * configure: Regenerate.
21 2015-06-12 Mike Frysinger <vapier@gentoo.org>
23 * configure: Regenerate.
25 2015-06-12 Mike Frysinger <vapier@gentoo.org>
27 * configure: Regenerate.
29 2015-06-11 Mike Frysinger <vapier@gentoo.org>
31 * interp.c (interrupt_names): Delete.
33 2015-06-11 Mike Frysinger <vapier@gentoo.org>
35 * Makefile.in (SIM_OBJS): Add sim-resume.o
36 * interp.c (has_stepped, sim_resume): Delete.
38 2015-06-11 Mike Frysinger <vapier@gentoo.org>
40 * interp.c (INLINE): Delete define.
42 2015-04-29 Nick Clifton <nickc@redhat.com>
45 * gencode.c (gen_fetch_operands): Remove unreachable code.
47 2015-04-18 Mike Frysinger <vapier@gentoo.org>
49 * sim-main.h (SIM_CPU): Delete.
51 2015-04-18 Mike Frysinger <vapier@gentoo.org>
53 * sim-main.h (sim_cia): Delete.
55 2015-04-17 Mike Frysinger <vapier@gentoo.org>
57 * sim-main.h (CIA_GET, CIA_SET): Delete.
59 2015-04-15 Mike Frysinger <vapier@gentoo.org>
61 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
62 * sim-main.h (STATE_CPU): Delete.
64 2015-04-13 Mike Frysinger <vapier@gentoo.org>
66 * configure: Regenerate.
68 2015-04-13 Mike Frysinger <vapier@gentoo.org>
70 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
71 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
72 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
73 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
75 * sim-main.h (SIM_CPU): Define.
77 (struct sim_state): Change cpu to an array of pointers.
79 2015-04-06 Mike Frysinger <vapier@gentoo.org>
81 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
83 2015-03-31 Mike Frysinger <vapier@gentoo.org>
85 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
86 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
87 variable to restricted.
88 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
90 2015-03-24 Mike Frysinger <vapier@gentoo.org>
92 * interp.c (sim_pc_get): New function.
94 2015-03-24 Mike Frysinger <vapier@gentoo.org>
96 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
97 sim_size, sim_trace): Delete.
98 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
100 2015-03-24 Mike Frysinger <vapier@gentoo.org>
102 * configure: Regenerate.
104 2015-03-23 Mike Frysinger <vapier@gentoo.org>
106 * configure: Regenerate.
108 2015-03-23 Mike Frysinger <vapier@gentoo.org>
110 * configure: Regenerate.
111 * configure.ac (m68hc11_extra_objs): Delete.
112 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
113 (SIM_EXTRA_OBJS): Delete.
115 2015-03-16 Mike Frysinger <vapier@gentoo.org>
117 * config.in, configure: Regenerate.
119 2015-03-14 Mike Frysinger <vapier@gentoo.org>
121 * Makefile.in (SIM_RUN_OBJS): Delete.
123 2015-03-14 Mike Frysinger <vapier@gentoo.org>
125 * configure.ac (AC_CHECK_HEADERS): Delete.
126 * aclocal.m4, configure: Regenerate.
128 2014-08-19 Alan Modra <amodra@gmail.com>
130 * configure: Regenerate.
132 2014-08-15 Roland McGrath <mcgrathr@google.com>
134 * configure: Regenerate.
135 * config.in: Regenerate.
137 2014-03-04 Mike Frysinger <vapier@gentoo.org>
139 * configure: Regenerate.
141 2013-09-23 Alan Modra <amodra@gmail.com>
143 * configure: Regenerate.
145 2013-06-03 Mike Frysinger <vapier@gentoo.org>
147 * aclocal.m4, configure: Regenerate.
149 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
151 * configure: Rebuild.
153 2013-03-26 Mike Frysinger <vapier@gentoo.org>
155 * configure: Regenerate.
157 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
159 * configure.ac: Use $SIM_DV_SOCKSER_O.
160 * configure: Regenerated.
162 2012-06-15 Joel Brobecker <brobecker@adacore.com>
164 * config.in, configure: Regenerate.
166 2012-03-24 Mike Frysinger <vapier@gentoo.org>
168 * aclocal.m4, config.in, configure: Regenerate.
170 2011-12-03 Mike Frysinger <vapier@gentoo.org>
172 * aclocal.m4: New file.
173 * configure: Regenerate.
175 2011-10-19 Mike Frysinger <vapier@gentoo.org>
177 * configure: Regenerate after common/acinclude.m4 update.
179 2011-10-17 Mike Frysinger <vapier@gentoo.org>
181 * configure.ac: Change include to common/acinclude.m4.
183 2011-10-17 Mike Frysinger <vapier@gentoo.org>
185 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
186 call. Replace common.m4 include with SIM_AC_COMMON.
187 * configure: Regenerate.
189 2011-07-05 Mike Frysinger <vapier@gentoo.org>
191 * interp.c (sim_do_command): Delete.
193 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
195 * configure: Regenerate.
197 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
199 * config.in: Regenerate.
200 * configure: Likewise.
202 * configure: Regenerate.
204 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
206 * configure: Regenerate to track ../common/common.m4 changes.
209 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
210 Daniel Jacobowitz <dan@codesourcery.com>
211 Joseph Myers <joseph@codesourcery.com>
213 * configure: Regenerate.
215 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
217 * config.in: Regenerate.
219 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
221 * configure: Regenerated.
223 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
225 * configure: Regenerated.
227 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
229 * configure: Regenerated.
231 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
233 * configure: Regenerate.
235 2005-03-23 Mark Kettenis <kettenis@gnu.org>
237 * configure: Regenerate.
239 2005-01-14 Andrew Cagney <cagney@gnu.org>
241 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
242 explicit call to AC_CONFIG_HEADER.
243 * configure: Regenerate.
245 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
247 * configure: Regenerated to track ../common/aclocal.m4 changes.
249 2005-01-07 Andrew Cagney <cagney@gnu.org>
251 * configure.ac: Rename configure.in, require autoconf 2.59.
252 * configure: Re-generate.
254 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
256 * configure: Regenerate for ../common/aclocal.m4 update.
258 2004-06-15 Alan Modra <amodra@bigpond.net.au>
260 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
261 instead of bfd_get_section_size_before_reloc.
263 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>
265 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
266 control the translation.
267 (m68hc11tim_print_timer): Update cycle_to_string conversion.
268 (m68hc11tim_timer_event): Fix handling of output
269 compare register with its interrupts.
270 (m68hc11tim_io_write_buffer): Check output compare
271 after setting M6811_TMSK1.
272 (m68hc11tim_io_read_buffer): Fix compilation warning.
273 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
274 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
275 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
276 * interrupts.c (interrupts_info): Likewise.
277 (interrupts_reset): Recognize bootstrap mode.
278 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
279 (_sim_cpu): Add cpu_start_mode.
280 (cycle_to_string): Add flags member.
281 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
282 (cpu_options): Declare new option bootstrap.
283 (cpu_option_handler): Handle it.
284 (cpu_info): Update call to cycle_to_string.
286 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>
288 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
289 the physical address in virtual address.
290 (struct _sim_cpu): Add memory bank members.
291 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
292 * interp.c (sim_hw_configure): Create memory bank according to memory
294 (sim_get_bank_parameters): New function to obtain memory bank config
295 from the symbol table.
296 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
297 (sim_open): Call sim_prepare_for_program.
298 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
299 to check if address is within bank window.
300 (m68hc11cpu_io_read_buffer): Likewise.
301 (attach_m68hc11_regs): Map the memory bank according to memory bank
304 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
306 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
308 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
309 Gary Piercey <gpiercey@northstar-technical.com>
311 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
312 * sim-main.h (print_io_word): Declare.
313 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
314 (tflg1_desc): Likewise for TFLG1.
315 (m68hc11tim_info): Print input and output compare registers
317 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
319 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
320 to 32 to support memory bank switching; temporarily use 32-bit for
321 WORD_BITSIZE to avoid a bug in sim-common.
323 2003-03-01 Stephane Carrez <stcarrez@nerim.fr>
325 * interp.c (sim_fetch_register): Only store a single byte for
328 2003-02-27 Andrew Cagney <cagney@redhat.com>
330 * interp.c (sim_prepare_for_program, sim_open)
331 (sim_create_inferior): Rename _bfd to bfd.
333 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
335 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
337 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
339 * interp.c (sim_prepare_for_program): Look up the image for the
340 reset vector and set cpu_use_elf_start to 1 if not found.
341 (sim_open): Do not set cpu_use_elf_start.
343 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
345 * interp.c (sim_hw_configure): Return 1 for success.
346 (sim_prepare_for_program): Use the sim_hw_configure exit code to
349 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
351 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
352 bank window to some virtual address to read from extended memory.
353 (m68hc11cpu_io_write_buffer): Likewise for writing.
354 (attach_m68hc11_regs): When use_bank property is defined, attach
355 to the 68HC12 16K memory bank window.
356 * interp.c (sim_hw_configure): Create memory region for banked
359 2002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
361 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
362 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
363 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
365 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
367 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
368 when IO mapping changed, not when internal RAM mapping is changed.
370 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
372 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
373 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
374 (m6811_regs): Add page register.
375 (cpu_set_page, cpu_get_page): New macros.
376 (phys_to_virt): New function.
377 (cpu_get_indexed_operand_addr, cpu_return): Declare.
378 * gencode.c: Identify indirect addressing mode for call and fix daa.
379 (gen_function_entry): New param to tell if src8/dst8 locals are
381 (gen_interpreter): Use it to avoid generation of unused variables.
382 * interp.c (sim_fetch_register): Allow to read page register; page
383 register, A, B and CCR are only 1 byte wide.
384 (sim_store_register): Likewise for writing.
386 2002-06-16 Andrew Cagney <ac131313@redhat.com>
388 * configure: Regenerated to track ../common/aclocal.m4 changes.
390 2002-06-09 Andrew Cagney <cagney@redhat.com>
392 * Makefile.in (INCLUDE): Update path to callback.h.
393 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
395 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
397 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
398 (cpu_move16): Likewise.
399 (sim_memory_error): Use sim_io_printf.
400 (cpu_option_handler): Fix compilation warning.
401 * interp.c (sim_hw_configure): Fix compilation warning;
402 remove m68hc12sio@2 device.
403 (sim_open): Likewise.
404 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
406 (cycle_to_string): Improve convertion of cpu cycle number.
407 (m68hc11tim_info): Print info about PACNT.
408 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
409 TCTL1 and TCTL2 registers.
410 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
412 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
414 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
416 (sim_hw_configure): Connect the capture input/output events.
417 * sim-main.h (_sim_cpu): New member hw_cpu.
418 (m68hc11cpu_set_oscillator): Declare.
419 (m68hc11cpu_clear_oscillator): Declare.
420 (m68hc11cpu_set_port): Declare.
421 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
422 (m68hc11cpu_ports): New input ports and output ports to reflect
424 (m68hc11_delete): Cleanup any running oscillator.
425 (attach_m68hc11_regs): Create the input oscillators.
426 (make_oscillator): New function.
427 (find_oscillator): New function.
428 (oscillator_handler): New function.
429 (reset_oscillators): New function.
430 (m68hc11cpu_port_event): Handle the new input ports.
431 (m68hc11cpu_set_oscillator): New function.
432 (m68hc11cpu_clear_oscillator): New function.
433 (get_frequency): New function.
434 (m68hc11_option_handler): New function.
435 (m68hc11cpu_set_port): New function.
436 (m68hc11cpu_io_write): Post the port output events.
437 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
438 the output port value.
439 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
440 by latching the TCNT value in the register.
442 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
444 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
445 (cpu_frame_reg, cpu_print_frame): Remove.
446 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
447 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
448 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
449 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
450 * m68hc11_sim.c (cpu_find_frame): Remove.
451 (cpu_create_frame_list): Remove.
452 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
453 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
454 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
455 (cpu_update_frame): Likewise.
456 (cpu_return): Likewise.
457 (cpu_reset): Likewise.
458 (cpu_initialize): Likewise.
459 * interp.c (sim_do_command): Remove call to cpu_print_frame.
461 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
463 * interrupts.c (interrupts_reset): New function, setup interrupt
464 vector address according to cpu mode.
465 (interrupts_initialize): Move reset portion to the above.
466 (interrupt_names): New table to give a name to interrupts.
467 (idefs): Handle pulse accumulator interrupts.
468 (interrupts_info): Print the interrupt history.
469 (interrupt_option_handler): New function.
470 (interrupt_options): New table of options.
471 (interrupts_update_pending): Keep track of when interrupts are
472 raised and implement breakpoint-on-raise-interrupt.
473 (interrupts_process): Keep track of when interrupts are taken
474 and implement breakpoint-on-interrupt.
475 * interrupts.h (struct interrupt_history): Define.
476 (struct interrupt): Keep track of the interrupt history.
477 (interrupts_reset): Declare.
478 (interrupts_initialize): Update prototype.
479 * m68hc11_sim.c (cpu_reset): Reset interrupts.
480 (cpu_initialize): Cleanup.
482 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
484 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
486 (m68hc11eepr_port_event): Fix detach/attach logic.
488 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
490 * Makefile.in (SIM_OBJS): Remove sim-resume.o
491 * interp.c (sim_resume): New function from sim-resume.c, install
492 the stepping event after having processed the pending ticks.
493 (has_stepped): Likewise.
494 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
496 2001-07-10 Andrew Cagney <ac131313@redhat.com>
498 * Makefile.in (gencode): Provide explicit path to gencode.c.
500 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
502 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
503 (m68hc12int.c): Generate using gencode -m6812.
504 (m68hc11int.c): Likewise with -m6811.
506 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
507 (m6811_page1_opcodes): Remove duplicate entries.
508 (m6811_page2_opcodes): Likewise.
509 (m6811_page3_opcodes): Likewise.
510 (m6811_page4_opcodes): Likewise.
511 (m6812_page1_opcodes): New table for 68HC12 instructions.
512 (m6812_page2_opcodes): Likewise.
513 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
514 (gen_save_result): Likewise.
515 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
516 (cmp_opcode): New function for opcode comparision.
517 (prepare_table): Sort the opcodes.
518 (gen_interpreter): Prepare all the tables and generate either
519 a 68HC11 or a 68HC12 simulator.
520 (main): New options -m6811 and -m6812.
522 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
523 (cpu_special): Simulation of some 68HC12 instructions.
524 (cpu_exg): New function.
525 (cpu_dbcc): Likewise.
526 (cpu_fetch_relbranch16): Likewise.
527 (cpu_push_all): Push according to 68HC11 or 68HC12.
528 (cpu_move16): Likewise.
529 (cpu_move8): Likewise.
530 (cpu_get_indexed_operand16): Likewise.
531 (cpu_get_indexed_operand8): Likewise.
532 (cpu_get_indexed_operand_addr): Likewise.
533 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
534 (cpu_reset): Setup INIT register according to architecture.
536 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
537 (_sim_cpu): Keep track of the cpu being simulated.
538 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
539 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
540 (cpu_m68hc11_pop_uint8): Likewise.
541 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
542 (cpu_m68hc12_pop_uintxx): Likewise.
543 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
544 (cpu_fetch_relbranch16): Likewise.
545 (cpu_interp_m6811): Rename of cpu_interp.
546 (cpu_interp_m6812): New function.
547 * interp.c (free_state): New function.
548 (dev_list_68hc12): New table.
549 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
550 (sim_hw_configure): New function.
551 (sim_prepare_for_program): New function.
552 (sim_open): Use above new functions.
553 (sim_close): Call free_state().
554 (sim_info): Print info according to cpu.
555 (sim_create_inferior): Use sim_prepare_for_program.
556 (sim_do_command): Configure the hardware after a change of the
559 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
561 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
563 * interrupts.c (interrupts_process): Keep track of the last number
564 of masked insn cycles.
565 (interrupts_initialize): Clear last number of masked insn cycles.
566 (interrupts_info): Report them.
567 (interrupts_update_pending): Compute clear and set masks of
568 interrupts and clear the interrupt bits before setting them
569 (due to SCI interrupt sharing).
570 * interrupts.h (struct interrupts): New members last_mask_cycles
571 and xirq_last_mask_cycles.
573 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
575 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
576 instead of a hard-coded value.
577 (m68hc11cpu_io_write_buffer): Likewise.
578 (dv_m68hc11_descriptor): Define a 68hc12 device.
579 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
580 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
581 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
582 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
584 2000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
586 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
587 (m68hc11cpu_delete): Delete handler to detach the address space.
589 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
591 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
592 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
593 instead of free and malloc.
595 2000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
597 * Makefile.in: Was missing from initial patch.
599 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
601 * interp.c (sim_store_register): Remove soft register hack.
602 (sim_fetch_register): Likewise.
603 (sim_create_inferior): Likewise.
604 * sim-main.h: Likewise.
606 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
608 * interrupts.c (interrupts_update_pending): Clear the mask of
609 pending interrupts here.
610 (interrupts_get_current): Don't clear the mask of pending interrupts.
612 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
614 * sim-main.h: Define cycle_to_string.
615 * dv-m68hc11tim.c (cycle_to_string): New function to translate
616 the cpu cycle into some formatted time string.
617 (m68hc11tim_print_timer): Use it.
618 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
619 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
620 * interrupts.c (interrupts_info): Likewise.
621 * m68hc11_sim.c (cpu_info): Likewise.
623 2000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
625 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
626 interrupt and compare events accurately. Take into account the
627 pending ticks not processed by the simulator yet (introduced a shift).
628 (m68hc11_port_event): Reset the timer interrupt delays.
629 (m68hc11tim_io_read_buffer): Be able to read several bytes.
630 (m68hc11tim_io_write_buffer): Likewise for write.
631 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
633 2000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
635 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
636 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
637 (m68hc11spi_info): Clarify the status report
638 of the SPI when a byte is being sent.
639 (m68hc11spi_clock): Fix the spi send frame.
641 2000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
643 * sim-main.h (m68hc11_map_level): Define level of address mappings.
644 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
645 whether the eeprom is currently mapped or not.
646 (m68hc11eepr_port_event): Use the flag to see if we must unmap
647 or map the eeprom. Update the flag to reflect the current state.
648 Use M6811_EEPROM_LEVEL when mapping the eeprom.
649 (m68hc11eepr_finish): Remove overlap hack.
650 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
651 config and control registers.
652 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
653 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
654 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
655 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
656 (attach_m68hc11spi_regs): Likewise.
657 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
658 (attach_m68hc11tim_regs): Likewise.
659 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
660 (attach_m68hc11sio_regs): Likewise.
661 * interp.c (sim_open): Likewise.
662 * dv-nvram.c (attach_nvram_regs): Likewise.
664 Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
666 * configure, config.in: Regenerate.
668 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
670 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
671 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
672 (dv_m6811_detach_address_callback): New function to detach a
673 device from an address space.
674 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
675 config register according to --cpu-config option.
676 * sim-main.h (_sim_cpu): Add cpu_config member.
677 * interp.c (sim_open): Delete specific simulator options.
678 * m68hc11_sim.c (cpu_option_handler): New options
679 --emulos and -cpu-config <val> to configure the simulator.
680 (cpu_initialize): Initialize cpu_config member.
682 2000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
684 * emulos.c: Fix indentation and comments.
685 * gencode.c: Likewise.
686 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
687 (m68hc11tim_io_write_buffer): Write compare registers and
689 * interp.c: Remove unused global variables.
690 * interrupts.c (idefs): New compare interrupts.
691 Fix indentation and comments.
692 * interrupts.h: Likewise.
694 2000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
696 * dv-m68hc11sio.c: Fix indentation and comments.
698 * dv-m68hc11.c: Fix indentation and comments.
699 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
700 * m68hc11_sim.c (cpu_reset): To here.
701 * dv-m68hc11eepr.c: Fix indentation and comments.
703 2000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
705 * dv-nvram.c: New file, rename from dv-pram.c.
706 * dv-pram.c: Delete file.
707 * sim-main.h: Incorporate m68hc11_sim.h.
708 * m68hc11_sim.h: Delete file.
709 * configure.in: Rename pram into nvram.
710 * interp.c (sim_open): Likewise in creation of device tree.
712 2000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
714 * interp.c (sim_open): Create the SPI device.
715 * dv-m68hc11spi.c: New file for SPI device simulation.
716 * configure.in (hw_extra_devices): Add SPI device.
718 2000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
720 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
721 (interrupts_process): Separate IRQ and XIRQ accounting.
722 (interrupts_info): Report XIRQ accounting.
723 * interrupts.h (struct interrupts): Added accounting for XIRQ.
725 2000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
727 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
728 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
729 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
730 configuration from the 'mode' device tree property.
731 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
734 2000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
736 * sim-main.h: Remove WITH_TARGET_* defines.
737 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
739 2000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
741 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
742 1200 baud when cpu is in bootstrap mode.
744 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
745 write in the TCTN timer register.
747 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
748 by 4 to obtain the E clock frequency.
749 (sccr2_desc): Use M6811_TIE for TIE bit.
750 (m68hc11sio_info): Fix baud rate report.
752 * dv-m68hc11tim.c (to_realtime): Likewise.
754 * interp.c (sim_open): When building device tree, only provide
755 devices that do not exist yet.
757 * emulos.c: Fix compilation pb under Windows.
759 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
760 from the 'clock' property.
762 2000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
764 * m68hc11_sim.h (*_REGNUM): Define.
765 (_sim_cpu): New member cpu_page0_reg table.
766 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
767 addresses of soft registers in .page0.
768 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
769 to get/set soft registers.
771 1999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
773 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
774 returning random values.
776 1999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
778 * gencode.c: Fix "subb N,x" that used a instead of b.
780 1999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
782 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
784 1999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
786 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
788 1999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
790 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
791 register region in the m68hc11cpu struct.
792 (m68hc11cpu_io_write): When the IO mapping addres changes,
793 detach the register region and re-attach it at the new address.
794 (m68hc11cpu_io_read_buffer): Renamed base_address into
796 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
797 to m68hc11cpu_io_write.
799 1999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
801 * gencode.c: For sbc8, check the carry and increment the source
802 before trying to set the carry for the result.
804 1999-05-24 John S. Kallal <kallal@voicenet.com>
806 * interp.c (sim_get_info): Don't crash if the command line is 0.
807 Define prototype for sim_get_info() and init_system().
808 (sim_info): Correct call to sim_get_info().
810 1999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
812 * configure.in: Recognize m6811-*-*.
813 * configure: Regenerate.
814 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
815 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
816 Correct the computation of carry of 8 and 16-bits add and subtract.
817 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
818 overflow set in a different manner than add).
820 1999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
822 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
824 * interp.c (sim_open, sim_create_inferior): Initialize the
825 cpu_elf_start from the ELF header.
826 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
827 (cpu_restart): Use cpu_elf_start as the starting address when
829 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
830 exits the simulator (exit status is in D).
831 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
832 cpu_elf_star to start execution at address specified in ELF file.
834 1999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
836 * Makefile.in, config.in, configure, configure.in: New files.
837 * gencode.c: New file, generation of 68HC11 interpreter.
838 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
840 * interrupts.c, interrupts.h: New files, management of interrupts.
841 * interp.c, sim-main.h,
842 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
843 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
844 68HC11 (dv-pram.c is generic and could probably migrate to common).
845 * emulos.c: New file, basic emulation of some os.