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