]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
Remove LIBS from two sim Makefiles
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
d6581fcd
TT
12021-04-22 Tom Tromey <tom@tromey.com>
2
3 * Makefile.in (INCLUDE): Remove.
4
e7d8f1da
TT
52021-04-22 Tom Tromey <tom@tromey.com>
6
7 * Makefile.in (interp.o): Remove.
8
efd82ac7
TT
92021-04-22 Tom Tromey <tom@tromey.com>
10
11 * configure: Rebuild.
12
2662c237
MF
132021-04-21 Mike Frysinger <vapier@gentoo.org>
14
15 * aclocal.m4: Regenerate.
16
1f195bc3
SM
172021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
18
19 * configure: Regenerate.
20
37e9f182
MF
212021-04-18 Mike Frysinger <vapier@gentoo.org>
22
23 * configure: Regenerate.
24
d5a71b11
MF
252021-04-12 Mike Frysinger <vapier@gentoo.org>
26
27 * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
28
c2783492
MF
292021-04-02 Mike Frysinger <vapier@gentoo.org>
30
31 * aclocal.m4, configure: Regenerate.
32
c6c7769d
MF
332021-03-13 Mike Frysinger <vapier@gentoo.org>
34
35 * Makefile.in (gencode.o): New rule.
36 (gencode): Call LINK_FOR_BUILD.
37
ebe9564b
MF
382021-02-28 Mike Frysinger <vapier@gentoo.org>
39
40 * configure: Regenerate.
41
760b3e8b
MF
422021-02-21 Mike Frysinger <vapier@gentoo.org>
43
44 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
45 * aclocal.m4, configure: Regenerate.
46
136da8cd
MF
472021-02-13 Mike Frysinger <vapier@gentoo.org>
48
49 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
50 * aclocal.m4, configure: Regenerate.
51
aa09469f
MF
522021-02-06 Mike Frysinger <vapier@gentoo.org>
53
54 * configure: Regenerate.
55
683b8d96
MF
562021-01-30 Mike Frysinger <vapier@gentoo.org>
57
58 * dv-m68hc11tim.c (cycle_to_string): Change llu to PRIi64.
59
b9e016f5
MF
602021-01-30 Mike Frysinger <vapier@gentoo.org>
61
62 * m68hc11_sim.c (cpu_set_sp): Add static markings.
63 (cpu_get_reg, cpu_get_src_reg, cpu_set_dst_reg,
64 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8): Likewise.
65
fb8d4e59
MF
662021-01-30 Mike Frysinger <vapier@gentoo.org>
67
68 * interp.c (sim_get_info, sim_board_reset): Pass %s to sim_hw_parse.
69
ee64caae
MF
702021-01-30 Mike Frysinger <vapier@gentoo.org>
71
72 * dv-m68hc11.c, m68hc11_sim.c: Include stdlib.h.
73
88f68ee2
MF
742021-01-30 Mike Frysinger <vapier@gentoo.org>
75
76 * configure.ac (SIM_AC_OPTION_HARDWARE): Inline variables.
77 * configure: Regenerate.
78
68ed2854
MF
792021-01-11 Mike Frysinger <vapier@gentoo.org>
80
81 * config.in, configure: Regenerate.
82
50df264d
MF
832021-01-09 Mike Frysinger <vapier@gentoo.org>
84
85 * configure: Regenerate.
86
bf470982
MF
872021-01-09 Mike Frysinger <vapier@gentoo.org>
88
89 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
90 * configure: Regenerate.
91
46f900c0
MF
922021-01-08 Mike Frysinger <vapier@gentoo.org>
93
94 * configure: Regenerate.
95
dfb856ba
MF
962021-01-04 Mike Frysinger <vapier@gentoo.org>
97
98 * configure: Regenerate.
99
5c887dd5
JB
1002017-09-06 John Baldwin <jhb@FreeBSD.org>
101
102 * configure: Regenerate.
103
13a590ca
MF
1042017-02-13 Mike Frysinger <vapier@gentoo.org>
105
106 * gencode.c: Include libiberty.h.
107 (TABLE_SIZE): Delete.
108 (find_opcode_pattern): Change TABLE_SIZE to ARRAY_SIZE.
109 (gen_interpreter): Likewise.
110 * interrupts.c (TableSize): Delete.
111 (interrupts_update_pending): Change TableSize to ARRAY_SIZE.
112
fa0843f5
MF
1132016-08-16 Mike Frysinger <vapier@gentoo.org>
114
115 * sim-main.h (inline): Delete define.
116 (phys_to_virt): Change inline to STATIC_INLINE.
117 (memory_read8, memory_write8, memory_read16, memory_write16,
118 cpu_ccr_update_tst16, cpu_ccr_update_shift8, cpu_ccr_update_shift16,
119 cpu_ccr_update_add8, cpu_ccr_update_sub8, cpu_ccr_update_add16,
120 cpu_ccr_update_sub16, cpu_m68hc11_push_uint8, cpu_m68hc11_push_uint16,
121 cpu_m68hc11_pop_uint8, cpu_m68hc11_pop_uint16, cpu_m68hc12_push_uint8,
122 cpu_m68hc12_push_uint16, cpu_m68hc12_pop_uint8,
123 cpu_m68hc12_pop_uint16, cpu_fetch8, cpu_fetch16): Likewise.
124
5357150c
MF
1252016-08-15 Mike Frysinger <vapier@gentoo.org>
126
127 * interp.c (sim_get_bank_parameters): Delete abfd arg.
128 Replace all symbol lookup code with calls to trace_sym_value.
129 (sim_prepare_for_program): Update sim_get_bank_parameters call.
130
6f64fd48
MF
1312016-08-13 Mike Frysinger <vapier@gentoo.org>
132
133 * dv-m68hc11.c (m68hc11cpu_port_event): Adjust cpu prototype style.
134 * dv-m68hc11spi.c (m68hc11spi_port_event): Likewise.
135 * dv-m68hc11tim.c (m68hc11tim_print_timer): Likewise.
136 * emulos.c (emul_bench): Likewise.
137 (emul_write): Likewise. Also rename state to cpu.
138 (emul_os): Rename proc to cpu.
139 * gencode.c: Rename proc to cpu.
140 * interrupts.c (interrupts_initialize): Likewise.
141 * interrupts.h (interrupts): Adjust cpu type.
142 (interrupts_initialize): Likewise.
143 * m68hc11_sim.c (cpu_get_reg): Adjust cpu prototype style.
144 (cpu_get_src_reg, cpu_set_dst_reg, cpu_set_reg,
145 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8,
146 cpu_get_indexed_operand16, cpu_dbcc, cpu_exg): Likewise.
147 (cpu_ccr_update_tst8): Rename proc to cpu.
148 * sim-main.h: Rename PROC and proc to cpu.
149
527aaa4a
MF
1502016-08-13 Mike Frysinger <vapier@gentoo.org>
151
152 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Drop cast with
153 return value of hw_malloc.
154 * dv-m68hc11sio.c (m68hc11sio_rx_poll): Mark static.
155 (m68hc11sio_tx_poll): Likewise.
156 * dv-m68hc11spi.c (m68hc11spi_clock): Likewise.
157 * dv-m68hc11tim.c (m68hc11tim_timer_event): Likewise.
158 * dv-nvram.c (attach_nvram_regs): Drop cast with
159 return value of hw_malloc.
160 * emulos.c (emul_bench): Mark static.
161 (emul_write): Likewise.
162 (emul_exit): Likewise.
163 * gencode.c: Include stdio.h.
164 (gen_function_entry): Unify two print lines.
165 (cmp_opcode): Mark args const.
166
ce39bd38
MF
1672016-01-10 Mike Frysinger <vapier@gentoo.org>
168
169 * config.in, configure: Regenerate.
170
35656e95
MF
1712016-01-10 Mike Frysinger <vapier@gentoo.org>
172
173 * configure: Regenerate.
174
16f7876d
MF
1752016-01-10 Mike Frysinger <vapier@gentoo.org>
176
177 * configure: Regenerate.
178
e19418e0
MF
1792016-01-10 Mike Frysinger <vapier@gentoo.org>
180
181 * configure: Regenerate.
182
99d8e879
MF
1832016-01-10 Mike Frysinger <vapier@gentoo.org>
184
185 * configure: Regenerate.
186
347fe5bb
MF
1872016-01-10 Mike Frysinger <vapier@gentoo.org>
188
189 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
190 * configure: Regenerate.
191
22be3fbe
MF
1922016-01-10 Mike Frysinger <vapier@gentoo.org>
193
194 * configure: Regenerate.
195
0dc73ef7
MF
1962016-01-10 Mike Frysinger <vapier@gentoo.org>
197
198 * configure: Regenerate.
199
936df756
MF
2002016-01-09 Mike Frysinger <vapier@gentoo.org>
201
202 * config.in, configure: Regenerate.
203
2e3d4f4d
MF
2042016-01-06 Mike Frysinger <vapier@gentoo.org>
205
206 * interp.c (sim_open): Mark argv const.
207 (sim_create_inferior): Mark argv and env const.
208
9bbf6f91
MF
2092016-01-04 Mike Frysinger <vapier@gentoo.org>
210
211 * configure: Regenerate.
212
77cf2ef5
MF
2132016-01-03 Mike Frysinger <vapier@gentoo.org>
214
215 * interp.c (sim_open): Update sim_parse_args comment.
216
61971b86
MF
2172016-01-03 Mike Frysinger <vapier@gentoo.org>
218
219 * sim-main.h (sim_state): Delete devices member.
220
0cb8d851
MF
2212016-01-03 Mike Frysinger <vapier@gentoo.org>
222
223 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
224 * configure: Regenerate.
225
1ac72f06
MF
2262016-01-02 Mike Frysinger <vapier@gentoo.org>
227
228 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
229 * configure: Regenerate.
230
8e26d677
MF
2312015-12-30 Mike Frysinger <vapier@gentoo.org>
232
233 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
234 * configure: Regenerate.
235
eca4255a
MF
2362015-12-30 Mike Frysinger <vapier@gentoo.org>
237
238 * imterp.c (sim_open): Delete current_alignment and
239 current_target_byte_order assignments.
240 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
241 * configure: Regenerate.
242
e1211e55
MF
2432015-12-30 Mike Frysinger <vapier@gentoo.org>
244
245 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
246 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
247 (sim_store_register): Rename to ...
248 (m68hc11_reg_store): ... this. Delete local cpu var.
249 (sim_fetch_register): Rename to ...
250 (m68hc11_reg_fetch): ... this. Delete local cpu var.
251
5e744ef8
MF
2522015-12-27 Mike Frysinger <vapier@gentoo.org>
253
254 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
255
1b393626
MF
2562015-12-26 Mike Frysinger <vapier@gentoo.org>
257
258 * config.in, configure: Regenerate.
259
26936211
MF
2602015-12-24 Mike Frysinger <vapier@gentoo.org>
261
262 * sim-main.h (SIM_HANDLES_LMA): Delete.
263
84e8e361
MF
2642015-12-24 Mike Frysinger <vapier@gentoo.org>
265
266 * sim-main.h (WITH_WATCHPOINTS): Delete.
267
cdf850e9
MF
2682015-11-17 Mike Frysinger <vapier@gentoo.org>
269
270 * sim-main.h (WITH_MODULO_MEMORY): Delete.
271
797eee42
MF
2722015-11-15 Mike Frysinger <vapier@gentoo.org>
273
274 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
275
d2dfd242
MF
2762015-11-14 Mike Frysinger <vapier@gentoo.org>
277
278 * Makefile.in (SIM_OBJS): Delete sim-load.o.
279
6e4f085c
MF
2802015-11-14 Mike Frysinger <vapier@gentoo.org>
281
282 * interp.c (sim_close): Delete.
283
8d0978fb
MF
2842015-06-23 Mike Frysinger <vapier@gentoo.org>
285
286 * configure: Regenerate.
287
a3487082
MF
2882015-06-12 Mike Frysinger <vapier@gentoo.org>
289
290 * configure: Regenerate.
291
306f4178
MF
2922015-06-12 Mike Frysinger <vapier@gentoo.org>
293
294 * configure: Regenerate.
295
09896bd2
MF
2962015-06-11 Mike Frysinger <vapier@gentoo.org>
297
298 * interp.c (interrupt_names): Delete.
299
a84f8df0
MF
3002015-06-11 Mike Frysinger <vapier@gentoo.org>
301
302 * Makefile.in (SIM_OBJS): Add sim-resume.o
303 * interp.c (has_stepped, sim_resume): Delete.
304
5d19c366
MF
3052015-06-11 Mike Frysinger <vapier@gentoo.org>
306
307 * interp.c (INLINE): Delete define.
308
0a13382c
NC
3092015-04-29 Nick Clifton <nickc@redhat.com>
310
311 PR 18273
312 * gencode.c (gen_fetch_operands): Remove unreachable code.
313
20bca71d
MF
3142015-04-18 Mike Frysinger <vapier@gentoo.org>
315
316 * sim-main.h (SIM_CPU): Delete.
317
7e83aa92
MF
3182015-04-18 Mike Frysinger <vapier@gentoo.org>
319
320 * sim-main.h (sim_cia): Delete.
321
034685f9
MF
3222015-04-17 Mike Frysinger <vapier@gentoo.org>
323
324 * sim-main.h (CIA_GET, CIA_SET): Delete.
325
78e9aa70
MF
3262015-04-15 Mike Frysinger <vapier@gentoo.org>
327
328 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
329 * sim-main.h (STATE_CPU): Delete.
330
bf12d44e
MF
3312015-04-13 Mike Frysinger <vapier@gentoo.org>
332
333 * configure: Regenerate.
334
bea3f671
MF
3352015-04-13 Mike Frysinger <vapier@gentoo.org>
336
337 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
338 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
339 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
340 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
341 (sim_pc_get): Delete.
342 * sim-main.h (SIM_CPU): Define.
343 (STATE_CPU): Drop &.
344 (struct sim_state): Change cpu to an array of pointers.
345
122bbfb5
MF
3462015-04-06 Mike Frysinger <vapier@gentoo.org>
347
348 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
349
2b6ca062
MF
3502015-03-31 Mike Frysinger <vapier@gentoo.org>
351
352 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
353 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
354 variable to restricted.
355 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
356
05f53ed6
MF
3572015-03-24 Mike Frysinger <vapier@gentoo.org>
358
359 * interp.c (sim_pc_get): New function.
360
523ba8f9
MF
3612015-03-24 Mike Frysinger <vapier@gentoo.org>
362
363 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
364 sim_size, sim_trace): Delete.
365 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
366
30452bbe
MF
3672015-03-24 Mike Frysinger <vapier@gentoo.org>
368
369 * configure: Regenerate.
370
64dd13df
MF
3712015-03-23 Mike Frysinger <vapier@gentoo.org>
372
373 * configure: Regenerate.
374
49cd1634
MF
3752015-03-23 Mike Frysinger <vapier@gentoo.org>
376
377 * configure: Regenerate.
378 * configure.ac (m68hc11_extra_objs): Delete.
379 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
380 (SIM_EXTRA_OBJS): Delete.
381
ae7d0cac
MF
3822015-03-16 Mike Frysinger <vapier@gentoo.org>
383
384 * config.in, configure: Regenerate.
385
465fb143
MF
3862015-03-14 Mike Frysinger <vapier@gentoo.org>
387
388 * Makefile.in (SIM_RUN_OBJS): Delete.
389
5cddc23a
MF
3902015-03-14 Mike Frysinger <vapier@gentoo.org>
391
392 * configure.ac (AC_CHECK_HEADERS): Delete.
393 * aclocal.m4, configure: Regenerate.
394
2974be62
AM
3952014-08-19 Alan Modra <amodra@gmail.com>
396
397 * configure: Regenerate.
398
faa743bb
RM
3992014-08-15 Roland McGrath <mcgrathr@google.com>
400
401 * configure: Regenerate.
402 * config.in: Regenerate.
403
1a8a700e
MF
4042014-03-04 Mike Frysinger <vapier@gentoo.org>
405
406 * configure: Regenerate.
407
bf3d9781
AM
4082013-09-23 Alan Modra <amodra@gmail.com>
409
410 * configure: Regenerate.
411
31e6ad7d
MF
4122013-06-03 Mike Frysinger <vapier@gentoo.org>
413
414 * aclocal.m4, configure: Regenerate.
415
d3685d60
TT
4162013-05-10 Freddie Chopin <freddie_chopin@op.pl>
417
418 * configure: Rebuild.
419
1517bd27
MF
4202013-03-26 Mike Frysinger <vapier@gentoo.org>
421
422 * configure: Regenerate.
423
256139f5
JS
4242013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
425
426 * configure.ac: Use $SIM_DV_SOCKSER_O.
427 * configure: Regenerated.
428
5f3ef9d0
JB
4292012-06-15 Joel Brobecker <brobecker@adacore.com>
430
431 * config.in, configure: Regenerate.
432
2232061b
MF
4332012-03-24 Mike Frysinger <vapier@gentoo.org>
434
435 * aclocal.m4, config.in, configure: Regenerate.
436
db2e4d67
MF
4372011-12-03 Mike Frysinger <vapier@gentoo.org>
438
439 * aclocal.m4: New file.
440 * configure: Regenerate.
441
4399a56b
MF
4422011-10-19 Mike Frysinger <vapier@gentoo.org>
443
444 * configure: Regenerate after common/acinclude.m4 update.
445
9c082ca8
MF
4462011-10-17 Mike Frysinger <vapier@gentoo.org>
447
448 * configure.ac: Change include to common/acinclude.m4.
449
6ffe910a
MF
4502011-10-17 Mike Frysinger <vapier@gentoo.org>
451
452 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
453 call. Replace common.m4 include with SIM_AC_COMMON.
454 * configure: Regenerate.
455
2419798b
MF
4562011-07-05 Mike Frysinger <vapier@gentoo.org>
457
458 * interp.c (sim_do_command): Delete.
459
3725885a
RW
4602010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
461
462 * configure: Regenerate.
463
d6416cdc
RW
4642009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
465
81ecdfbb
RW
466 * config.in: Regenerate.
467 * configure: Likewise.
468
d6416cdc
RW
469 * configure: Regenerate.
470
b5bd9624
HPN
4712008-07-11 Hans-Peter Nilsson <hp@axis.com>
472
473 * configure: Regenerate to track ../common/common.m4 changes.
474 * config.in: Ditto.
475
6efef468 4762008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
477 Daniel Jacobowitz <dan@codesourcery.com>
478 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
479
480 * configure: Regenerate.
481
b1bfc053
HPN
4822006-12-21 Hans-Peter Nilsson <hp@axis.com>
483
484 * config.in: Regenerate.
485
e85e3205
RE
4862006-06-13 Richard Earnshaw <rearnsha@arm.com>
487
488 * configure: Regenerated.
489
2f0122dc
DJ
4902006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
491
492 * configure: Regenerated.
493
20e95c23
DJ
4942006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
495
496 * configure: Regenerated.
497
b3a3ffef
HPN
4982006-03-29 Hans-Peter Nilsson <hp@axis.com>
499
500 * configure: Regenerate.
501
2b193c4a
MK
5022005-03-23 Mark Kettenis <kettenis@gnu.org>
503
504 * configure: Regenerate.
505
35695fd6
AC
5062005-01-14 Andrew Cagney <cagney@gnu.org>
507
508 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
509 explicit call to AC_CONFIG_HEADER.
510 * configure: Regenerate.
511
38f48d72
AC
5122005-01-11 Andrew Cagney <cagney@localhost.localdomain>
513
514 * configure: Regenerated to track ../common/aclocal.m4 changes.
515
b7026657
AC
5162005-01-07 Andrew Cagney <cagney@gnu.org>
517
518 * configure.ac: Rename configure.in, require autoconf 2.59.
519 * configure: Re-generate.
520
379832de
HPN
5212004-12-08 Hans-Peter Nilsson <hp@axis.com>
522
523 * configure: Regenerate for ../common/aclocal.m4 update.
524
84b11e2e
AM
5252004-06-15 Alan Modra <amodra@bigpond.net.au>
526
527 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
528 instead of bfd_get_section_size_before_reloc.
529
a685700c
SC
5302003-08-08 Stephane Carrez <stcarrez@nerim.fr>
531
532 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
533 control the translation.
534 (m68hc11tim_print_timer): Update cycle_to_string conversion.
535 (m68hc11tim_timer_event): Fix handling of output
536 compare register with its interrupts.
537 (m68hc11tim_io_write_buffer): Check output compare
538 after setting M6811_TMSK1.
539 (m68hc11tim_io_read_buffer): Fix compilation warning.
540 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
541 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
542 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
543 * interrupts.c (interrupts_info): Likewise.
544 (interrupts_reset): Recognize bootstrap mode.
545 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
546 (_sim_cpu): Add cpu_start_mode.
547 (cycle_to_string): Add flags member.
548 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
549 (cpu_options): Declare new option bootstrap.
550 (cpu_option_handler): Handle it.
551 (cpu_info): Update call to cycle_to_string.
552
77342e5e
SC
5532003-08-08 Stephane Carrez <stcarrez@nerim.fr>
554
555 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
556 the physical address in virtual address.
557 (struct _sim_cpu): Add memory bank members.
558 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
559 * interp.c (sim_hw_configure): Create memory bank according to memory
560 bank parameters.
561 (sim_get_bank_parameters): New function to obtain memory bank config
562 from the symbol table.
563 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
564 (sim_open): Call sim_prepare_for_program.
565 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
566 to check if address is within bank window.
567 (m68hc11cpu_io_read_buffer): Likewise.
568 (attach_m68hc11_regs): Map the memory bank according to memory bank
569 parameters.
570
53b3cd22
SC
5712003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
572
573 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
574
962e9d85
SC
5752003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
576 Gary Piercey <gpiercey@northstar-technical.com>
577
578 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
579 * sim-main.h (print_io_word): Declare.
580 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
581 (tflg1_desc): Likewise for TFLG1.
582 (m68hc11tim_info): Print input and output compare registers
583
9b9f7b3c
SC
5842003-03-02 Stephane Carrez <stcarrez@nerim.fr>
585
586 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
587 to 32 to support memory bank switching; temporarily use 32-bit for
588 WORD_BITSIZE to avoid a bug in sim-common.
589
00416c6e
SC
5902003-03-01 Stephane Carrez <stcarrez@nerim.fr>
591
592 * interp.c (sim_fetch_register): Only store a single byte for
593 1 byte registers.
594
6b4a8935
AC
5952003-02-27 Andrew Cagney <cagney@redhat.com>
596
597 * interp.c (sim_prepare_for_program, sim_open)
598 (sim_create_inferior): Rename _bfd to bfd.
599
099d1b50
SC
6002002-08-13 Stephane Carrez <stcarrez@nerim.fr>
601
602 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
603
31c7c532
SC
6042002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
605
72f4393d 606 * interp.c (sim_prepare_for_program): Look up the image for the
31c7c532
SC
607 reset vector and set cpu_use_elf_start to 1 if not found.
608 (sim_open): Do not set cpu_use_elf_start.
609
39762100
SC
6102002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
611
612 * interp.c (sim_hw_configure): Return 1 for success.
613 (sim_prepare_for_program): Use the sim_hw_configure exit code to
614 return SIM_RC_FAIL.
615
7230d809
SC
6162002-08-13 Stephane Carrez <stcarrez@nerim.fr>
617
618 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
619 bank window to some virtual address to read from extended memory.
620 (m68hc11cpu_io_write_buffer): Likewise for writing.
ca156d78 621 (attach_m68hc11_regs): When use_bank property is defined, attach
7230d809 622 to the 68HC12 16K memory bank window.
7230d809
SC
623 * interp.c (sim_hw_configure): Create memory region for banked
624 memory.
625
dcceded2
SC
6262002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
627
628 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
629 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
630 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
631
abea9e28
SC
6322002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
633
634 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
635 when IO mapping changed, not when internal RAM mapping is changed.
636
63f36def
SC
6372002-08-13 Stephane Carrez <stcarrez@nerim.fr>
638
639 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
640 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
641 (m6811_regs): Add page register.
642 (cpu_set_page, cpu_get_page): New macros.
643 (phys_to_virt): New function.
644 (cpu_get_indexed_operand_addr, cpu_return): Declare.
645 * gencode.c: Identify indirect addressing mode for call and fix daa.
72f4393d 646 (gen_function_entry): New param to tell if src8/dst8 locals are
63f36def
SC
647 necessary.
648 (gen_interpreter): Use it to avoid generation of unused variables.
649 * interp.c (sim_fetch_register): Allow to read page register; page
650 register, A, B and CCR are only 1 byte wide.
651 (sim_store_register): Likewise for writing.
652
c8cca39f
AC
6532002-06-16 Andrew Cagney <ac131313@redhat.com>
654
655 * configure: Regenerated to track ../common/aclocal.m4 changes.
656
3c25f8c7
AC
6572002-06-09 Andrew Cagney <cagney@redhat.com>
658
659 * Makefile.in (INCLUDE): Update path to callback.h.
660 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
661
86596dc8
SC
6622002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
663
664 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
665 (cpu_move16): Likewise.
666 (sim_memory_error): Use sim_io_printf.
667 (cpu_option_handler): Fix compilation warning.
72f4393d 668 * interp.c (sim_hw_configure): Fix compilation warning;
86596dc8
SC
669 remove m68hc12sio@2 device.
670 (sim_open): Likewise.
72f4393d 671 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
86596dc8
SC
672 flags when reset.
673 (cycle_to_string): Improve convertion of cpu cycle number.
674 (m68hc11tim_info): Print info about PACNT.
675 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
676 TCTL1 and TCTL2 registers.
677 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
678
827ec39a
SC
6792002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
680
72f4393d 681 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
827ec39a
SC
682 cpu struct.
683 (sim_hw_configure): Connect the capture input/output events.
684 * sim-main.h (_sim_cpu): New member hw_cpu.
685 (m68hc11cpu_set_oscillator): Declare.
686 (m68hc11cpu_clear_oscillator): Declare.
687 (m68hc11cpu_set_port): Declare.
688 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
689 (m68hc11cpu_ports): New input ports and output ports to reflect
690 the HC11 IOs.
691 (m68hc11_delete): Cleanup any running oscillator.
692 (attach_m68hc11_regs): Create the input oscillators.
693 (make_oscillator): New function.
694 (find_oscillator): New function.
695 (oscillator_handler): New function.
696 (reset_oscillators): New function.
697 (m68hc11cpu_port_event): Handle the new input ports.
698 (m68hc11cpu_set_oscillator): New function.
699 (m68hc11cpu_clear_oscillator): New function.
700 (get_frequency): New function.
701 (m68hc11_option_handler): New function.
702 (m68hc11cpu_set_port): New function.
703 (m68hc11cpu_io_write): Post the port output events.
704 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
705 the output port value.
706 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
707 by latching the TCNT value in the register.
708
5abb9efa
SC
7092002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
710
711 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
712 (cpu_frame_reg, cpu_print_frame): Remove.
713 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
714 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
715 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
716 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
717 * m68hc11_sim.c (cpu_find_frame): Remove.
718 (cpu_create_frame_list): Remove.
719 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
720 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
721 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
722 (cpu_update_frame): Likewise.
723 (cpu_return): Likewise.
724 (cpu_reset): Likewise.
72f4393d 725 (cpu_initialize): Likewise.
5abb9efa
SC
726 * interp.c (sim_do_command): Remove call to cpu_print_frame.
727
26128965
SC
7282002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
729
730 * interrupts.c (interrupts_reset): New function, setup interrupt
731 vector address according to cpu mode.
732 (interrupts_initialize): Move reset portion to the above.
733 (interrupt_names): New table to give a name to interrupts.
734 (idefs): Handle pulse accumulator interrupts.
735 (interrupts_info): Print the interrupt history.
736 (interrupt_option_handler): New function.
737 (interrupt_options): New table of options.
738 (interrupts_update_pending): Keep track of when interrupts are
739 raised and implement breakpoint-on-raise-interrupt.
740 (interrupts_process): Keep track of when interrupts are taken
741 and implement breakpoint-on-interrupt.
742 * interrupts.h (struct interrupt_history): Define.
743 (struct interrupt): Keep track of the interrupt history.
744 (interrupts_reset): Declare.
745 (interrupts_initialize): Update prototype.
746 * m68hc11_sim.c (cpu_reset): Reset interrupts.
747 (cpu_initialize): Cleanup.
748
eefde351
SC
7492001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
750
751 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
752 address.
753 (m68hc11eepr_port_event): Fix detach/attach logic.
754
00d0c012
SC
7552001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
756
757 * Makefile.in (SIM_OBJS): Remove sim-resume.o
758 * interp.c (sim_resume): New function from sim-resume.c, install
759 the stepping event after having processed the pending ticks.
760 (has_stepped): Likewise.
761 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
762
b51c7603
AC
7632001-07-10 Andrew Cagney <ac131313@redhat.com>
764
765 * Makefile.in (gencode): Provide explicit path to gencode.c.
766
81e09ed8
SC
7672001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
768
769 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
770 (m68hc12int.c): Generate using gencode -m6812.
771 (m68hc11int.c): Likewise with -m6811.
772
773 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
774 (m6811_page1_opcodes): Remove duplicate entries.
775 (m6811_page2_opcodes): Likewise.
776 (m6811_page3_opcodes): Likewise.
777 (m6811_page4_opcodes): Likewise.
778 (m6812_page1_opcodes): New table for 68HC12 instructions.
779 (m6812_page2_opcodes): Likewise.
780 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
781 (gen_save_result): Likewise.
782 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
783 (cmp_opcode): New function for opcode comparision.
784 (prepare_table): Sort the opcodes.
785 (gen_interpreter): Prepare all the tables and generate either
786 a 68HC11 or a 68HC12 simulator.
787 (main): New options -m6811 and -m6812.
788
789 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
790 (cpu_special): Simulation of some 68HC12 instructions.
791 (cpu_exg): New function.
792 (cpu_dbcc): Likewise.
793 (cpu_fetch_relbranch16): Likewise.
794 (cpu_push_all): Push according to 68HC11 or 68HC12.
795 (cpu_move16): Likewise.
796 (cpu_move8): Likewise.
797 (cpu_get_indexed_operand16): Likewise.
798 (cpu_get_indexed_operand8): Likewise.
799 (cpu_get_indexed_operand_addr): Likewise.
800 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
801 (cpu_reset): Setup INIT register according to architecture.
72f4393d 802
81e09ed8
SC
803 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
804 (_sim_cpu): Keep track of the cpu being simulated.
805 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
806 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
807 (cpu_m68hc11_pop_uint8): Likewise.
808 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
809 (cpu_m68hc12_pop_uintxx): Likewise.
810 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
811 (cpu_fetch_relbranch16): Likewise.
812 (cpu_interp_m6811): Rename of cpu_interp.
72f4393d 813 (cpu_interp_m6812): New function.
81e09ed8
SC
814 * interp.c (free_state): New function.
815 (dev_list_68hc12): New table.
816 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
817 (sim_hw_configure): New function.
818 (sim_prepare_for_program): New function.
819 (sim_open): Use above new functions.
820 (sim_close): Call free_state().
821 (sim_info): Print info according to cpu.
822 (sim_create_inferior): Use sim_prepare_for_program.
823 (sim_do_command): Configure the hardware after a change of the
824 architecture.
825
11115521
SC
8262001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
827
828 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
829 pending interrupts.
830 * interrupts.c (interrupts_process): Keep track of the last number
831 of masked insn cycles.
832 (interrupts_initialize): Clear last number of masked insn cycles.
833 (interrupts_info): Report them.
72f4393d
L
834 (interrupts_update_pending): Compute clear and set masks of
835 interrupts and clear the interrupt bits before setting them
11115521
SC
836 (due to SCI interrupt sharing).
837 * interrupts.h (struct interrupts): New members last_mask_cycles
838 and xirq_last_mask_cycles.
839
b93775f5
SC
8402000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
841
842 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
843 instead of a hard-coded value.
844 (m68hc11cpu_io_write_buffer): Likewise.
845 (dv_m68hc11_descriptor): Define a 68hc12 device.
846 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
847 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
848 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
849 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
850
639aa4f7
SC
8512000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
852
853 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
854 (m68hc11cpu_delete): Delete handler to detach the address space.
855
6e73e7ed
SC
8562000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
857
858 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
859 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
860 instead of free and malloc.
861
5f186447
SC
8622000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
863
864 * Makefile.in: Was missing from initial patch.
865
9830501b
SC
8662000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
867
868 * interp.c (sim_store_register): Remove soft register hack.
869 (sim_fetch_register): Likewise.
870 (sim_create_inferior): Likewise.
871 * sim-main.h: Likewise.
872
a8afa79a
SC
8732000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
874
875 * interrupts.c (interrupts_update_pending): Clear the mask of
876 pending interrupts here.
877 (interrupts_get_current): Don't clear the mask of pending interrupts.
878
2990a9f4
SC
8792000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
880
881 * sim-main.h: Define cycle_to_string.
72f4393d 882 * dv-m68hc11tim.c (cycle_to_string): New function to translate
2990a9f4
SC
883 the cpu cycle into some formatted time string.
884 (m68hc11tim_print_timer): Use it.
885 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
886 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
887 * interrupts.c (interrupts_info): Likewise.
888 * m68hc11_sim.c (cpu_info): Likewise.
889
401493c8
SC
8902000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
891
892 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
893 interrupt and compare events accurately. Take into account the
894 pending ticks not processed by the simulator yet (introduced a shift).
895 (m68hc11_port_event): Reset the timer interrupt delays.
896 (m68hc11tim_io_read_buffer): Be able to read several bytes.
897 (m68hc11tim_io_write_buffer): Likewise for write.
898 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
899
4d72d17a
SC
9002000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
901
902 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
903 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
904 (m68hc11spi_info): Clarify the status report
905 of the SPI when a byte is being sent.
906 (m68hc11spi_clock): Fix the spi send frame.
72f4393d 907
63348d04
SC
9082000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
909
910 * sim-main.h (m68hc11_map_level): Define level of address mappings.
911 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
912 whether the eeprom is currently mapped or not.
913 (m68hc11eepr_port_event): Use the flag to see if we must unmap
914 or map the eeprom. Update the flag to reflect the current state.
915 Use M6811_EEPROM_LEVEL when mapping the eeprom.
916 (m68hc11eepr_finish): Remove overlap hack.
917 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
918 config and control registers.
919 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
920 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
921 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
922 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
923 (attach_m68hc11spi_regs): Likewise.
924 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
925 (attach_m68hc11tim_regs): Likewise.
926 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
927 (attach_m68hc11sio_regs): Likewise.
928 * interp.c (sim_open): Likewise.
929 * dv-nvram.c (attach_nvram_regs): Likewise.
930
5d031c16
AC
931Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
932
933 * configure, config.in: Regenerate.
934
e0709f50
AC
9352000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
936
937 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
938 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
939 (dv_m6811_detach_address_callback): New function to detach a
940 device from an address space.
941 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
942 config register according to --cpu-config option.
943 * sim-main.h (_sim_cpu): Add cpu_config member.
944 * interp.c (sim_open): Delete specific simulator options.
945 * m68hc11_sim.c (cpu_option_handler): New options
946 --emulos and -cpu-config <val> to configure the simulator.
947 (cpu_initialize): Initialize cpu_config member.
948
9492000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
950
951 * emulos.c: Fix indentation and comments.
952 * gencode.c: Likewise.
953 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
954 (m68hc11tim_io_write_buffer): Write compare registers and
955 setup compare event.
956 * interp.c: Remove unused global variables.
957 * interrupts.c (idefs): New compare interrupts.
958 Fix indentation and comments.
959 * interrupts.h: Likewise.
960
9612000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
962
963 * dv-m68hc11sio.c: Fix indentation and comments.
964 Remove INT_PORT.
965 * dv-m68hc11.c: Fix indentation and comments.
966 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
967 * m68hc11_sim.c (cpu_reset): To here.
968 * dv-m68hc11eepr.c: Fix indentation and comments.
72f4393d 969
e0709f50
AC
9702000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
971
972 * dv-nvram.c: New file, rename from dv-pram.c.
973 * dv-pram.c: Delete file.
974 * sim-main.h: Incorporate m68hc11_sim.h.
975 * m68hc11_sim.h: Delete file.
976 * configure.in: Rename pram into nvram.
977 * interp.c (sim_open): Likewise in creation of device tree.
72f4393d 978
e0709f50
AC
9792000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
980
981 * interp.c (sim_open): Create the SPI device.
982 * dv-m68hc11spi.c: New file for SPI device simulation.
983 * configure.in (hw_extra_devices): Add SPI device.
984
9852000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
986
987 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
988 (interrupts_process): Separate IRQ and XIRQ accounting.
989 (interrupts_info): Report XIRQ accounting.
990 * interrupts.h (struct interrupts): Added accounting for XIRQ.
991
9922000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
993
994 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
995 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
72f4393d 996 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
e0709f50
AC
997 configuration from the 'mode' device tree property.
998 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
999 configuration.
1000
10012000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
1002
1003 * sim-main.h: Remove WITH_TARGET_* defines.
1004 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
1005
10062000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
1007
1008 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
1009 1200 baud when cpu is in bootstrap mode.
1010
1011 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
1012 write in the TCTN timer register.
1013
1014 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
1015 by 4 to obtain the E clock frequency.
1016 (sccr2_desc): Use M6811_TIE for TIE bit.
1017 (m68hc11sio_info): Fix baud rate report.
1018
1019 * dv-m68hc11tim.c (to_realtime): Likewise.
1020
1021 * interp.c (sim_open): When building device tree, only provide
1022 devices that do not exist yet.
1023
1024 * emulos.c: Fix compilation pb under Windows.
1025
1026 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
1027 from the 'clock' property.
1028
10292000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
1030
1031 * m68hc11_sim.h (*_REGNUM): Define.
1032 (_sim_cpu): New member cpu_page0_reg table.
1033 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
1034 addresses of soft registers in .page0.
72f4393d 1035 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
e0709f50
AC
1036 to get/set soft registers.
1037
10381999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
1039
1040 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
1041 returning random values.
1042
10431999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
1044
1045 * gencode.c: Fix "subb N,x" that used a instead of b.
1046
10471999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
1048
1049 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
1050
10511999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
1052
1053 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
1054
10551999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
1056
1057 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
1058 register region in the m68hc11cpu struct.
1059 (m68hc11cpu_io_write): When the IO mapping addres changes,
1060 detach the register region and re-attach it at the new address.
1061 (m68hc11cpu_io_read_buffer): Renamed base_address into
1062 attach_address.
1063 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
1064 to m68hc11cpu_io_write.
1065
10661999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
1067
1068 * gencode.c: For sbc8, check the carry and increment the source
1069 before trying to set the carry for the result.
1070
10711999-05-24 John S. Kallal <kallal@voicenet.com>
72f4393d 1072
e0709f50
AC
1073 * interp.c (sim_get_info): Don't crash if the command line is 0.
1074 Define prototype for sim_get_info() and init_system().
1075 (sim_info): Correct call to sim_get_info().
72f4393d 1076
e0709f50
AC
10771999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
1078
1079 * configure.in: Recognize m6811-*-*.
1080 * configure: Regenerate.
1081 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
1082 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
1083 Correct the computation of carry of 8 and 16-bits add and subtract.
1084 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
1085 overflow set in a different manner than add).
1086
10871999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
1088
1089 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
1090 trace message.
1091 * interp.c (sim_open, sim_create_inferior): Initialize the
1092 cpu_elf_start from the ELF header.
1093 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
1094 (cpu_restart): Use cpu_elf_start as the starting address when
1095 the flag is set.
1096 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
1097 exits the simulator (exit status is in D).
1098 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
1099 cpu_elf_star to start execution at address specified in ELF file.
1100
11011999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
1102
1103 * Makefile.in, config.in, configure, configure.in: New files.
1104 * gencode.c: New file, generation of 68HC11 interpreter.
1105 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
1106 for interpreter.
1107 * interrupts.c, interrupts.h: New files, management of interrupts.
72f4393d 1108 * interp.c, sim-main.h,
e0709f50
AC
1109 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
1110 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
1111 68HC11 (dv-pram.c is generic and could probably migrate to common).
1112 * emulos.c: New file, basic emulation of some os.