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