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