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