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