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