]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
sim: unify -Werror build settings
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
47ce766a
MF
12021-06-18 Mike Frysinger <vapier@gentoo.org>
2
3 * aclocal.m4, configure: Regenerate.
4
982c3a65
MF
52021-06-18 Mike Frysinger <vapier@gentoo.org>
6
7 * configure: Regenerate.
8
1fef66b0
MF
92021-06-18 Mike Frysinger <vapier@gentoo.org>
10
11 * dv-m68hc11eepr.c: Include sim-signal.h.
12 * interrupts.c, m68hc11_sim.c: Likewise.
13 * sim-main.h: Delete sim-signal.h include.
14
f9a4d543
MF
152021-06-17 Mike Frysinger <vapier@gentoo.org>
16
17 * configure.ac: Delete SIM_AC_OPTION_ENDIAN call.
18 * interp.c (sim_open): Set current_target_byte_order.
19 * aclocal.m4, configure: Regenerate.
20
ef5058ae
MF
212021-06-17 Mike Frysinger <vapier@gentoo.org>
22
23 * sim-main.h: Delete sim/callback.h include.
24
a8a3d907
MF
252021-06-16 Mike Frysinger <vapier@gentoo.org>
26
27 * configure: Regenerate.
28
52d37d2c
MF
292021-06-16 Mike Frysinger <vapier@gentoo.org>
30
31 * configure: Regenerate.
32 * config.in: Removed.
33
bcaa61f7
MF
342021-06-15 Mike Frysinger <vapier@gentoo.org>
35
36 * config.in, configure: Regenerate.
37
ba307cdd
MF
382021-06-12 Mike Frysinger <vapier@gentoo.org>
39
40 * configure.ac: Delete call to SIM_AC_OPTION_ALIGNMENT.
41
dba333c1
MF
422021-06-12 Mike Frysinger <vapier@gentoo.org>
43
44 * aclocal.m4, config.in, configure: Regenerate.
45
b15c5d7a
MF
462021-06-12 Mike Frysinger <vapier@gentoo.org>
47
48 * config.in, configure: Regenerate.
49
f4fdd845
MF
502021-05-17 Mike Frysinger <vapier@gentoo.org>
51
52 * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Delete.
53
383861bd
MF
542021-05-17 Mike Frysinger <vapier@gentoo.org>
55
56 * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Define.
57 (struct sim_state): Delete.
58
6df01ab8
MF
592021-05-16 Mike Frysinger <vapier@gentoo.org>
60
61 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c, dv-m68hc11spi.c,
62 dv-m68hc11tim.c, dv-nvram.c, emulos.c, gencode.c, interp.c,
63 interrupts.c, m68hc11_sim.c: Include defs.h.
64
79633c12
MF
652021-05-16 Mike Frysinger <vapier@gentoo.org>
66
67 * config.in, configure: Regenerate.
68
df68e12b
MF
692021-05-14 Mike Frysinger <vapier@gentoo.org>
70
71 * sim-main.h: Update include path.
72
8a16cc4b
MF
732021-05-07 Mike Frysinger <vapier@gentoo.org>
74
75 * dv-m68hc11tim.c (cycle_to_string): Increase buf to 128 bytes.
76 Merge two sprintf buf calls.
77
8e78e9b9
MF
782021-05-06 Mike Frysinger <vapier@gentoo.org>
79
80 * interp.c (sim_hw_configure): Change %lx to %x in format strings.
81 * configure.ac: Delete SIM_AC_OPTION_WARNINGS call.
82 * configure: Regenerate.
83
8852d028
MF
842021-05-06 Mike Frysinger <vapier@gentoo.org>
85
86 * emulos.c: Include errno.h & stdio.h.
87 (emul_write): Print a warning when the write fails.
88
bf06b2a2
MF
892021-05-04 Mike Frysinger <vapier@gentoo.org>
90
91 * dv-m68hc11.c (struct m68hc11cpu): Change attach_size to unsigned int.
92 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Cast buffer to const char*.
93
aa0fca16
MF
942021-05-04 Mike Frysinger <vapier@gentoo.org>
95
96 * configure: Regenerate.
97
fe348617
MF
982021-05-01 Mike Frysinger <vapier@gentoo.org>
99
100 * config.in, configure: Regenerate.
101
9d903352
MF
1022021-04-23 Mike Frysinger <vapier@gentoo.org>
103
104 * configure.ac (SIM_AC_OPTION_HARDWARE): Delete first two args.
105 * configure: Regenerate.
106
19f6a43c
TT
1072021-04-22 Tom Tromey <tom@tromey.com>
108
109 * configure, config.in: Rebuild.
110
d6581fcd
TT
1112021-04-22 Tom Tromey <tom@tromey.com>
112
113 * Makefile.in (INCLUDE): Remove.
114
e7d8f1da
TT
1152021-04-22 Tom Tromey <tom@tromey.com>
116
117 * Makefile.in (interp.o): Remove.
118
efd82ac7
TT
1192021-04-22 Tom Tromey <tom@tromey.com>
120
121 * configure: Rebuild.
122
2662c237
MF
1232021-04-21 Mike Frysinger <vapier@gentoo.org>
124
125 * aclocal.m4: Regenerate.
126
1f195bc3
SM
1272021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
128
129 * configure: Regenerate.
130
37e9f182
MF
1312021-04-18 Mike Frysinger <vapier@gentoo.org>
132
133 * configure: Regenerate.
134
d5a71b11
MF
1352021-04-12 Mike Frysinger <vapier@gentoo.org>
136
137 * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
138
c2783492
MF
1392021-04-02 Mike Frysinger <vapier@gentoo.org>
140
141 * aclocal.m4, configure: Regenerate.
142
c6c7769d
MF
1432021-03-13 Mike Frysinger <vapier@gentoo.org>
144
145 * Makefile.in (gencode.o): New rule.
146 (gencode): Call LINK_FOR_BUILD.
147
ebe9564b
MF
1482021-02-28 Mike Frysinger <vapier@gentoo.org>
149
150 * configure: Regenerate.
151
760b3e8b
MF
1522021-02-21 Mike Frysinger <vapier@gentoo.org>
153
154 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
155 * aclocal.m4, configure: Regenerate.
156
136da8cd
MF
1572021-02-13 Mike Frysinger <vapier@gentoo.org>
158
159 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
160 * aclocal.m4, configure: Regenerate.
161
aa09469f
MF
1622021-02-06 Mike Frysinger <vapier@gentoo.org>
163
164 * configure: Regenerate.
165
683b8d96
MF
1662021-01-30 Mike Frysinger <vapier@gentoo.org>
167
168 * dv-m68hc11tim.c (cycle_to_string): Change llu to PRIi64.
169
b9e016f5
MF
1702021-01-30 Mike Frysinger <vapier@gentoo.org>
171
172 * m68hc11_sim.c (cpu_set_sp): Add static markings.
173 (cpu_get_reg, cpu_get_src_reg, cpu_set_dst_reg,
174 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8): Likewise.
175
fb8d4e59
MF
1762021-01-30 Mike Frysinger <vapier@gentoo.org>
177
178 * interp.c (sim_get_info, sim_board_reset): Pass %s to sim_hw_parse.
179
ee64caae
MF
1802021-01-30 Mike Frysinger <vapier@gentoo.org>
181
182 * dv-m68hc11.c, m68hc11_sim.c: Include stdlib.h.
183
88f68ee2
MF
1842021-01-30 Mike Frysinger <vapier@gentoo.org>
185
186 * configure.ac (SIM_AC_OPTION_HARDWARE): Inline variables.
187 * configure: Regenerate.
188
68ed2854
MF
1892021-01-11 Mike Frysinger <vapier@gentoo.org>
190
191 * config.in, configure: Regenerate.
192
50df264d
MF
1932021-01-09 Mike Frysinger <vapier@gentoo.org>
194
195 * configure: Regenerate.
196
bf470982
MF
1972021-01-09 Mike Frysinger <vapier@gentoo.org>
198
199 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
200 * configure: Regenerate.
201
46f900c0
MF
2022021-01-08 Mike Frysinger <vapier@gentoo.org>
203
204 * configure: Regenerate.
205
dfb856ba
MF
2062021-01-04 Mike Frysinger <vapier@gentoo.org>
207
208 * configure: Regenerate.
209
5c887dd5
JB
2102017-09-06 John Baldwin <jhb@FreeBSD.org>
211
212 * configure: Regenerate.
213
13a590ca
MF
2142017-02-13 Mike Frysinger <vapier@gentoo.org>
215
216 * gencode.c: Include libiberty.h.
217 (TABLE_SIZE): Delete.
218 (find_opcode_pattern): Change TABLE_SIZE to ARRAY_SIZE.
219 (gen_interpreter): Likewise.
220 * interrupts.c (TableSize): Delete.
221 (interrupts_update_pending): Change TableSize to ARRAY_SIZE.
222
fa0843f5
MF
2232016-08-16 Mike Frysinger <vapier@gentoo.org>
224
225 * sim-main.h (inline): Delete define.
226 (phys_to_virt): Change inline to STATIC_INLINE.
227 (memory_read8, memory_write8, memory_read16, memory_write16,
228 cpu_ccr_update_tst16, cpu_ccr_update_shift8, cpu_ccr_update_shift16,
229 cpu_ccr_update_add8, cpu_ccr_update_sub8, cpu_ccr_update_add16,
230 cpu_ccr_update_sub16, cpu_m68hc11_push_uint8, cpu_m68hc11_push_uint16,
231 cpu_m68hc11_pop_uint8, cpu_m68hc11_pop_uint16, cpu_m68hc12_push_uint8,
232 cpu_m68hc12_push_uint16, cpu_m68hc12_pop_uint8,
233 cpu_m68hc12_pop_uint16, cpu_fetch8, cpu_fetch16): Likewise.
234
5357150c
MF
2352016-08-15 Mike Frysinger <vapier@gentoo.org>
236
237 * interp.c (sim_get_bank_parameters): Delete abfd arg.
238 Replace all symbol lookup code with calls to trace_sym_value.
239 (sim_prepare_for_program): Update sim_get_bank_parameters call.
240
6f64fd48
MF
2412016-08-13 Mike Frysinger <vapier@gentoo.org>
242
243 * dv-m68hc11.c (m68hc11cpu_port_event): Adjust cpu prototype style.
244 * dv-m68hc11spi.c (m68hc11spi_port_event): Likewise.
245 * dv-m68hc11tim.c (m68hc11tim_print_timer): Likewise.
246 * emulos.c (emul_bench): Likewise.
247 (emul_write): Likewise. Also rename state to cpu.
248 (emul_os): Rename proc to cpu.
249 * gencode.c: Rename proc to cpu.
250 * interrupts.c (interrupts_initialize): Likewise.
251 * interrupts.h (interrupts): Adjust cpu type.
252 (interrupts_initialize): Likewise.
253 * m68hc11_sim.c (cpu_get_reg): Adjust cpu prototype style.
254 (cpu_get_src_reg, cpu_set_dst_reg, cpu_set_reg,
255 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8,
256 cpu_get_indexed_operand16, cpu_dbcc, cpu_exg): Likewise.
257 (cpu_ccr_update_tst8): Rename proc to cpu.
258 * sim-main.h: Rename PROC and proc to cpu.
259
527aaa4a
MF
2602016-08-13 Mike Frysinger <vapier@gentoo.org>
261
262 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Drop cast with
263 return value of hw_malloc.
264 * dv-m68hc11sio.c (m68hc11sio_rx_poll): Mark static.
265 (m68hc11sio_tx_poll): Likewise.
266 * dv-m68hc11spi.c (m68hc11spi_clock): Likewise.
267 * dv-m68hc11tim.c (m68hc11tim_timer_event): Likewise.
268 * dv-nvram.c (attach_nvram_regs): Drop cast with
269 return value of hw_malloc.
270 * emulos.c (emul_bench): Mark static.
271 (emul_write): Likewise.
272 (emul_exit): Likewise.
273 * gencode.c: Include stdio.h.
274 (gen_function_entry): Unify two print lines.
275 (cmp_opcode): Mark args const.
276
ce39bd38
MF
2772016-01-10 Mike Frysinger <vapier@gentoo.org>
278
279 * config.in, configure: Regenerate.
280
35656e95
MF
2812016-01-10 Mike Frysinger <vapier@gentoo.org>
282
283 * configure: Regenerate.
284
16f7876d
MF
2852016-01-10 Mike Frysinger <vapier@gentoo.org>
286
287 * configure: Regenerate.
288
e19418e0
MF
2892016-01-10 Mike Frysinger <vapier@gentoo.org>
290
291 * configure: Regenerate.
292
99d8e879
MF
2932016-01-10 Mike Frysinger <vapier@gentoo.org>
294
295 * configure: Regenerate.
296
347fe5bb
MF
2972016-01-10 Mike Frysinger <vapier@gentoo.org>
298
299 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
300 * configure: Regenerate.
301
22be3fbe
MF
3022016-01-10 Mike Frysinger <vapier@gentoo.org>
303
304 * configure: Regenerate.
305
0dc73ef7
MF
3062016-01-10 Mike Frysinger <vapier@gentoo.org>
307
308 * configure: Regenerate.
309
936df756
MF
3102016-01-09 Mike Frysinger <vapier@gentoo.org>
311
312 * config.in, configure: Regenerate.
313
2e3d4f4d
MF
3142016-01-06 Mike Frysinger <vapier@gentoo.org>
315
316 * interp.c (sim_open): Mark argv const.
317 (sim_create_inferior): Mark argv and env const.
318
9bbf6f91
MF
3192016-01-04 Mike Frysinger <vapier@gentoo.org>
320
321 * configure: Regenerate.
322
77cf2ef5
MF
3232016-01-03 Mike Frysinger <vapier@gentoo.org>
324
325 * interp.c (sim_open): Update sim_parse_args comment.
326
61971b86
MF
3272016-01-03 Mike Frysinger <vapier@gentoo.org>
328
329 * sim-main.h (sim_state): Delete devices member.
330
0cb8d851
MF
3312016-01-03 Mike Frysinger <vapier@gentoo.org>
332
333 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
334 * configure: Regenerate.
335
1ac72f06
MF
3362016-01-02 Mike Frysinger <vapier@gentoo.org>
337
338 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
339 * configure: Regenerate.
340
8e26d677
MF
3412015-12-30 Mike Frysinger <vapier@gentoo.org>
342
343 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
344 * configure: Regenerate.
345
eca4255a
MF
3462015-12-30 Mike Frysinger <vapier@gentoo.org>
347
348 * imterp.c (sim_open): Delete current_alignment and
349 current_target_byte_order assignments.
350 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
351 * configure: Regenerate.
352
e1211e55
MF
3532015-12-30 Mike Frysinger <vapier@gentoo.org>
354
355 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
356 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
357 (sim_store_register): Rename to ...
358 (m68hc11_reg_store): ... this. Delete local cpu var.
359 (sim_fetch_register): Rename to ...
360 (m68hc11_reg_fetch): ... this. Delete local cpu var.
361
5e744ef8
MF
3622015-12-27 Mike Frysinger <vapier@gentoo.org>
363
364 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
365
1b393626
MF
3662015-12-26 Mike Frysinger <vapier@gentoo.org>
367
368 * config.in, configure: Regenerate.
369
26936211
MF
3702015-12-24 Mike Frysinger <vapier@gentoo.org>
371
372 * sim-main.h (SIM_HANDLES_LMA): Delete.
373
84e8e361
MF
3742015-12-24 Mike Frysinger <vapier@gentoo.org>
375
376 * sim-main.h (WITH_WATCHPOINTS): Delete.
377
cdf850e9
MF
3782015-11-17 Mike Frysinger <vapier@gentoo.org>
379
380 * sim-main.h (WITH_MODULO_MEMORY): Delete.
381
797eee42
MF
3822015-11-15 Mike Frysinger <vapier@gentoo.org>
383
384 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
385
d2dfd242
MF
3862015-11-14 Mike Frysinger <vapier@gentoo.org>
387
388 * Makefile.in (SIM_OBJS): Delete sim-load.o.
389
6e4f085c
MF
3902015-11-14 Mike Frysinger <vapier@gentoo.org>
391
392 * interp.c (sim_close): Delete.
393
8d0978fb
MF
3942015-06-23 Mike Frysinger <vapier@gentoo.org>
395
396 * configure: Regenerate.
397
a3487082
MF
3982015-06-12 Mike Frysinger <vapier@gentoo.org>
399
400 * configure: Regenerate.
401
306f4178
MF
4022015-06-12 Mike Frysinger <vapier@gentoo.org>
403
404 * configure: Regenerate.
405
09896bd2
MF
4062015-06-11 Mike Frysinger <vapier@gentoo.org>
407
408 * interp.c (interrupt_names): Delete.
409
a84f8df0
MF
4102015-06-11 Mike Frysinger <vapier@gentoo.org>
411
412 * Makefile.in (SIM_OBJS): Add sim-resume.o
413 * interp.c (has_stepped, sim_resume): Delete.
414
5d19c366
MF
4152015-06-11 Mike Frysinger <vapier@gentoo.org>
416
417 * interp.c (INLINE): Delete define.
418
0a13382c
NC
4192015-04-29 Nick Clifton <nickc@redhat.com>
420
421 PR 18273
422 * gencode.c (gen_fetch_operands): Remove unreachable code.
423
20bca71d
MF
4242015-04-18 Mike Frysinger <vapier@gentoo.org>
425
426 * sim-main.h (SIM_CPU): Delete.
427
7e83aa92
MF
4282015-04-18 Mike Frysinger <vapier@gentoo.org>
429
430 * sim-main.h (sim_cia): Delete.
431
034685f9
MF
4322015-04-17 Mike Frysinger <vapier@gentoo.org>
433
434 * sim-main.h (CIA_GET, CIA_SET): Delete.
435
78e9aa70
MF
4362015-04-15 Mike Frysinger <vapier@gentoo.org>
437
438 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
439 * sim-main.h (STATE_CPU): Delete.
440
bf12d44e
MF
4412015-04-13 Mike Frysinger <vapier@gentoo.org>
442
443 * configure: Regenerate.
444
bea3f671
MF
4452015-04-13 Mike Frysinger <vapier@gentoo.org>
446
447 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
448 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
449 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
450 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
451 (sim_pc_get): Delete.
452 * sim-main.h (SIM_CPU): Define.
453 (STATE_CPU): Drop &.
454 (struct sim_state): Change cpu to an array of pointers.
455
122bbfb5
MF
4562015-04-06 Mike Frysinger <vapier@gentoo.org>
457
458 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
459
2b6ca062
MF
4602015-03-31 Mike Frysinger <vapier@gentoo.org>
461
462 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
463 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
464 variable to restricted.
465 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
466
05f53ed6
MF
4672015-03-24 Mike Frysinger <vapier@gentoo.org>
468
469 * interp.c (sim_pc_get): New function.
470
523ba8f9
MF
4712015-03-24 Mike Frysinger <vapier@gentoo.org>
472
473 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
474 sim_size, sim_trace): Delete.
475 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
476
30452bbe
MF
4772015-03-24 Mike Frysinger <vapier@gentoo.org>
478
479 * configure: Regenerate.
480
64dd13df
MF
4812015-03-23 Mike Frysinger <vapier@gentoo.org>
482
483 * configure: Regenerate.
484
49cd1634
MF
4852015-03-23 Mike Frysinger <vapier@gentoo.org>
486
487 * configure: Regenerate.
488 * configure.ac (m68hc11_extra_objs): Delete.
489 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
490 (SIM_EXTRA_OBJS): Delete.
491
ae7d0cac
MF
4922015-03-16 Mike Frysinger <vapier@gentoo.org>
493
494 * config.in, configure: Regenerate.
495
465fb143
MF
4962015-03-14 Mike Frysinger <vapier@gentoo.org>
497
498 * Makefile.in (SIM_RUN_OBJS): Delete.
499
5cddc23a
MF
5002015-03-14 Mike Frysinger <vapier@gentoo.org>
501
502 * configure.ac (AC_CHECK_HEADERS): Delete.
503 * aclocal.m4, configure: Regenerate.
504
2974be62
AM
5052014-08-19 Alan Modra <amodra@gmail.com>
506
507 * configure: Regenerate.
508
faa743bb
RM
5092014-08-15 Roland McGrath <mcgrathr@google.com>
510
511 * configure: Regenerate.
512 * config.in: Regenerate.
513
1a8a700e
MF
5142014-03-04 Mike Frysinger <vapier@gentoo.org>
515
516 * configure: Regenerate.
517
bf3d9781
AM
5182013-09-23 Alan Modra <amodra@gmail.com>
519
520 * configure: Regenerate.
521
31e6ad7d
MF
5222013-06-03 Mike Frysinger <vapier@gentoo.org>
523
524 * aclocal.m4, configure: Regenerate.
525
d3685d60
TT
5262013-05-10 Freddie Chopin <freddie_chopin@op.pl>
527
528 * configure: Rebuild.
529
1517bd27
MF
5302013-03-26 Mike Frysinger <vapier@gentoo.org>
531
532 * configure: Regenerate.
533
256139f5
JS
5342013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
535
536 * configure.ac: Use $SIM_DV_SOCKSER_O.
537 * configure: Regenerated.
538
5f3ef9d0
JB
5392012-06-15 Joel Brobecker <brobecker@adacore.com>
540
541 * config.in, configure: Regenerate.
542
2232061b
MF
5432012-03-24 Mike Frysinger <vapier@gentoo.org>
544
545 * aclocal.m4, config.in, configure: Regenerate.
546
db2e4d67
MF
5472011-12-03 Mike Frysinger <vapier@gentoo.org>
548
549 * aclocal.m4: New file.
550 * configure: Regenerate.
551
4399a56b
MF
5522011-10-19 Mike Frysinger <vapier@gentoo.org>
553
554 * configure: Regenerate after common/acinclude.m4 update.
555
9c082ca8
MF
5562011-10-17 Mike Frysinger <vapier@gentoo.org>
557
558 * configure.ac: Change include to common/acinclude.m4.
559
6ffe910a
MF
5602011-10-17 Mike Frysinger <vapier@gentoo.org>
561
562 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
563 call. Replace common.m4 include with SIM_AC_COMMON.
564 * configure: Regenerate.
565
2419798b
MF
5662011-07-05 Mike Frysinger <vapier@gentoo.org>
567
568 * interp.c (sim_do_command): Delete.
569
3725885a
RW
5702010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
571
572 * configure: Regenerate.
573
d6416cdc
RW
5742009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
575
81ecdfbb
RW
576 * config.in: Regenerate.
577 * configure: Likewise.
578
d6416cdc
RW
579 * configure: Regenerate.
580
b5bd9624
HPN
5812008-07-11 Hans-Peter Nilsson <hp@axis.com>
582
583 * configure: Regenerate to track ../common/common.m4 changes.
584 * config.in: Ditto.
585
6efef468 5862008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
587 Daniel Jacobowitz <dan@codesourcery.com>
588 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
589
590 * configure: Regenerate.
591
b1bfc053
HPN
5922006-12-21 Hans-Peter Nilsson <hp@axis.com>
593
594 * config.in: Regenerate.
595
e85e3205
RE
5962006-06-13 Richard Earnshaw <rearnsha@arm.com>
597
598 * configure: Regenerated.
599
2f0122dc
DJ
6002006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
601
602 * configure: Regenerated.
603
20e95c23
DJ
6042006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
605
606 * configure: Regenerated.
607
b3a3ffef
HPN
6082006-03-29 Hans-Peter Nilsson <hp@axis.com>
609
610 * configure: Regenerate.
611
2b193c4a
MK
6122005-03-23 Mark Kettenis <kettenis@gnu.org>
613
614 * configure: Regenerate.
615
35695fd6
AC
6162005-01-14 Andrew Cagney <cagney@gnu.org>
617
618 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
619 explicit call to AC_CONFIG_HEADER.
620 * configure: Regenerate.
621
38f48d72
AC
6222005-01-11 Andrew Cagney <cagney@localhost.localdomain>
623
624 * configure: Regenerated to track ../common/aclocal.m4 changes.
625
b7026657
AC
6262005-01-07 Andrew Cagney <cagney@gnu.org>
627
628 * configure.ac: Rename configure.in, require autoconf 2.59.
629 * configure: Re-generate.
630
379832de
HPN
6312004-12-08 Hans-Peter Nilsson <hp@axis.com>
632
633 * configure: Regenerate for ../common/aclocal.m4 update.
634
84b11e2e
AM
6352004-06-15 Alan Modra <amodra@bigpond.net.au>
636
637 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
638 instead of bfd_get_section_size_before_reloc.
639
a685700c
SC
6402003-08-08 Stephane Carrez <stcarrez@nerim.fr>
641
642 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
643 control the translation.
644 (m68hc11tim_print_timer): Update cycle_to_string conversion.
645 (m68hc11tim_timer_event): Fix handling of output
646 compare register with its interrupts.
647 (m68hc11tim_io_write_buffer): Check output compare
648 after setting M6811_TMSK1.
649 (m68hc11tim_io_read_buffer): Fix compilation warning.
650 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
651 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
652 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
653 * interrupts.c (interrupts_info): Likewise.
654 (interrupts_reset): Recognize bootstrap mode.
655 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
656 (_sim_cpu): Add cpu_start_mode.
657 (cycle_to_string): Add flags member.
658 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
659 (cpu_options): Declare new option bootstrap.
660 (cpu_option_handler): Handle it.
661 (cpu_info): Update call to cycle_to_string.
662
77342e5e
SC
6632003-08-08 Stephane Carrez <stcarrez@nerim.fr>
664
665 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
666 the physical address in virtual address.
667 (struct _sim_cpu): Add memory bank members.
668 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
669 * interp.c (sim_hw_configure): Create memory bank according to memory
670 bank parameters.
671 (sim_get_bank_parameters): New function to obtain memory bank config
672 from the symbol table.
673 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
674 (sim_open): Call sim_prepare_for_program.
675 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
676 to check if address is within bank window.
677 (m68hc11cpu_io_read_buffer): Likewise.
678 (attach_m68hc11_regs): Map the memory bank according to memory bank
679 parameters.
680
53b3cd22
SC
6812003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
682
683 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
684
962e9d85
SC
6852003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
686 Gary Piercey <gpiercey@northstar-technical.com>
687
688 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
689 * sim-main.h (print_io_word): Declare.
690 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
691 (tflg1_desc): Likewise for TFLG1.
692 (m68hc11tim_info): Print input and output compare registers
693
9b9f7b3c
SC
6942003-03-02 Stephane Carrez <stcarrez@nerim.fr>
695
696 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
697 to 32 to support memory bank switching; temporarily use 32-bit for
698 WORD_BITSIZE to avoid a bug in sim-common.
699
00416c6e
SC
7002003-03-01 Stephane Carrez <stcarrez@nerim.fr>
701
702 * interp.c (sim_fetch_register): Only store a single byte for
703 1 byte registers.
704
6b4a8935
AC
7052003-02-27 Andrew Cagney <cagney@redhat.com>
706
707 * interp.c (sim_prepare_for_program, sim_open)
708 (sim_create_inferior): Rename _bfd to bfd.
709
099d1b50
SC
7102002-08-13 Stephane Carrez <stcarrez@nerim.fr>
711
712 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
713
31c7c532
SC
7142002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
715
72f4393d 716 * interp.c (sim_prepare_for_program): Look up the image for the
31c7c532
SC
717 reset vector and set cpu_use_elf_start to 1 if not found.
718 (sim_open): Do not set cpu_use_elf_start.
719
39762100
SC
7202002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
721
722 * interp.c (sim_hw_configure): Return 1 for success.
723 (sim_prepare_for_program): Use the sim_hw_configure exit code to
724 return SIM_RC_FAIL.
725
7230d809
SC
7262002-08-13 Stephane Carrez <stcarrez@nerim.fr>
727
728 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
729 bank window to some virtual address to read from extended memory.
730 (m68hc11cpu_io_write_buffer): Likewise for writing.
ca156d78 731 (attach_m68hc11_regs): When use_bank property is defined, attach
7230d809 732 to the 68HC12 16K memory bank window.
7230d809
SC
733 * interp.c (sim_hw_configure): Create memory region for banked
734 memory.
735
dcceded2
SC
7362002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
737
738 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
739 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
740 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
741
abea9e28
SC
7422002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
743
744 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
745 when IO mapping changed, not when internal RAM mapping is changed.
746
63f36def
SC
7472002-08-13 Stephane Carrez <stcarrez@nerim.fr>
748
749 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
750 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
751 (m6811_regs): Add page register.
752 (cpu_set_page, cpu_get_page): New macros.
753 (phys_to_virt): New function.
754 (cpu_get_indexed_operand_addr, cpu_return): Declare.
755 * gencode.c: Identify indirect addressing mode for call and fix daa.
72f4393d 756 (gen_function_entry): New param to tell if src8/dst8 locals are
63f36def
SC
757 necessary.
758 (gen_interpreter): Use it to avoid generation of unused variables.
759 * interp.c (sim_fetch_register): Allow to read page register; page
760 register, A, B and CCR are only 1 byte wide.
761 (sim_store_register): Likewise for writing.
762
c8cca39f
AC
7632002-06-16 Andrew Cagney <ac131313@redhat.com>
764
765 * configure: Regenerated to track ../common/aclocal.m4 changes.
766
3c25f8c7
AC
7672002-06-09 Andrew Cagney <cagney@redhat.com>
768
769 * Makefile.in (INCLUDE): Update path to callback.h.
770 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
771
86596dc8
SC
7722002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
773
774 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
775 (cpu_move16): Likewise.
776 (sim_memory_error): Use sim_io_printf.
777 (cpu_option_handler): Fix compilation warning.
72f4393d 778 * interp.c (sim_hw_configure): Fix compilation warning;
86596dc8
SC
779 remove m68hc12sio@2 device.
780 (sim_open): Likewise.
72f4393d 781 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
86596dc8
SC
782 flags when reset.
783 (cycle_to_string): Improve convertion of cpu cycle number.
784 (m68hc11tim_info): Print info about PACNT.
785 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
786 TCTL1 and TCTL2 registers.
787 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
788
827ec39a
SC
7892002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
790
72f4393d 791 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
827ec39a
SC
792 cpu struct.
793 (sim_hw_configure): Connect the capture input/output events.
794 * sim-main.h (_sim_cpu): New member hw_cpu.
795 (m68hc11cpu_set_oscillator): Declare.
796 (m68hc11cpu_clear_oscillator): Declare.
797 (m68hc11cpu_set_port): Declare.
798 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
799 (m68hc11cpu_ports): New input ports and output ports to reflect
800 the HC11 IOs.
801 (m68hc11_delete): Cleanup any running oscillator.
802 (attach_m68hc11_regs): Create the input oscillators.
803 (make_oscillator): New function.
804 (find_oscillator): New function.
805 (oscillator_handler): New function.
806 (reset_oscillators): New function.
807 (m68hc11cpu_port_event): Handle the new input ports.
808 (m68hc11cpu_set_oscillator): New function.
809 (m68hc11cpu_clear_oscillator): New function.
810 (get_frequency): New function.
811 (m68hc11_option_handler): New function.
812 (m68hc11cpu_set_port): New function.
813 (m68hc11cpu_io_write): Post the port output events.
814 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
815 the output port value.
816 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
817 by latching the TCNT value in the register.
818
5abb9efa
SC
8192002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
820
821 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
822 (cpu_frame_reg, cpu_print_frame): Remove.
823 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
824 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
825 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
826 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
827 * m68hc11_sim.c (cpu_find_frame): Remove.
828 (cpu_create_frame_list): Remove.
829 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
830 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
831 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
832 (cpu_update_frame): Likewise.
833 (cpu_return): Likewise.
834 (cpu_reset): Likewise.
72f4393d 835 (cpu_initialize): Likewise.
5abb9efa
SC
836 * interp.c (sim_do_command): Remove call to cpu_print_frame.
837
26128965
SC
8382002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
839
840 * interrupts.c (interrupts_reset): New function, setup interrupt
841 vector address according to cpu mode.
842 (interrupts_initialize): Move reset portion to the above.
843 (interrupt_names): New table to give a name to interrupts.
844 (idefs): Handle pulse accumulator interrupts.
845 (interrupts_info): Print the interrupt history.
846 (interrupt_option_handler): New function.
847 (interrupt_options): New table of options.
848 (interrupts_update_pending): Keep track of when interrupts are
849 raised and implement breakpoint-on-raise-interrupt.
850 (interrupts_process): Keep track of when interrupts are taken
851 and implement breakpoint-on-interrupt.
852 * interrupts.h (struct interrupt_history): Define.
853 (struct interrupt): Keep track of the interrupt history.
854 (interrupts_reset): Declare.
855 (interrupts_initialize): Update prototype.
856 * m68hc11_sim.c (cpu_reset): Reset interrupts.
857 (cpu_initialize): Cleanup.
858
eefde351
SC
8592001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
860
861 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
862 address.
863 (m68hc11eepr_port_event): Fix detach/attach logic.
864
00d0c012
SC
8652001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
866
867 * Makefile.in (SIM_OBJS): Remove sim-resume.o
868 * interp.c (sim_resume): New function from sim-resume.c, install
869 the stepping event after having processed the pending ticks.
870 (has_stepped): Likewise.
871 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
872
b51c7603
AC
8732001-07-10 Andrew Cagney <ac131313@redhat.com>
874
875 * Makefile.in (gencode): Provide explicit path to gencode.c.
876
81e09ed8
SC
8772001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
878
879 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
880 (m68hc12int.c): Generate using gencode -m6812.
881 (m68hc11int.c): Likewise with -m6811.
882
883 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
884 (m6811_page1_opcodes): Remove duplicate entries.
885 (m6811_page2_opcodes): Likewise.
886 (m6811_page3_opcodes): Likewise.
887 (m6811_page4_opcodes): Likewise.
888 (m6812_page1_opcodes): New table for 68HC12 instructions.
889 (m6812_page2_opcodes): Likewise.
890 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
891 (gen_save_result): Likewise.
892 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
893 (cmp_opcode): New function for opcode comparision.
894 (prepare_table): Sort the opcodes.
895 (gen_interpreter): Prepare all the tables and generate either
896 a 68HC11 or a 68HC12 simulator.
897 (main): New options -m6811 and -m6812.
898
899 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
900 (cpu_special): Simulation of some 68HC12 instructions.
901 (cpu_exg): New function.
902 (cpu_dbcc): Likewise.
903 (cpu_fetch_relbranch16): Likewise.
904 (cpu_push_all): Push according to 68HC11 or 68HC12.
905 (cpu_move16): Likewise.
906 (cpu_move8): Likewise.
907 (cpu_get_indexed_operand16): Likewise.
908 (cpu_get_indexed_operand8): Likewise.
909 (cpu_get_indexed_operand_addr): Likewise.
910 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
911 (cpu_reset): Setup INIT register according to architecture.
72f4393d 912
81e09ed8
SC
913 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
914 (_sim_cpu): Keep track of the cpu being simulated.
915 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
916 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
917 (cpu_m68hc11_pop_uint8): Likewise.
918 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
919 (cpu_m68hc12_pop_uintxx): Likewise.
920 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
921 (cpu_fetch_relbranch16): Likewise.
922 (cpu_interp_m6811): Rename of cpu_interp.
72f4393d 923 (cpu_interp_m6812): New function.
81e09ed8
SC
924 * interp.c (free_state): New function.
925 (dev_list_68hc12): New table.
926 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
927 (sim_hw_configure): New function.
928 (sim_prepare_for_program): New function.
929 (sim_open): Use above new functions.
930 (sim_close): Call free_state().
931 (sim_info): Print info according to cpu.
932 (sim_create_inferior): Use sim_prepare_for_program.
933 (sim_do_command): Configure the hardware after a change of the
934 architecture.
935
11115521
SC
9362001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
937
938 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
939 pending interrupts.
940 * interrupts.c (interrupts_process): Keep track of the last number
941 of masked insn cycles.
942 (interrupts_initialize): Clear last number of masked insn cycles.
943 (interrupts_info): Report them.
72f4393d
L
944 (interrupts_update_pending): Compute clear and set masks of
945 interrupts and clear the interrupt bits before setting them
11115521
SC
946 (due to SCI interrupt sharing).
947 * interrupts.h (struct interrupts): New members last_mask_cycles
948 and xirq_last_mask_cycles.
949
b93775f5
SC
9502000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
951
952 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
953 instead of a hard-coded value.
954 (m68hc11cpu_io_write_buffer): Likewise.
955 (dv_m68hc11_descriptor): Define a 68hc12 device.
956 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
957 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
958 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
959 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
960
639aa4f7
SC
9612000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
962
963 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
964 (m68hc11cpu_delete): Delete handler to detach the address space.
965
6e73e7ed
SC
9662000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
967
968 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
969 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
970 instead of free and malloc.
971
5f186447
SC
9722000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
973
974 * Makefile.in: Was missing from initial patch.
975
9830501b
SC
9762000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
977
978 * interp.c (sim_store_register): Remove soft register hack.
979 (sim_fetch_register): Likewise.
980 (sim_create_inferior): Likewise.
981 * sim-main.h: Likewise.
982
a8afa79a
SC
9832000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
984
985 * interrupts.c (interrupts_update_pending): Clear the mask of
986 pending interrupts here.
987 (interrupts_get_current): Don't clear the mask of pending interrupts.
988
2990a9f4
SC
9892000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
990
991 * sim-main.h: Define cycle_to_string.
72f4393d 992 * dv-m68hc11tim.c (cycle_to_string): New function to translate
2990a9f4
SC
993 the cpu cycle into some formatted time string.
994 (m68hc11tim_print_timer): Use it.
995 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
996 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
997 * interrupts.c (interrupts_info): Likewise.
998 * m68hc11_sim.c (cpu_info): Likewise.
999
401493c8
SC
10002000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1001
1002 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
1003 interrupt and compare events accurately. Take into account the
1004 pending ticks not processed by the simulator yet (introduced a shift).
1005 (m68hc11_port_event): Reset the timer interrupt delays.
1006 (m68hc11tim_io_read_buffer): Be able to read several bytes.
1007 (m68hc11tim_io_write_buffer): Likewise for write.
1008 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
1009
4d72d17a
SC
10102000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1011
1012 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
1013 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
1014 (m68hc11spi_info): Clarify the status report
1015 of the SPI when a byte is being sent.
1016 (m68hc11spi_clock): Fix the spi send frame.
72f4393d 1017
63348d04
SC
10182000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1019
1020 * sim-main.h (m68hc11_map_level): Define level of address mappings.
1021 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
1022 whether the eeprom is currently mapped or not.
1023 (m68hc11eepr_port_event): Use the flag to see if we must unmap
1024 or map the eeprom. Update the flag to reflect the current state.
1025 Use M6811_EEPROM_LEVEL when mapping the eeprom.
1026 (m68hc11eepr_finish): Remove overlap hack.
1027 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
1028 config and control registers.
1029 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
1030 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
1031 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
1032 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
1033 (attach_m68hc11spi_regs): Likewise.
1034 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
1035 (attach_m68hc11tim_regs): Likewise.
1036 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
1037 (attach_m68hc11sio_regs): Likewise.
1038 * interp.c (sim_open): Likewise.
1039 * dv-nvram.c (attach_nvram_regs): Likewise.
1040
5d031c16
AC
1041Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1042
1043 * configure, config.in: Regenerate.
1044
e0709f50
AC
10452000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1046
1047 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
1048 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
1049 (dv_m6811_detach_address_callback): New function to detach a
1050 device from an address space.
1051 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
1052 config register according to --cpu-config option.
1053 * sim-main.h (_sim_cpu): Add cpu_config member.
1054 * interp.c (sim_open): Delete specific simulator options.
1055 * m68hc11_sim.c (cpu_option_handler): New options
1056 --emulos and -cpu-config <val> to configure the simulator.
1057 (cpu_initialize): Initialize cpu_config member.
1058
10592000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1060
1061 * emulos.c: Fix indentation and comments.
1062 * gencode.c: Likewise.
1063 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
1064 (m68hc11tim_io_write_buffer): Write compare registers and
1065 setup compare event.
1066 * interp.c: Remove unused global variables.
1067 * interrupts.c (idefs): New compare interrupts.
1068 Fix indentation and comments.
1069 * interrupts.h: Likewise.
1070
10712000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1072
1073 * dv-m68hc11sio.c: Fix indentation and comments.
1074 Remove INT_PORT.
1075 * dv-m68hc11.c: Fix indentation and comments.
1076 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
1077 * m68hc11_sim.c (cpu_reset): To here.
1078 * dv-m68hc11eepr.c: Fix indentation and comments.
72f4393d 1079
e0709f50
AC
10802000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1081
1082 * dv-nvram.c: New file, rename from dv-pram.c.
1083 * dv-pram.c: Delete file.
1084 * sim-main.h: Incorporate m68hc11_sim.h.
1085 * m68hc11_sim.h: Delete file.
1086 * configure.in: Rename pram into nvram.
1087 * interp.c (sim_open): Likewise in creation of device tree.
72f4393d 1088
e0709f50
AC
10892000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1090
1091 * interp.c (sim_open): Create the SPI device.
1092 * dv-m68hc11spi.c: New file for SPI device simulation.
1093 * configure.in (hw_extra_devices): Add SPI device.
1094
10952000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1096
1097 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
1098 (interrupts_process): Separate IRQ and XIRQ accounting.
1099 (interrupts_info): Report XIRQ accounting.
1100 * interrupts.h (struct interrupts): Added accounting for XIRQ.
1101
11022000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
1103
1104 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
1105 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
72f4393d 1106 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
e0709f50
AC
1107 configuration from the 'mode' device tree property.
1108 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
1109 configuration.
1110
11112000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
1112
1113 * sim-main.h: Remove WITH_TARGET_* defines.
1114 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
1115
11162000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
1117
1118 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
1119 1200 baud when cpu is in bootstrap mode.
1120
1121 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
1122 write in the TCTN timer register.
1123
1124 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
1125 by 4 to obtain the E clock frequency.
1126 (sccr2_desc): Use M6811_TIE for TIE bit.
1127 (m68hc11sio_info): Fix baud rate report.
1128
1129 * dv-m68hc11tim.c (to_realtime): Likewise.
1130
1131 * interp.c (sim_open): When building device tree, only provide
1132 devices that do not exist yet.
1133
1134 * emulos.c: Fix compilation pb under Windows.
1135
1136 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
1137 from the 'clock' property.
1138
11392000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
1140
1141 * m68hc11_sim.h (*_REGNUM): Define.
1142 (_sim_cpu): New member cpu_page0_reg table.
1143 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
1144 addresses of soft registers in .page0.
72f4393d 1145 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
e0709f50
AC
1146 to get/set soft registers.
1147
11481999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
1149
1150 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
1151 returning random values.
1152
11531999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
1154
1155 * gencode.c: Fix "subb N,x" that used a instead of b.
1156
11571999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
1158
1159 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
1160
11611999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
1162
1163 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
1164
11651999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
1166
1167 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
1168 register region in the m68hc11cpu struct.
1169 (m68hc11cpu_io_write): When the IO mapping addres changes,
1170 detach the register region and re-attach it at the new address.
1171 (m68hc11cpu_io_read_buffer): Renamed base_address into
1172 attach_address.
1173 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
1174 to m68hc11cpu_io_write.
1175
11761999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
1177
1178 * gencode.c: For sbc8, check the carry and increment the source
1179 before trying to set the carry for the result.
1180
11811999-05-24 John S. Kallal <kallal@voicenet.com>
72f4393d 1182
e0709f50
AC
1183 * interp.c (sim_get_info): Don't crash if the command line is 0.
1184 Define prototype for sim_get_info() and init_system().
1185 (sim_info): Correct call to sim_get_info().
72f4393d 1186
e0709f50
AC
11871999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
1188
1189 * configure.in: Recognize m6811-*-*.
1190 * configure: Regenerate.
1191 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
1192 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
1193 Correct the computation of carry of 8 and 16-bits add and subtract.
1194 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
1195 overflow set in a different manner than add).
1196
11971999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
1198
1199 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
1200 trace message.
1201 * interp.c (sim_open, sim_create_inferior): Initialize the
1202 cpu_elf_start from the ELF header.
1203 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
1204 (cpu_restart): Use cpu_elf_start as the starting address when
1205 the flag is set.
1206 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
1207 exits the simulator (exit status is in D).
1208 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
1209 cpu_elf_star to start execution at address specified in ELF file.
1210
12111999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
1212
1213 * Makefile.in, config.in, configure, configure.in: New files.
1214 * gencode.c: New file, generation of 68HC11 interpreter.
1215 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
1216 for interpreter.
1217 * interrupts.c, interrupts.h: New files, management of interrupts.
72f4393d 1218 * interp.c, sim-main.h,
e0709f50
AC
1219 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
1220 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
1221 68HC11 (dv-pram.c is generic and could probably migrate to common).
1222 * emulos.c: New file, basic emulation of some os.