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