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