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