]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
sim: install library header files
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
6df01ab8
MF
12021-05-16 Mike Frysinger <vapier@gentoo.org>
2
3 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c, dv-m68hc11spi.c,
4 dv-m68hc11tim.c, dv-nvram.c, emulos.c, gencode.c, interp.c,
5 interrupts.c, m68hc11_sim.c: Include defs.h.
6
79633c12
MF
72021-05-16 Mike Frysinger <vapier@gentoo.org>
8
9 * config.in, configure: Regenerate.
10
df68e12b
MF
112021-05-14 Mike Frysinger <vapier@gentoo.org>
12
13 * sim-main.h: Update include path.
14
8a16cc4b
MF
152021-05-07 Mike Frysinger <vapier@gentoo.org>
16
17 * dv-m68hc11tim.c (cycle_to_string): Increase buf to 128 bytes.
18 Merge two sprintf buf calls.
19
8e78e9b9
MF
202021-05-06 Mike Frysinger <vapier@gentoo.org>
21
22 * interp.c (sim_hw_configure): Change %lx to %x in format strings.
23 * configure.ac: Delete SIM_AC_OPTION_WARNINGS call.
24 * configure: Regenerate.
25
8852d028
MF
262021-05-06 Mike Frysinger <vapier@gentoo.org>
27
28 * emulos.c: Include errno.h & stdio.h.
29 (emul_write): Print a warning when the write fails.
30
bf06b2a2
MF
312021-05-04 Mike Frysinger <vapier@gentoo.org>
32
33 * dv-m68hc11.c (struct m68hc11cpu): Change attach_size to unsigned int.
34 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Cast buffer to const char*.
35
aa0fca16
MF
362021-05-04 Mike Frysinger <vapier@gentoo.org>
37
38 * configure: Regenerate.
39
fe348617
MF
402021-05-01 Mike Frysinger <vapier@gentoo.org>
41
42 * config.in, configure: Regenerate.
43
9d903352
MF
442021-04-23 Mike Frysinger <vapier@gentoo.org>
45
46 * configure.ac (SIM_AC_OPTION_HARDWARE): Delete first two args.
47 * configure: Regenerate.
48
19f6a43c
TT
492021-04-22 Tom Tromey <tom@tromey.com>
50
51 * configure, config.in: Rebuild.
52
d6581fcd
TT
532021-04-22 Tom Tromey <tom@tromey.com>
54
55 * Makefile.in (INCLUDE): Remove.
56
e7d8f1da
TT
572021-04-22 Tom Tromey <tom@tromey.com>
58
59 * Makefile.in (interp.o): Remove.
60
efd82ac7
TT
612021-04-22 Tom Tromey <tom@tromey.com>
62
63 * configure: Rebuild.
64
2662c237
MF
652021-04-21 Mike Frysinger <vapier@gentoo.org>
66
67 * aclocal.m4: Regenerate.
68
1f195bc3
SM
692021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
70
71 * configure: Regenerate.
72
37e9f182
MF
732021-04-18 Mike Frysinger <vapier@gentoo.org>
74
75 * configure: Regenerate.
76
d5a71b11
MF
772021-04-12 Mike Frysinger <vapier@gentoo.org>
78
79 * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
80
c2783492
MF
812021-04-02 Mike Frysinger <vapier@gentoo.org>
82
83 * aclocal.m4, configure: Regenerate.
84
c6c7769d
MF
852021-03-13 Mike Frysinger <vapier@gentoo.org>
86
87 * Makefile.in (gencode.o): New rule.
88 (gencode): Call LINK_FOR_BUILD.
89
ebe9564b
MF
902021-02-28 Mike Frysinger <vapier@gentoo.org>
91
92 * configure: Regenerate.
93
760b3e8b
MF
942021-02-21 Mike Frysinger <vapier@gentoo.org>
95
96 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
97 * aclocal.m4, configure: Regenerate.
98
136da8cd
MF
992021-02-13 Mike Frysinger <vapier@gentoo.org>
100
101 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
102 * aclocal.m4, configure: Regenerate.
103
aa09469f
MF
1042021-02-06 Mike Frysinger <vapier@gentoo.org>
105
106 * configure: Regenerate.
107
683b8d96
MF
1082021-01-30 Mike Frysinger <vapier@gentoo.org>
109
110 * dv-m68hc11tim.c (cycle_to_string): Change llu to PRIi64.
111
b9e016f5
MF
1122021-01-30 Mike Frysinger <vapier@gentoo.org>
113
114 * m68hc11_sim.c (cpu_set_sp): Add static markings.
115 (cpu_get_reg, cpu_get_src_reg, cpu_set_dst_reg,
116 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8): Likewise.
117
fb8d4e59
MF
1182021-01-30 Mike Frysinger <vapier@gentoo.org>
119
120 * interp.c (sim_get_info, sim_board_reset): Pass %s to sim_hw_parse.
121
ee64caae
MF
1222021-01-30 Mike Frysinger <vapier@gentoo.org>
123
124 * dv-m68hc11.c, m68hc11_sim.c: Include stdlib.h.
125
88f68ee2
MF
1262021-01-30 Mike Frysinger <vapier@gentoo.org>
127
128 * configure.ac (SIM_AC_OPTION_HARDWARE): Inline variables.
129 * configure: Regenerate.
130
68ed2854
MF
1312021-01-11 Mike Frysinger <vapier@gentoo.org>
132
133 * config.in, configure: Regenerate.
134
50df264d
MF
1352021-01-09 Mike Frysinger <vapier@gentoo.org>
136
137 * configure: Regenerate.
138
bf470982
MF
1392021-01-09 Mike Frysinger <vapier@gentoo.org>
140
141 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
142 * configure: Regenerate.
143
46f900c0
MF
1442021-01-08 Mike Frysinger <vapier@gentoo.org>
145
146 * configure: Regenerate.
147
dfb856ba
MF
1482021-01-04 Mike Frysinger <vapier@gentoo.org>
149
150 * configure: Regenerate.
151
5c887dd5
JB
1522017-09-06 John Baldwin <jhb@FreeBSD.org>
153
154 * configure: Regenerate.
155
13a590ca
MF
1562017-02-13 Mike Frysinger <vapier@gentoo.org>
157
158 * gencode.c: Include libiberty.h.
159 (TABLE_SIZE): Delete.
160 (find_opcode_pattern): Change TABLE_SIZE to ARRAY_SIZE.
161 (gen_interpreter): Likewise.
162 * interrupts.c (TableSize): Delete.
163 (interrupts_update_pending): Change TableSize to ARRAY_SIZE.
164
fa0843f5
MF
1652016-08-16 Mike Frysinger <vapier@gentoo.org>
166
167 * sim-main.h (inline): Delete define.
168 (phys_to_virt): Change inline to STATIC_INLINE.
169 (memory_read8, memory_write8, memory_read16, memory_write16,
170 cpu_ccr_update_tst16, cpu_ccr_update_shift8, cpu_ccr_update_shift16,
171 cpu_ccr_update_add8, cpu_ccr_update_sub8, cpu_ccr_update_add16,
172 cpu_ccr_update_sub16, cpu_m68hc11_push_uint8, cpu_m68hc11_push_uint16,
173 cpu_m68hc11_pop_uint8, cpu_m68hc11_pop_uint16, cpu_m68hc12_push_uint8,
174 cpu_m68hc12_push_uint16, cpu_m68hc12_pop_uint8,
175 cpu_m68hc12_pop_uint16, cpu_fetch8, cpu_fetch16): Likewise.
176
5357150c
MF
1772016-08-15 Mike Frysinger <vapier@gentoo.org>
178
179 * interp.c (sim_get_bank_parameters): Delete abfd arg.
180 Replace all symbol lookup code with calls to trace_sym_value.
181 (sim_prepare_for_program): Update sim_get_bank_parameters call.
182
6f64fd48
MF
1832016-08-13 Mike Frysinger <vapier@gentoo.org>
184
185 * dv-m68hc11.c (m68hc11cpu_port_event): Adjust cpu prototype style.
186 * dv-m68hc11spi.c (m68hc11spi_port_event): Likewise.
187 * dv-m68hc11tim.c (m68hc11tim_print_timer): Likewise.
188 * emulos.c (emul_bench): Likewise.
189 (emul_write): Likewise. Also rename state to cpu.
190 (emul_os): Rename proc to cpu.
191 * gencode.c: Rename proc to cpu.
192 * interrupts.c (interrupts_initialize): Likewise.
193 * interrupts.h (interrupts): Adjust cpu type.
194 (interrupts_initialize): Likewise.
195 * m68hc11_sim.c (cpu_get_reg): Adjust cpu prototype style.
196 (cpu_get_src_reg, cpu_set_dst_reg, cpu_set_reg,
197 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8,
198 cpu_get_indexed_operand16, cpu_dbcc, cpu_exg): Likewise.
199 (cpu_ccr_update_tst8): Rename proc to cpu.
200 * sim-main.h: Rename PROC and proc to cpu.
201
527aaa4a
MF
2022016-08-13 Mike Frysinger <vapier@gentoo.org>
203
204 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Drop cast with
205 return value of hw_malloc.
206 * dv-m68hc11sio.c (m68hc11sio_rx_poll): Mark static.
207 (m68hc11sio_tx_poll): Likewise.
208 * dv-m68hc11spi.c (m68hc11spi_clock): Likewise.
209 * dv-m68hc11tim.c (m68hc11tim_timer_event): Likewise.
210 * dv-nvram.c (attach_nvram_regs): Drop cast with
211 return value of hw_malloc.
212 * emulos.c (emul_bench): Mark static.
213 (emul_write): Likewise.
214 (emul_exit): Likewise.
215 * gencode.c: Include stdio.h.
216 (gen_function_entry): Unify two print lines.
217 (cmp_opcode): Mark args const.
218
ce39bd38
MF
2192016-01-10 Mike Frysinger <vapier@gentoo.org>
220
221 * config.in, configure: Regenerate.
222
35656e95
MF
2232016-01-10 Mike Frysinger <vapier@gentoo.org>
224
225 * configure: Regenerate.
226
16f7876d
MF
2272016-01-10 Mike Frysinger <vapier@gentoo.org>
228
229 * configure: Regenerate.
230
e19418e0
MF
2312016-01-10 Mike Frysinger <vapier@gentoo.org>
232
233 * configure: Regenerate.
234
99d8e879
MF
2352016-01-10 Mike Frysinger <vapier@gentoo.org>
236
237 * configure: Regenerate.
238
347fe5bb
MF
2392016-01-10 Mike Frysinger <vapier@gentoo.org>
240
241 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
242 * configure: Regenerate.
243
22be3fbe
MF
2442016-01-10 Mike Frysinger <vapier@gentoo.org>
245
246 * configure: Regenerate.
247
0dc73ef7
MF
2482016-01-10 Mike Frysinger <vapier@gentoo.org>
249
250 * configure: Regenerate.
251
936df756
MF
2522016-01-09 Mike Frysinger <vapier@gentoo.org>
253
254 * config.in, configure: Regenerate.
255
2e3d4f4d
MF
2562016-01-06 Mike Frysinger <vapier@gentoo.org>
257
258 * interp.c (sim_open): Mark argv const.
259 (sim_create_inferior): Mark argv and env const.
260
9bbf6f91
MF
2612016-01-04 Mike Frysinger <vapier@gentoo.org>
262
263 * configure: Regenerate.
264
77cf2ef5
MF
2652016-01-03 Mike Frysinger <vapier@gentoo.org>
266
267 * interp.c (sim_open): Update sim_parse_args comment.
268
61971b86
MF
2692016-01-03 Mike Frysinger <vapier@gentoo.org>
270
271 * sim-main.h (sim_state): Delete devices member.
272
0cb8d851
MF
2732016-01-03 Mike Frysinger <vapier@gentoo.org>
274
275 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
276 * configure: Regenerate.
277
1ac72f06
MF
2782016-01-02 Mike Frysinger <vapier@gentoo.org>
279
280 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
281 * configure: Regenerate.
282
8e26d677
MF
2832015-12-30 Mike Frysinger <vapier@gentoo.org>
284
285 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
286 * configure: Regenerate.
287
eca4255a
MF
2882015-12-30 Mike Frysinger <vapier@gentoo.org>
289
290 * imterp.c (sim_open): Delete current_alignment and
291 current_target_byte_order assignments.
292 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
293 * configure: Regenerate.
294
e1211e55
MF
2952015-12-30 Mike Frysinger <vapier@gentoo.org>
296
297 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
298 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
299 (sim_store_register): Rename to ...
300 (m68hc11_reg_store): ... this. Delete local cpu var.
301 (sim_fetch_register): Rename to ...
302 (m68hc11_reg_fetch): ... this. Delete local cpu var.
303
5e744ef8
MF
3042015-12-27 Mike Frysinger <vapier@gentoo.org>
305
306 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
307
1b393626
MF
3082015-12-26 Mike Frysinger <vapier@gentoo.org>
309
310 * config.in, configure: Regenerate.
311
26936211
MF
3122015-12-24 Mike Frysinger <vapier@gentoo.org>
313
314 * sim-main.h (SIM_HANDLES_LMA): Delete.
315
84e8e361
MF
3162015-12-24 Mike Frysinger <vapier@gentoo.org>
317
318 * sim-main.h (WITH_WATCHPOINTS): Delete.
319
cdf850e9
MF
3202015-11-17 Mike Frysinger <vapier@gentoo.org>
321
322 * sim-main.h (WITH_MODULO_MEMORY): Delete.
323
797eee42
MF
3242015-11-15 Mike Frysinger <vapier@gentoo.org>
325
326 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
327
d2dfd242
MF
3282015-11-14 Mike Frysinger <vapier@gentoo.org>
329
330 * Makefile.in (SIM_OBJS): Delete sim-load.o.
331
6e4f085c
MF
3322015-11-14 Mike Frysinger <vapier@gentoo.org>
333
334 * interp.c (sim_close): Delete.
335
8d0978fb
MF
3362015-06-23 Mike Frysinger <vapier@gentoo.org>
337
338 * configure: Regenerate.
339
a3487082
MF
3402015-06-12 Mike Frysinger <vapier@gentoo.org>
341
342 * configure: Regenerate.
343
306f4178
MF
3442015-06-12 Mike Frysinger <vapier@gentoo.org>
345
346 * configure: Regenerate.
347
09896bd2
MF
3482015-06-11 Mike Frysinger <vapier@gentoo.org>
349
350 * interp.c (interrupt_names): Delete.
351
a84f8df0
MF
3522015-06-11 Mike Frysinger <vapier@gentoo.org>
353
354 * Makefile.in (SIM_OBJS): Add sim-resume.o
355 * interp.c (has_stepped, sim_resume): Delete.
356
5d19c366
MF
3572015-06-11 Mike Frysinger <vapier@gentoo.org>
358
359 * interp.c (INLINE): Delete define.
360
0a13382c
NC
3612015-04-29 Nick Clifton <nickc@redhat.com>
362
363 PR 18273
364 * gencode.c (gen_fetch_operands): Remove unreachable code.
365
20bca71d
MF
3662015-04-18 Mike Frysinger <vapier@gentoo.org>
367
368 * sim-main.h (SIM_CPU): Delete.
369
7e83aa92
MF
3702015-04-18 Mike Frysinger <vapier@gentoo.org>
371
372 * sim-main.h (sim_cia): Delete.
373
034685f9
MF
3742015-04-17 Mike Frysinger <vapier@gentoo.org>
375
376 * sim-main.h (CIA_GET, CIA_SET): Delete.
377
78e9aa70
MF
3782015-04-15 Mike Frysinger <vapier@gentoo.org>
379
380 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
381 * sim-main.h (STATE_CPU): Delete.
382
bf12d44e
MF
3832015-04-13 Mike Frysinger <vapier@gentoo.org>
384
385 * configure: Regenerate.
386
bea3f671
MF
3872015-04-13 Mike Frysinger <vapier@gentoo.org>
388
389 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
390 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
391 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
392 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
393 (sim_pc_get): Delete.
394 * sim-main.h (SIM_CPU): Define.
395 (STATE_CPU): Drop &.
396 (struct sim_state): Change cpu to an array of pointers.
397
122bbfb5
MF
3982015-04-06 Mike Frysinger <vapier@gentoo.org>
399
400 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
401
2b6ca062
MF
4022015-03-31 Mike Frysinger <vapier@gentoo.org>
403
404 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
405 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
406 variable to restricted.
407 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
408
05f53ed6
MF
4092015-03-24 Mike Frysinger <vapier@gentoo.org>
410
411 * interp.c (sim_pc_get): New function.
412
523ba8f9
MF
4132015-03-24 Mike Frysinger <vapier@gentoo.org>
414
415 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
416 sim_size, sim_trace): Delete.
417 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
418
30452bbe
MF
4192015-03-24 Mike Frysinger <vapier@gentoo.org>
420
421 * configure: Regenerate.
422
64dd13df
MF
4232015-03-23 Mike Frysinger <vapier@gentoo.org>
424
425 * configure: Regenerate.
426
49cd1634
MF
4272015-03-23 Mike Frysinger <vapier@gentoo.org>
428
429 * configure: Regenerate.
430 * configure.ac (m68hc11_extra_objs): Delete.
431 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
432 (SIM_EXTRA_OBJS): Delete.
433
ae7d0cac
MF
4342015-03-16 Mike Frysinger <vapier@gentoo.org>
435
436 * config.in, configure: Regenerate.
437
465fb143
MF
4382015-03-14 Mike Frysinger <vapier@gentoo.org>
439
440 * Makefile.in (SIM_RUN_OBJS): Delete.
441
5cddc23a
MF
4422015-03-14 Mike Frysinger <vapier@gentoo.org>
443
444 * configure.ac (AC_CHECK_HEADERS): Delete.
445 * aclocal.m4, configure: Regenerate.
446
2974be62
AM
4472014-08-19 Alan Modra <amodra@gmail.com>
448
449 * configure: Regenerate.
450
faa743bb
RM
4512014-08-15 Roland McGrath <mcgrathr@google.com>
452
453 * configure: Regenerate.
454 * config.in: Regenerate.
455
1a8a700e
MF
4562014-03-04 Mike Frysinger <vapier@gentoo.org>
457
458 * configure: Regenerate.
459
bf3d9781
AM
4602013-09-23 Alan Modra <amodra@gmail.com>
461
462 * configure: Regenerate.
463
31e6ad7d
MF
4642013-06-03 Mike Frysinger <vapier@gentoo.org>
465
466 * aclocal.m4, configure: Regenerate.
467
d3685d60
TT
4682013-05-10 Freddie Chopin <freddie_chopin@op.pl>
469
470 * configure: Rebuild.
471
1517bd27
MF
4722013-03-26 Mike Frysinger <vapier@gentoo.org>
473
474 * configure: Regenerate.
475
256139f5
JS
4762013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
477
478 * configure.ac: Use $SIM_DV_SOCKSER_O.
479 * configure: Regenerated.
480
5f3ef9d0
JB
4812012-06-15 Joel Brobecker <brobecker@adacore.com>
482
483 * config.in, configure: Regenerate.
484
2232061b
MF
4852012-03-24 Mike Frysinger <vapier@gentoo.org>
486
487 * aclocal.m4, config.in, configure: Regenerate.
488
db2e4d67
MF
4892011-12-03 Mike Frysinger <vapier@gentoo.org>
490
491 * aclocal.m4: New file.
492 * configure: Regenerate.
493
4399a56b
MF
4942011-10-19 Mike Frysinger <vapier@gentoo.org>
495
496 * configure: Regenerate after common/acinclude.m4 update.
497
9c082ca8
MF
4982011-10-17 Mike Frysinger <vapier@gentoo.org>
499
500 * configure.ac: Change include to common/acinclude.m4.
501
6ffe910a
MF
5022011-10-17 Mike Frysinger <vapier@gentoo.org>
503
504 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
505 call. Replace common.m4 include with SIM_AC_COMMON.
506 * configure: Regenerate.
507
2419798b
MF
5082011-07-05 Mike Frysinger <vapier@gentoo.org>
509
510 * interp.c (sim_do_command): Delete.
511
3725885a
RW
5122010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
513
514 * configure: Regenerate.
515
d6416cdc
RW
5162009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
517
81ecdfbb
RW
518 * config.in: Regenerate.
519 * configure: Likewise.
520
d6416cdc
RW
521 * configure: Regenerate.
522
b5bd9624
HPN
5232008-07-11 Hans-Peter Nilsson <hp@axis.com>
524
525 * configure: Regenerate to track ../common/common.m4 changes.
526 * config.in: Ditto.
527
6efef468 5282008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
529 Daniel Jacobowitz <dan@codesourcery.com>
530 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
531
532 * configure: Regenerate.
533
b1bfc053
HPN
5342006-12-21 Hans-Peter Nilsson <hp@axis.com>
535
536 * config.in: Regenerate.
537
e85e3205
RE
5382006-06-13 Richard Earnshaw <rearnsha@arm.com>
539
540 * configure: Regenerated.
541
2f0122dc
DJ
5422006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
543
544 * configure: Regenerated.
545
20e95c23
DJ
5462006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
547
548 * configure: Regenerated.
549
b3a3ffef
HPN
5502006-03-29 Hans-Peter Nilsson <hp@axis.com>
551
552 * configure: Regenerate.
553
2b193c4a
MK
5542005-03-23 Mark Kettenis <kettenis@gnu.org>
555
556 * configure: Regenerate.
557
35695fd6
AC
5582005-01-14 Andrew Cagney <cagney@gnu.org>
559
560 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
561 explicit call to AC_CONFIG_HEADER.
562 * configure: Regenerate.
563
38f48d72
AC
5642005-01-11 Andrew Cagney <cagney@localhost.localdomain>
565
566 * configure: Regenerated to track ../common/aclocal.m4 changes.
567
b7026657
AC
5682005-01-07 Andrew Cagney <cagney@gnu.org>
569
570 * configure.ac: Rename configure.in, require autoconf 2.59.
571 * configure: Re-generate.
572
379832de
HPN
5732004-12-08 Hans-Peter Nilsson <hp@axis.com>
574
575 * configure: Regenerate for ../common/aclocal.m4 update.
576
84b11e2e
AM
5772004-06-15 Alan Modra <amodra@bigpond.net.au>
578
579 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
580 instead of bfd_get_section_size_before_reloc.
581
a685700c
SC
5822003-08-08 Stephane Carrez <stcarrez@nerim.fr>
583
584 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
585 control the translation.
586 (m68hc11tim_print_timer): Update cycle_to_string conversion.
587 (m68hc11tim_timer_event): Fix handling of output
588 compare register with its interrupts.
589 (m68hc11tim_io_write_buffer): Check output compare
590 after setting M6811_TMSK1.
591 (m68hc11tim_io_read_buffer): Fix compilation warning.
592 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
593 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
594 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
595 * interrupts.c (interrupts_info): Likewise.
596 (interrupts_reset): Recognize bootstrap mode.
597 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
598 (_sim_cpu): Add cpu_start_mode.
599 (cycle_to_string): Add flags member.
600 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
601 (cpu_options): Declare new option bootstrap.
602 (cpu_option_handler): Handle it.
603 (cpu_info): Update call to cycle_to_string.
604
77342e5e
SC
6052003-08-08 Stephane Carrez <stcarrez@nerim.fr>
606
607 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
608 the physical address in virtual address.
609 (struct _sim_cpu): Add memory bank members.
610 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
611 * interp.c (sim_hw_configure): Create memory bank according to memory
612 bank parameters.
613 (sim_get_bank_parameters): New function to obtain memory bank config
614 from the symbol table.
615 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
616 (sim_open): Call sim_prepare_for_program.
617 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
618 to check if address is within bank window.
619 (m68hc11cpu_io_read_buffer): Likewise.
620 (attach_m68hc11_regs): Map the memory bank according to memory bank
621 parameters.
622
53b3cd22
SC
6232003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
624
625 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
626
962e9d85
SC
6272003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
628 Gary Piercey <gpiercey@northstar-technical.com>
629
630 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
631 * sim-main.h (print_io_word): Declare.
632 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
633 (tflg1_desc): Likewise for TFLG1.
634 (m68hc11tim_info): Print input and output compare registers
635
9b9f7b3c
SC
6362003-03-02 Stephane Carrez <stcarrez@nerim.fr>
637
638 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
639 to 32 to support memory bank switching; temporarily use 32-bit for
640 WORD_BITSIZE to avoid a bug in sim-common.
641
00416c6e
SC
6422003-03-01 Stephane Carrez <stcarrez@nerim.fr>
643
644 * interp.c (sim_fetch_register): Only store a single byte for
645 1 byte registers.
646
6b4a8935
AC
6472003-02-27 Andrew Cagney <cagney@redhat.com>
648
649 * interp.c (sim_prepare_for_program, sim_open)
650 (sim_create_inferior): Rename _bfd to bfd.
651
099d1b50
SC
6522002-08-13 Stephane Carrez <stcarrez@nerim.fr>
653
654 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
655
31c7c532
SC
6562002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
657
72f4393d 658 * interp.c (sim_prepare_for_program): Look up the image for the
31c7c532
SC
659 reset vector and set cpu_use_elf_start to 1 if not found.
660 (sim_open): Do not set cpu_use_elf_start.
661
39762100
SC
6622002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
663
664 * interp.c (sim_hw_configure): Return 1 for success.
665 (sim_prepare_for_program): Use the sim_hw_configure exit code to
666 return SIM_RC_FAIL.
667
7230d809
SC
6682002-08-13 Stephane Carrez <stcarrez@nerim.fr>
669
670 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
671 bank window to some virtual address to read from extended memory.
672 (m68hc11cpu_io_write_buffer): Likewise for writing.
ca156d78 673 (attach_m68hc11_regs): When use_bank property is defined, attach
7230d809 674 to the 68HC12 16K memory bank window.
7230d809
SC
675 * interp.c (sim_hw_configure): Create memory region for banked
676 memory.
677
dcceded2
SC
6782002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
679
680 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
681 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
682 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
683
abea9e28
SC
6842002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
685
686 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
687 when IO mapping changed, not when internal RAM mapping is changed.
688
63f36def
SC
6892002-08-13 Stephane Carrez <stcarrez@nerim.fr>
690
691 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
692 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
693 (m6811_regs): Add page register.
694 (cpu_set_page, cpu_get_page): New macros.
695 (phys_to_virt): New function.
696 (cpu_get_indexed_operand_addr, cpu_return): Declare.
697 * gencode.c: Identify indirect addressing mode for call and fix daa.
72f4393d 698 (gen_function_entry): New param to tell if src8/dst8 locals are
63f36def
SC
699 necessary.
700 (gen_interpreter): Use it to avoid generation of unused variables.
701 * interp.c (sim_fetch_register): Allow to read page register; page
702 register, A, B and CCR are only 1 byte wide.
703 (sim_store_register): Likewise for writing.
704
c8cca39f
AC
7052002-06-16 Andrew Cagney <ac131313@redhat.com>
706
707 * configure: Regenerated to track ../common/aclocal.m4 changes.
708
3c25f8c7
AC
7092002-06-09 Andrew Cagney <cagney@redhat.com>
710
711 * Makefile.in (INCLUDE): Update path to callback.h.
712 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
713
86596dc8
SC
7142002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
715
716 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
717 (cpu_move16): Likewise.
718 (sim_memory_error): Use sim_io_printf.
719 (cpu_option_handler): Fix compilation warning.
72f4393d 720 * interp.c (sim_hw_configure): Fix compilation warning;
86596dc8
SC
721 remove m68hc12sio@2 device.
722 (sim_open): Likewise.
72f4393d 723 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
86596dc8
SC
724 flags when reset.
725 (cycle_to_string): Improve convertion of cpu cycle number.
726 (m68hc11tim_info): Print info about PACNT.
727 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
728 TCTL1 and TCTL2 registers.
729 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
730
827ec39a
SC
7312002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
732
72f4393d 733 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
827ec39a
SC
734 cpu struct.
735 (sim_hw_configure): Connect the capture input/output events.
736 * sim-main.h (_sim_cpu): New member hw_cpu.
737 (m68hc11cpu_set_oscillator): Declare.
738 (m68hc11cpu_clear_oscillator): Declare.
739 (m68hc11cpu_set_port): Declare.
740 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
741 (m68hc11cpu_ports): New input ports and output ports to reflect
742 the HC11 IOs.
743 (m68hc11_delete): Cleanup any running oscillator.
744 (attach_m68hc11_regs): Create the input oscillators.
745 (make_oscillator): New function.
746 (find_oscillator): New function.
747 (oscillator_handler): New function.
748 (reset_oscillators): New function.
749 (m68hc11cpu_port_event): Handle the new input ports.
750 (m68hc11cpu_set_oscillator): New function.
751 (m68hc11cpu_clear_oscillator): New function.
752 (get_frequency): New function.
753 (m68hc11_option_handler): New function.
754 (m68hc11cpu_set_port): New function.
755 (m68hc11cpu_io_write): Post the port output events.
756 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
757 the output port value.
758 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
759 by latching the TCNT value in the register.
760
5abb9efa
SC
7612002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
762
763 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
764 (cpu_frame_reg, cpu_print_frame): Remove.
765 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
766 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
767 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
768 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
769 * m68hc11_sim.c (cpu_find_frame): Remove.
770 (cpu_create_frame_list): Remove.
771 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
772 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
773 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
774 (cpu_update_frame): Likewise.
775 (cpu_return): Likewise.
776 (cpu_reset): Likewise.
72f4393d 777 (cpu_initialize): Likewise.
5abb9efa
SC
778 * interp.c (sim_do_command): Remove call to cpu_print_frame.
779
26128965
SC
7802002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
781
782 * interrupts.c (interrupts_reset): New function, setup interrupt
783 vector address according to cpu mode.
784 (interrupts_initialize): Move reset portion to the above.
785 (interrupt_names): New table to give a name to interrupts.
786 (idefs): Handle pulse accumulator interrupts.
787 (interrupts_info): Print the interrupt history.
788 (interrupt_option_handler): New function.
789 (interrupt_options): New table of options.
790 (interrupts_update_pending): Keep track of when interrupts are
791 raised and implement breakpoint-on-raise-interrupt.
792 (interrupts_process): Keep track of when interrupts are taken
793 and implement breakpoint-on-interrupt.
794 * interrupts.h (struct interrupt_history): Define.
795 (struct interrupt): Keep track of the interrupt history.
796 (interrupts_reset): Declare.
797 (interrupts_initialize): Update prototype.
798 * m68hc11_sim.c (cpu_reset): Reset interrupts.
799 (cpu_initialize): Cleanup.
800
eefde351
SC
8012001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
802
803 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
804 address.
805 (m68hc11eepr_port_event): Fix detach/attach logic.
806
00d0c012
SC
8072001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
808
809 * Makefile.in (SIM_OBJS): Remove sim-resume.o
810 * interp.c (sim_resume): New function from sim-resume.c, install
811 the stepping event after having processed the pending ticks.
812 (has_stepped): Likewise.
813 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
814
b51c7603
AC
8152001-07-10 Andrew Cagney <ac131313@redhat.com>
816
817 * Makefile.in (gencode): Provide explicit path to gencode.c.
818
81e09ed8
SC
8192001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
820
821 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
822 (m68hc12int.c): Generate using gencode -m6812.
823 (m68hc11int.c): Likewise with -m6811.
824
825 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
826 (m6811_page1_opcodes): Remove duplicate entries.
827 (m6811_page2_opcodes): Likewise.
828 (m6811_page3_opcodes): Likewise.
829 (m6811_page4_opcodes): Likewise.
830 (m6812_page1_opcodes): New table for 68HC12 instructions.
831 (m6812_page2_opcodes): Likewise.
832 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
833 (gen_save_result): Likewise.
834 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
835 (cmp_opcode): New function for opcode comparision.
836 (prepare_table): Sort the opcodes.
837 (gen_interpreter): Prepare all the tables and generate either
838 a 68HC11 or a 68HC12 simulator.
839 (main): New options -m6811 and -m6812.
840
841 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
842 (cpu_special): Simulation of some 68HC12 instructions.
843 (cpu_exg): New function.
844 (cpu_dbcc): Likewise.
845 (cpu_fetch_relbranch16): Likewise.
846 (cpu_push_all): Push according to 68HC11 or 68HC12.
847 (cpu_move16): Likewise.
848 (cpu_move8): Likewise.
849 (cpu_get_indexed_operand16): Likewise.
850 (cpu_get_indexed_operand8): Likewise.
851 (cpu_get_indexed_operand_addr): Likewise.
852 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
853 (cpu_reset): Setup INIT register according to architecture.
72f4393d 854
81e09ed8
SC
855 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
856 (_sim_cpu): Keep track of the cpu being simulated.
857 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
858 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
859 (cpu_m68hc11_pop_uint8): Likewise.
860 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
861 (cpu_m68hc12_pop_uintxx): Likewise.
862 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
863 (cpu_fetch_relbranch16): Likewise.
864 (cpu_interp_m6811): Rename of cpu_interp.
72f4393d 865 (cpu_interp_m6812): New function.
81e09ed8
SC
866 * interp.c (free_state): New function.
867 (dev_list_68hc12): New table.
868 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
869 (sim_hw_configure): New function.
870 (sim_prepare_for_program): New function.
871 (sim_open): Use above new functions.
872 (sim_close): Call free_state().
873 (sim_info): Print info according to cpu.
874 (sim_create_inferior): Use sim_prepare_for_program.
875 (sim_do_command): Configure the hardware after a change of the
876 architecture.
877
11115521
SC
8782001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
879
880 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
881 pending interrupts.
882 * interrupts.c (interrupts_process): Keep track of the last number
883 of masked insn cycles.
884 (interrupts_initialize): Clear last number of masked insn cycles.
885 (interrupts_info): Report them.
72f4393d
L
886 (interrupts_update_pending): Compute clear and set masks of
887 interrupts and clear the interrupt bits before setting them
11115521
SC
888 (due to SCI interrupt sharing).
889 * interrupts.h (struct interrupts): New members last_mask_cycles
890 and xirq_last_mask_cycles.
891
b93775f5
SC
8922000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
893
894 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
895 instead of a hard-coded value.
896 (m68hc11cpu_io_write_buffer): Likewise.
897 (dv_m68hc11_descriptor): Define a 68hc12 device.
898 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
899 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
900 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
901 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
902
639aa4f7
SC
9032000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
904
905 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
906 (m68hc11cpu_delete): Delete handler to detach the address space.
907
6e73e7ed
SC
9082000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
909
910 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
911 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
912 instead of free and malloc.
913
5f186447
SC
9142000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
915
916 * Makefile.in: Was missing from initial patch.
917
9830501b
SC
9182000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
919
920 * interp.c (sim_store_register): Remove soft register hack.
921 (sim_fetch_register): Likewise.
922 (sim_create_inferior): Likewise.
923 * sim-main.h: Likewise.
924
a8afa79a
SC
9252000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
926
927 * interrupts.c (interrupts_update_pending): Clear the mask of
928 pending interrupts here.
929 (interrupts_get_current): Don't clear the mask of pending interrupts.
930
2990a9f4
SC
9312000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
932
933 * sim-main.h: Define cycle_to_string.
72f4393d 934 * dv-m68hc11tim.c (cycle_to_string): New function to translate
2990a9f4
SC
935 the cpu cycle into some formatted time string.
936 (m68hc11tim_print_timer): Use it.
937 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
938 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
939 * interrupts.c (interrupts_info): Likewise.
940 * m68hc11_sim.c (cpu_info): Likewise.
941
401493c8
SC
9422000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
943
944 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
945 interrupt and compare events accurately. Take into account the
946 pending ticks not processed by the simulator yet (introduced a shift).
947 (m68hc11_port_event): Reset the timer interrupt delays.
948 (m68hc11tim_io_read_buffer): Be able to read several bytes.
949 (m68hc11tim_io_write_buffer): Likewise for write.
950 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
951
4d72d17a
SC
9522000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
953
954 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
955 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
956 (m68hc11spi_info): Clarify the status report
957 of the SPI when a byte is being sent.
958 (m68hc11spi_clock): Fix the spi send frame.
72f4393d 959
63348d04
SC
9602000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
961
962 * sim-main.h (m68hc11_map_level): Define level of address mappings.
963 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
964 whether the eeprom is currently mapped or not.
965 (m68hc11eepr_port_event): Use the flag to see if we must unmap
966 or map the eeprom. Update the flag to reflect the current state.
967 Use M6811_EEPROM_LEVEL when mapping the eeprom.
968 (m68hc11eepr_finish): Remove overlap hack.
969 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
970 config and control registers.
971 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
972 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
973 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
974 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
975 (attach_m68hc11spi_regs): Likewise.
976 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
977 (attach_m68hc11tim_regs): Likewise.
978 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
979 (attach_m68hc11sio_regs): Likewise.
980 * interp.c (sim_open): Likewise.
981 * dv-nvram.c (attach_nvram_regs): Likewise.
982
5d031c16
AC
983Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
984
985 * configure, config.in: Regenerate.
986
e0709f50
AC
9872000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
988
989 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
990 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
991 (dv_m6811_detach_address_callback): New function to detach a
992 device from an address space.
993 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
994 config register according to --cpu-config option.
995 * sim-main.h (_sim_cpu): Add cpu_config member.
996 * interp.c (sim_open): Delete specific simulator options.
997 * m68hc11_sim.c (cpu_option_handler): New options
998 --emulos and -cpu-config <val> to configure the simulator.
999 (cpu_initialize): Initialize cpu_config member.
1000
10012000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1002
1003 * emulos.c: Fix indentation and comments.
1004 * gencode.c: Likewise.
1005 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
1006 (m68hc11tim_io_write_buffer): Write compare registers and
1007 setup compare event.
1008 * interp.c: Remove unused global variables.
1009 * interrupts.c (idefs): New compare interrupts.
1010 Fix indentation and comments.
1011 * interrupts.h: Likewise.
1012
10132000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1014
1015 * dv-m68hc11sio.c: Fix indentation and comments.
1016 Remove INT_PORT.
1017 * dv-m68hc11.c: Fix indentation and comments.
1018 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
1019 * m68hc11_sim.c (cpu_reset): To here.
1020 * dv-m68hc11eepr.c: Fix indentation and comments.
72f4393d 1021
e0709f50
AC
10222000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1023
1024 * dv-nvram.c: New file, rename from dv-pram.c.
1025 * dv-pram.c: Delete file.
1026 * sim-main.h: Incorporate m68hc11_sim.h.
1027 * m68hc11_sim.h: Delete file.
1028 * configure.in: Rename pram into nvram.
1029 * interp.c (sim_open): Likewise in creation of device tree.
72f4393d 1030
e0709f50
AC
10312000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1032
1033 * interp.c (sim_open): Create the SPI device.
1034 * dv-m68hc11spi.c: New file for SPI device simulation.
1035 * configure.in (hw_extra_devices): Add SPI device.
1036
10372000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1038
1039 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
1040 (interrupts_process): Separate IRQ and XIRQ accounting.
1041 (interrupts_info): Report XIRQ accounting.
1042 * interrupts.h (struct interrupts): Added accounting for XIRQ.
1043
10442000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
1045
1046 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
1047 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
72f4393d 1048 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
e0709f50
AC
1049 configuration from the 'mode' device tree property.
1050 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
1051 configuration.
1052
10532000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
1054
1055 * sim-main.h: Remove WITH_TARGET_* defines.
1056 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
1057
10582000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
1059
1060 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
1061 1200 baud when cpu is in bootstrap mode.
1062
1063 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
1064 write in the TCTN timer register.
1065
1066 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
1067 by 4 to obtain the E clock frequency.
1068 (sccr2_desc): Use M6811_TIE for TIE bit.
1069 (m68hc11sio_info): Fix baud rate report.
1070
1071 * dv-m68hc11tim.c (to_realtime): Likewise.
1072
1073 * interp.c (sim_open): When building device tree, only provide
1074 devices that do not exist yet.
1075
1076 * emulos.c: Fix compilation pb under Windows.
1077
1078 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
1079 from the 'clock' property.
1080
10812000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
1082
1083 * m68hc11_sim.h (*_REGNUM): Define.
1084 (_sim_cpu): New member cpu_page0_reg table.
1085 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
1086 addresses of soft registers in .page0.
72f4393d 1087 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
e0709f50
AC
1088 to get/set soft registers.
1089
10901999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
1091
1092 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
1093 returning random values.
1094
10951999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
1096
1097 * gencode.c: Fix "subb N,x" that used a instead of b.
1098
10991999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
1100
1101 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
1102
11031999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
1104
1105 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
1106
11071999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
1108
1109 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
1110 register region in the m68hc11cpu struct.
1111 (m68hc11cpu_io_write): When the IO mapping addres changes,
1112 detach the register region and re-attach it at the new address.
1113 (m68hc11cpu_io_read_buffer): Renamed base_address into
1114 attach_address.
1115 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
1116 to m68hc11cpu_io_write.
1117
11181999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
1119
1120 * gencode.c: For sbc8, check the carry and increment the source
1121 before trying to set the carry for the result.
1122
11231999-05-24 John S. Kallal <kallal@voicenet.com>
72f4393d 1124
e0709f50
AC
1125 * interp.c (sim_get_info): Don't crash if the command line is 0.
1126 Define prototype for sim_get_info() and init_system().
1127 (sim_info): Correct call to sim_get_info().
72f4393d 1128
e0709f50
AC
11291999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
1130
1131 * configure.in: Recognize m6811-*-*.
1132 * configure: Regenerate.
1133 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
1134 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
1135 Correct the computation of carry of 8 and 16-bits add and subtract.
1136 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
1137 overflow set in a different manner than add).
1138
11391999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
1140
1141 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
1142 trace message.
1143 * interp.c (sim_open, sim_create_inferior): Initialize the
1144 cpu_elf_start from the ELF header.
1145 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
1146 (cpu_restart): Use cpu_elf_start as the starting address when
1147 the flag is set.
1148 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
1149 exits the simulator (exit status is in D).
1150 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
1151 cpu_elf_star to start execution at address specified in ELF file.
1152
11531999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
1154
1155 * Makefile.in, config.in, configure, configure.in: New files.
1156 * gencode.c: New file, generation of 68HC11 interpreter.
1157 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
1158 for interpreter.
1159 * interrupts.c, interrupts.h: New files, management of interrupts.
72f4393d 1160 * interp.c, sim-main.h,
e0709f50
AC
1161 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
1162 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
1163 68HC11 (dv-pram.c is generic and could probably migrate to common).
1164 * emulos.c: New file, basic emulation of some os.