]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
df68e12b
MF
12021-05-14 Mike Frysinger <vapier@gentoo.org>
2
3 * sim-main.h: Update include path.
4
8a16cc4b
MF
52021-05-07 Mike Frysinger <vapier@gentoo.org>
6
7 * dv-m68hc11tim.c (cycle_to_string): Increase buf to 128 bytes.
8 Merge two sprintf buf calls.
9
8e78e9b9
MF
102021-05-06 Mike Frysinger <vapier@gentoo.org>
11
12 * interp.c (sim_hw_configure): Change %lx to %x in format strings.
13 * configure.ac: Delete SIM_AC_OPTION_WARNINGS call.
14 * configure: Regenerate.
15
8852d028
MF
162021-05-06 Mike Frysinger <vapier@gentoo.org>
17
18 * emulos.c: Include errno.h & stdio.h.
19 (emul_write): Print a warning when the write fails.
20
bf06b2a2
MF
212021-05-04 Mike Frysinger <vapier@gentoo.org>
22
23 * dv-m68hc11.c (struct m68hc11cpu): Change attach_size to unsigned int.
24 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Cast buffer to const char*.
25
aa0fca16
MF
262021-05-04 Mike Frysinger <vapier@gentoo.org>
27
28 * configure: Regenerate.
29
fe348617
MF
302021-05-01 Mike Frysinger <vapier@gentoo.org>
31
32 * config.in, configure: Regenerate.
33
9d903352
MF
342021-04-23 Mike Frysinger <vapier@gentoo.org>
35
36 * configure.ac (SIM_AC_OPTION_HARDWARE): Delete first two args.
37 * configure: Regenerate.
38
19f6a43c
TT
392021-04-22 Tom Tromey <tom@tromey.com>
40
41 * configure, config.in: Rebuild.
42
d6581fcd
TT
432021-04-22 Tom Tromey <tom@tromey.com>
44
45 * Makefile.in (INCLUDE): Remove.
46
e7d8f1da
TT
472021-04-22 Tom Tromey <tom@tromey.com>
48
49 * Makefile.in (interp.o): Remove.
50
efd82ac7
TT
512021-04-22 Tom Tromey <tom@tromey.com>
52
53 * configure: Rebuild.
54
2662c237
MF
552021-04-21 Mike Frysinger <vapier@gentoo.org>
56
57 * aclocal.m4: Regenerate.
58
1f195bc3
SM
592021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
60
61 * configure: Regenerate.
62
37e9f182
MF
632021-04-18 Mike Frysinger <vapier@gentoo.org>
64
65 * configure: Regenerate.
66
d5a71b11
MF
672021-04-12 Mike Frysinger <vapier@gentoo.org>
68
69 * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
70
c2783492
MF
712021-04-02 Mike Frysinger <vapier@gentoo.org>
72
73 * aclocal.m4, configure: Regenerate.
74
c6c7769d
MF
752021-03-13 Mike Frysinger <vapier@gentoo.org>
76
77 * Makefile.in (gencode.o): New rule.
78 (gencode): Call LINK_FOR_BUILD.
79
ebe9564b
MF
802021-02-28 Mike Frysinger <vapier@gentoo.org>
81
82 * configure: Regenerate.
83
760b3e8b
MF
842021-02-21 Mike Frysinger <vapier@gentoo.org>
85
86 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
87 * aclocal.m4, configure: Regenerate.
88
136da8cd
MF
892021-02-13 Mike Frysinger <vapier@gentoo.org>
90
91 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
92 * aclocal.m4, configure: Regenerate.
93
aa09469f
MF
942021-02-06 Mike Frysinger <vapier@gentoo.org>
95
96 * configure: Regenerate.
97
683b8d96
MF
982021-01-30 Mike Frysinger <vapier@gentoo.org>
99
100 * dv-m68hc11tim.c (cycle_to_string): Change llu to PRIi64.
101
b9e016f5
MF
1022021-01-30 Mike Frysinger <vapier@gentoo.org>
103
104 * m68hc11_sim.c (cpu_set_sp): Add static markings.
105 (cpu_get_reg, cpu_get_src_reg, cpu_set_dst_reg,
106 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8): Likewise.
107
fb8d4e59
MF
1082021-01-30 Mike Frysinger <vapier@gentoo.org>
109
110 * interp.c (sim_get_info, sim_board_reset): Pass %s to sim_hw_parse.
111
ee64caae
MF
1122021-01-30 Mike Frysinger <vapier@gentoo.org>
113
114 * dv-m68hc11.c, m68hc11_sim.c: Include stdlib.h.
115
88f68ee2
MF
1162021-01-30 Mike Frysinger <vapier@gentoo.org>
117
118 * configure.ac (SIM_AC_OPTION_HARDWARE): Inline variables.
119 * configure: Regenerate.
120
68ed2854
MF
1212021-01-11 Mike Frysinger <vapier@gentoo.org>
122
123 * config.in, configure: Regenerate.
124
50df264d
MF
1252021-01-09 Mike Frysinger <vapier@gentoo.org>
126
127 * configure: Regenerate.
128
bf470982
MF
1292021-01-09 Mike Frysinger <vapier@gentoo.org>
130
131 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
132 * configure: Regenerate.
133
46f900c0
MF
1342021-01-08 Mike Frysinger <vapier@gentoo.org>
135
136 * configure: Regenerate.
137
dfb856ba
MF
1382021-01-04 Mike Frysinger <vapier@gentoo.org>
139
140 * configure: Regenerate.
141
5c887dd5
JB
1422017-09-06 John Baldwin <jhb@FreeBSD.org>
143
144 * configure: Regenerate.
145
13a590ca
MF
1462017-02-13 Mike Frysinger <vapier@gentoo.org>
147
148 * gencode.c: Include libiberty.h.
149 (TABLE_SIZE): Delete.
150 (find_opcode_pattern): Change TABLE_SIZE to ARRAY_SIZE.
151 (gen_interpreter): Likewise.
152 * interrupts.c (TableSize): Delete.
153 (interrupts_update_pending): Change TableSize to ARRAY_SIZE.
154
fa0843f5
MF
1552016-08-16 Mike Frysinger <vapier@gentoo.org>
156
157 * sim-main.h (inline): Delete define.
158 (phys_to_virt): Change inline to STATIC_INLINE.
159 (memory_read8, memory_write8, memory_read16, memory_write16,
160 cpu_ccr_update_tst16, cpu_ccr_update_shift8, cpu_ccr_update_shift16,
161 cpu_ccr_update_add8, cpu_ccr_update_sub8, cpu_ccr_update_add16,
162 cpu_ccr_update_sub16, cpu_m68hc11_push_uint8, cpu_m68hc11_push_uint16,
163 cpu_m68hc11_pop_uint8, cpu_m68hc11_pop_uint16, cpu_m68hc12_push_uint8,
164 cpu_m68hc12_push_uint16, cpu_m68hc12_pop_uint8,
165 cpu_m68hc12_pop_uint16, cpu_fetch8, cpu_fetch16): Likewise.
166
5357150c
MF
1672016-08-15 Mike Frysinger <vapier@gentoo.org>
168
169 * interp.c (sim_get_bank_parameters): Delete abfd arg.
170 Replace all symbol lookup code with calls to trace_sym_value.
171 (sim_prepare_for_program): Update sim_get_bank_parameters call.
172
6f64fd48
MF
1732016-08-13 Mike Frysinger <vapier@gentoo.org>
174
175 * dv-m68hc11.c (m68hc11cpu_port_event): Adjust cpu prototype style.
176 * dv-m68hc11spi.c (m68hc11spi_port_event): Likewise.
177 * dv-m68hc11tim.c (m68hc11tim_print_timer): Likewise.
178 * emulos.c (emul_bench): Likewise.
179 (emul_write): Likewise. Also rename state to cpu.
180 (emul_os): Rename proc to cpu.
181 * gencode.c: Rename proc to cpu.
182 * interrupts.c (interrupts_initialize): Likewise.
183 * interrupts.h (interrupts): Adjust cpu type.
184 (interrupts_initialize): Likewise.
185 * m68hc11_sim.c (cpu_get_reg): Adjust cpu prototype style.
186 (cpu_get_src_reg, cpu_set_dst_reg, cpu_set_reg,
187 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8,
188 cpu_get_indexed_operand16, cpu_dbcc, cpu_exg): Likewise.
189 (cpu_ccr_update_tst8): Rename proc to cpu.
190 * sim-main.h: Rename PROC and proc to cpu.
191
527aaa4a
MF
1922016-08-13 Mike Frysinger <vapier@gentoo.org>
193
194 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Drop cast with
195 return value of hw_malloc.
196 * dv-m68hc11sio.c (m68hc11sio_rx_poll): Mark static.
197 (m68hc11sio_tx_poll): Likewise.
198 * dv-m68hc11spi.c (m68hc11spi_clock): Likewise.
199 * dv-m68hc11tim.c (m68hc11tim_timer_event): Likewise.
200 * dv-nvram.c (attach_nvram_regs): Drop cast with
201 return value of hw_malloc.
202 * emulos.c (emul_bench): Mark static.
203 (emul_write): Likewise.
204 (emul_exit): Likewise.
205 * gencode.c: Include stdio.h.
206 (gen_function_entry): Unify two print lines.
207 (cmp_opcode): Mark args const.
208
ce39bd38
MF
2092016-01-10 Mike Frysinger <vapier@gentoo.org>
210
211 * config.in, configure: Regenerate.
212
35656e95
MF
2132016-01-10 Mike Frysinger <vapier@gentoo.org>
214
215 * configure: Regenerate.
216
16f7876d
MF
2172016-01-10 Mike Frysinger <vapier@gentoo.org>
218
219 * configure: Regenerate.
220
e19418e0
MF
2212016-01-10 Mike Frysinger <vapier@gentoo.org>
222
223 * configure: Regenerate.
224
99d8e879
MF
2252016-01-10 Mike Frysinger <vapier@gentoo.org>
226
227 * configure: Regenerate.
228
347fe5bb
MF
2292016-01-10 Mike Frysinger <vapier@gentoo.org>
230
231 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
232 * configure: Regenerate.
233
22be3fbe
MF
2342016-01-10 Mike Frysinger <vapier@gentoo.org>
235
236 * configure: Regenerate.
237
0dc73ef7
MF
2382016-01-10 Mike Frysinger <vapier@gentoo.org>
239
240 * configure: Regenerate.
241
936df756
MF
2422016-01-09 Mike Frysinger <vapier@gentoo.org>
243
244 * config.in, configure: Regenerate.
245
2e3d4f4d
MF
2462016-01-06 Mike Frysinger <vapier@gentoo.org>
247
248 * interp.c (sim_open): Mark argv const.
249 (sim_create_inferior): Mark argv and env const.
250
9bbf6f91
MF
2512016-01-04 Mike Frysinger <vapier@gentoo.org>
252
253 * configure: Regenerate.
254
77cf2ef5
MF
2552016-01-03 Mike Frysinger <vapier@gentoo.org>
256
257 * interp.c (sim_open): Update sim_parse_args comment.
258
61971b86
MF
2592016-01-03 Mike Frysinger <vapier@gentoo.org>
260
261 * sim-main.h (sim_state): Delete devices member.
262
0cb8d851
MF
2632016-01-03 Mike Frysinger <vapier@gentoo.org>
264
265 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
266 * configure: Regenerate.
267
1ac72f06
MF
2682016-01-02 Mike Frysinger <vapier@gentoo.org>
269
270 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
271 * configure: Regenerate.
272
8e26d677
MF
2732015-12-30 Mike Frysinger <vapier@gentoo.org>
274
275 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
276 * configure: Regenerate.
277
eca4255a
MF
2782015-12-30 Mike Frysinger <vapier@gentoo.org>
279
280 * imterp.c (sim_open): Delete current_alignment and
281 current_target_byte_order assignments.
282 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
283 * configure: Regenerate.
284
e1211e55
MF
2852015-12-30 Mike Frysinger <vapier@gentoo.org>
286
287 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
288 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
289 (sim_store_register): Rename to ...
290 (m68hc11_reg_store): ... this. Delete local cpu var.
291 (sim_fetch_register): Rename to ...
292 (m68hc11_reg_fetch): ... this. Delete local cpu var.
293
5e744ef8
MF
2942015-12-27 Mike Frysinger <vapier@gentoo.org>
295
296 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
297
1b393626
MF
2982015-12-26 Mike Frysinger <vapier@gentoo.org>
299
300 * config.in, configure: Regenerate.
301
26936211
MF
3022015-12-24 Mike Frysinger <vapier@gentoo.org>
303
304 * sim-main.h (SIM_HANDLES_LMA): Delete.
305
84e8e361
MF
3062015-12-24 Mike Frysinger <vapier@gentoo.org>
307
308 * sim-main.h (WITH_WATCHPOINTS): Delete.
309
cdf850e9
MF
3102015-11-17 Mike Frysinger <vapier@gentoo.org>
311
312 * sim-main.h (WITH_MODULO_MEMORY): Delete.
313
797eee42
MF
3142015-11-15 Mike Frysinger <vapier@gentoo.org>
315
316 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
317
d2dfd242
MF
3182015-11-14 Mike Frysinger <vapier@gentoo.org>
319
320 * Makefile.in (SIM_OBJS): Delete sim-load.o.
321
6e4f085c
MF
3222015-11-14 Mike Frysinger <vapier@gentoo.org>
323
324 * interp.c (sim_close): Delete.
325
8d0978fb
MF
3262015-06-23 Mike Frysinger <vapier@gentoo.org>
327
328 * configure: Regenerate.
329
a3487082
MF
3302015-06-12 Mike Frysinger <vapier@gentoo.org>
331
332 * configure: Regenerate.
333
306f4178
MF
3342015-06-12 Mike Frysinger <vapier@gentoo.org>
335
336 * configure: Regenerate.
337
09896bd2
MF
3382015-06-11 Mike Frysinger <vapier@gentoo.org>
339
340 * interp.c (interrupt_names): Delete.
341
a84f8df0
MF
3422015-06-11 Mike Frysinger <vapier@gentoo.org>
343
344 * Makefile.in (SIM_OBJS): Add sim-resume.o
345 * interp.c (has_stepped, sim_resume): Delete.
346
5d19c366
MF
3472015-06-11 Mike Frysinger <vapier@gentoo.org>
348
349 * interp.c (INLINE): Delete define.
350
0a13382c
NC
3512015-04-29 Nick Clifton <nickc@redhat.com>
352
353 PR 18273
354 * gencode.c (gen_fetch_operands): Remove unreachable code.
355
20bca71d
MF
3562015-04-18 Mike Frysinger <vapier@gentoo.org>
357
358 * sim-main.h (SIM_CPU): Delete.
359
7e83aa92
MF
3602015-04-18 Mike Frysinger <vapier@gentoo.org>
361
362 * sim-main.h (sim_cia): Delete.
363
034685f9
MF
3642015-04-17 Mike Frysinger <vapier@gentoo.org>
365
366 * sim-main.h (CIA_GET, CIA_SET): Delete.
367
78e9aa70
MF
3682015-04-15 Mike Frysinger <vapier@gentoo.org>
369
370 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
371 * sim-main.h (STATE_CPU): Delete.
372
bf12d44e
MF
3732015-04-13 Mike Frysinger <vapier@gentoo.org>
374
375 * configure: Regenerate.
376
bea3f671
MF
3772015-04-13 Mike Frysinger <vapier@gentoo.org>
378
379 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
380 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
381 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
382 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
383 (sim_pc_get): Delete.
384 * sim-main.h (SIM_CPU): Define.
385 (STATE_CPU): Drop &.
386 (struct sim_state): Change cpu to an array of pointers.
387
122bbfb5
MF
3882015-04-06 Mike Frysinger <vapier@gentoo.org>
389
390 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
391
2b6ca062
MF
3922015-03-31 Mike Frysinger <vapier@gentoo.org>
393
394 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
395 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
396 variable to restricted.
397 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
398
05f53ed6
MF
3992015-03-24 Mike Frysinger <vapier@gentoo.org>
400
401 * interp.c (sim_pc_get): New function.
402
523ba8f9
MF
4032015-03-24 Mike Frysinger <vapier@gentoo.org>
404
405 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
406 sim_size, sim_trace): Delete.
407 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
408
30452bbe
MF
4092015-03-24 Mike Frysinger <vapier@gentoo.org>
410
411 * configure: Regenerate.
412
64dd13df
MF
4132015-03-23 Mike Frysinger <vapier@gentoo.org>
414
415 * configure: Regenerate.
416
49cd1634
MF
4172015-03-23 Mike Frysinger <vapier@gentoo.org>
418
419 * configure: Regenerate.
420 * configure.ac (m68hc11_extra_objs): Delete.
421 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
422 (SIM_EXTRA_OBJS): Delete.
423
ae7d0cac
MF
4242015-03-16 Mike Frysinger <vapier@gentoo.org>
425
426 * config.in, configure: Regenerate.
427
465fb143
MF
4282015-03-14 Mike Frysinger <vapier@gentoo.org>
429
430 * Makefile.in (SIM_RUN_OBJS): Delete.
431
5cddc23a
MF
4322015-03-14 Mike Frysinger <vapier@gentoo.org>
433
434 * configure.ac (AC_CHECK_HEADERS): Delete.
435 * aclocal.m4, configure: Regenerate.
436
2974be62
AM
4372014-08-19 Alan Modra <amodra@gmail.com>
438
439 * configure: Regenerate.
440
faa743bb
RM
4412014-08-15 Roland McGrath <mcgrathr@google.com>
442
443 * configure: Regenerate.
444 * config.in: Regenerate.
445
1a8a700e
MF
4462014-03-04 Mike Frysinger <vapier@gentoo.org>
447
448 * configure: Regenerate.
449
bf3d9781
AM
4502013-09-23 Alan Modra <amodra@gmail.com>
451
452 * configure: Regenerate.
453
31e6ad7d
MF
4542013-06-03 Mike Frysinger <vapier@gentoo.org>
455
456 * aclocal.m4, configure: Regenerate.
457
d3685d60
TT
4582013-05-10 Freddie Chopin <freddie_chopin@op.pl>
459
460 * configure: Rebuild.
461
1517bd27
MF
4622013-03-26 Mike Frysinger <vapier@gentoo.org>
463
464 * configure: Regenerate.
465
256139f5
JS
4662013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
467
468 * configure.ac: Use $SIM_DV_SOCKSER_O.
469 * configure: Regenerated.
470
5f3ef9d0
JB
4712012-06-15 Joel Brobecker <brobecker@adacore.com>
472
473 * config.in, configure: Regenerate.
474
2232061b
MF
4752012-03-24 Mike Frysinger <vapier@gentoo.org>
476
477 * aclocal.m4, config.in, configure: Regenerate.
478
db2e4d67
MF
4792011-12-03 Mike Frysinger <vapier@gentoo.org>
480
481 * aclocal.m4: New file.
482 * configure: Regenerate.
483
4399a56b
MF
4842011-10-19 Mike Frysinger <vapier@gentoo.org>
485
486 * configure: Regenerate after common/acinclude.m4 update.
487
9c082ca8
MF
4882011-10-17 Mike Frysinger <vapier@gentoo.org>
489
490 * configure.ac: Change include to common/acinclude.m4.
491
6ffe910a
MF
4922011-10-17 Mike Frysinger <vapier@gentoo.org>
493
494 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
495 call. Replace common.m4 include with SIM_AC_COMMON.
496 * configure: Regenerate.
497
2419798b
MF
4982011-07-05 Mike Frysinger <vapier@gentoo.org>
499
500 * interp.c (sim_do_command): Delete.
501
3725885a
RW
5022010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
503
504 * configure: Regenerate.
505
d6416cdc
RW
5062009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
507
81ecdfbb
RW
508 * config.in: Regenerate.
509 * configure: Likewise.
510
d6416cdc
RW
511 * configure: Regenerate.
512
b5bd9624
HPN
5132008-07-11 Hans-Peter Nilsson <hp@axis.com>
514
515 * configure: Regenerate to track ../common/common.m4 changes.
516 * config.in: Ditto.
517
6efef468 5182008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
519 Daniel Jacobowitz <dan@codesourcery.com>
520 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
521
522 * configure: Regenerate.
523
b1bfc053
HPN
5242006-12-21 Hans-Peter Nilsson <hp@axis.com>
525
526 * config.in: Regenerate.
527
e85e3205
RE
5282006-06-13 Richard Earnshaw <rearnsha@arm.com>
529
530 * configure: Regenerated.
531
2f0122dc
DJ
5322006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
533
534 * configure: Regenerated.
535
20e95c23
DJ
5362006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
537
538 * configure: Regenerated.
539
b3a3ffef
HPN
5402006-03-29 Hans-Peter Nilsson <hp@axis.com>
541
542 * configure: Regenerate.
543
2b193c4a
MK
5442005-03-23 Mark Kettenis <kettenis@gnu.org>
545
546 * configure: Regenerate.
547
35695fd6
AC
5482005-01-14 Andrew Cagney <cagney@gnu.org>
549
550 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
551 explicit call to AC_CONFIG_HEADER.
552 * configure: Regenerate.
553
38f48d72
AC
5542005-01-11 Andrew Cagney <cagney@localhost.localdomain>
555
556 * configure: Regenerated to track ../common/aclocal.m4 changes.
557
b7026657
AC
5582005-01-07 Andrew Cagney <cagney@gnu.org>
559
560 * configure.ac: Rename configure.in, require autoconf 2.59.
561 * configure: Re-generate.
562
379832de
HPN
5632004-12-08 Hans-Peter Nilsson <hp@axis.com>
564
565 * configure: Regenerate for ../common/aclocal.m4 update.
566
84b11e2e
AM
5672004-06-15 Alan Modra <amodra@bigpond.net.au>
568
569 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
570 instead of bfd_get_section_size_before_reloc.
571
a685700c
SC
5722003-08-08 Stephane Carrez <stcarrez@nerim.fr>
573
574 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
575 control the translation.
576 (m68hc11tim_print_timer): Update cycle_to_string conversion.
577 (m68hc11tim_timer_event): Fix handling of output
578 compare register with its interrupts.
579 (m68hc11tim_io_write_buffer): Check output compare
580 after setting M6811_TMSK1.
581 (m68hc11tim_io_read_buffer): Fix compilation warning.
582 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
583 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
584 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
585 * interrupts.c (interrupts_info): Likewise.
586 (interrupts_reset): Recognize bootstrap mode.
587 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
588 (_sim_cpu): Add cpu_start_mode.
589 (cycle_to_string): Add flags member.
590 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
591 (cpu_options): Declare new option bootstrap.
592 (cpu_option_handler): Handle it.
593 (cpu_info): Update call to cycle_to_string.
594
77342e5e
SC
5952003-08-08 Stephane Carrez <stcarrez@nerim.fr>
596
597 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
598 the physical address in virtual address.
599 (struct _sim_cpu): Add memory bank members.
600 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
601 * interp.c (sim_hw_configure): Create memory bank according to memory
602 bank parameters.
603 (sim_get_bank_parameters): New function to obtain memory bank config
604 from the symbol table.
605 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
606 (sim_open): Call sim_prepare_for_program.
607 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
608 to check if address is within bank window.
609 (m68hc11cpu_io_read_buffer): Likewise.
610 (attach_m68hc11_regs): Map the memory bank according to memory bank
611 parameters.
612
53b3cd22
SC
6132003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
614
615 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
616
962e9d85
SC
6172003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
618 Gary Piercey <gpiercey@northstar-technical.com>
619
620 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
621 * sim-main.h (print_io_word): Declare.
622 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
623 (tflg1_desc): Likewise for TFLG1.
624 (m68hc11tim_info): Print input and output compare registers
625
9b9f7b3c
SC
6262003-03-02 Stephane Carrez <stcarrez@nerim.fr>
627
628 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
629 to 32 to support memory bank switching; temporarily use 32-bit for
630 WORD_BITSIZE to avoid a bug in sim-common.
631
00416c6e
SC
6322003-03-01 Stephane Carrez <stcarrez@nerim.fr>
633
634 * interp.c (sim_fetch_register): Only store a single byte for
635 1 byte registers.
636
6b4a8935
AC
6372003-02-27 Andrew Cagney <cagney@redhat.com>
638
639 * interp.c (sim_prepare_for_program, sim_open)
640 (sim_create_inferior): Rename _bfd to bfd.
641
099d1b50
SC
6422002-08-13 Stephane Carrez <stcarrez@nerim.fr>
643
644 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
645
31c7c532
SC
6462002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
647
72f4393d 648 * interp.c (sim_prepare_for_program): Look up the image for the
31c7c532
SC
649 reset vector and set cpu_use_elf_start to 1 if not found.
650 (sim_open): Do not set cpu_use_elf_start.
651
39762100
SC
6522002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
653
654 * interp.c (sim_hw_configure): Return 1 for success.
655 (sim_prepare_for_program): Use the sim_hw_configure exit code to
656 return SIM_RC_FAIL.
657
7230d809
SC
6582002-08-13 Stephane Carrez <stcarrez@nerim.fr>
659
660 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
661 bank window to some virtual address to read from extended memory.
662 (m68hc11cpu_io_write_buffer): Likewise for writing.
ca156d78 663 (attach_m68hc11_regs): When use_bank property is defined, attach
7230d809 664 to the 68HC12 16K memory bank window.
7230d809
SC
665 * interp.c (sim_hw_configure): Create memory region for banked
666 memory.
667
dcceded2
SC
6682002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
669
670 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
671 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
672 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
673
abea9e28
SC
6742002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
675
676 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
677 when IO mapping changed, not when internal RAM mapping is changed.
678
63f36def
SC
6792002-08-13 Stephane Carrez <stcarrez@nerim.fr>
680
681 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
682 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
683 (m6811_regs): Add page register.
684 (cpu_set_page, cpu_get_page): New macros.
685 (phys_to_virt): New function.
686 (cpu_get_indexed_operand_addr, cpu_return): Declare.
687 * gencode.c: Identify indirect addressing mode for call and fix daa.
72f4393d 688 (gen_function_entry): New param to tell if src8/dst8 locals are
63f36def
SC
689 necessary.
690 (gen_interpreter): Use it to avoid generation of unused variables.
691 * interp.c (sim_fetch_register): Allow to read page register; page
692 register, A, B and CCR are only 1 byte wide.
693 (sim_store_register): Likewise for writing.
694
c8cca39f
AC
6952002-06-16 Andrew Cagney <ac131313@redhat.com>
696
697 * configure: Regenerated to track ../common/aclocal.m4 changes.
698
3c25f8c7
AC
6992002-06-09 Andrew Cagney <cagney@redhat.com>
700
701 * Makefile.in (INCLUDE): Update path to callback.h.
702 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
703
86596dc8
SC
7042002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
705
706 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
707 (cpu_move16): Likewise.
708 (sim_memory_error): Use sim_io_printf.
709 (cpu_option_handler): Fix compilation warning.
72f4393d 710 * interp.c (sim_hw_configure): Fix compilation warning;
86596dc8
SC
711 remove m68hc12sio@2 device.
712 (sim_open): Likewise.
72f4393d 713 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
86596dc8
SC
714 flags when reset.
715 (cycle_to_string): Improve convertion of cpu cycle number.
716 (m68hc11tim_info): Print info about PACNT.
717 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
718 TCTL1 and TCTL2 registers.
719 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
720
827ec39a
SC
7212002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
722
72f4393d 723 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
827ec39a
SC
724 cpu struct.
725 (sim_hw_configure): Connect the capture input/output events.
726 * sim-main.h (_sim_cpu): New member hw_cpu.
727 (m68hc11cpu_set_oscillator): Declare.
728 (m68hc11cpu_clear_oscillator): Declare.
729 (m68hc11cpu_set_port): Declare.
730 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
731 (m68hc11cpu_ports): New input ports and output ports to reflect
732 the HC11 IOs.
733 (m68hc11_delete): Cleanup any running oscillator.
734 (attach_m68hc11_regs): Create the input oscillators.
735 (make_oscillator): New function.
736 (find_oscillator): New function.
737 (oscillator_handler): New function.
738 (reset_oscillators): New function.
739 (m68hc11cpu_port_event): Handle the new input ports.
740 (m68hc11cpu_set_oscillator): New function.
741 (m68hc11cpu_clear_oscillator): New function.
742 (get_frequency): New function.
743 (m68hc11_option_handler): New function.
744 (m68hc11cpu_set_port): New function.
745 (m68hc11cpu_io_write): Post the port output events.
746 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
747 the output port value.
748 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
749 by latching the TCNT value in the register.
750
5abb9efa
SC
7512002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
752
753 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
754 (cpu_frame_reg, cpu_print_frame): Remove.
755 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
756 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
757 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
758 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
759 * m68hc11_sim.c (cpu_find_frame): Remove.
760 (cpu_create_frame_list): Remove.
761 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
762 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
763 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
764 (cpu_update_frame): Likewise.
765 (cpu_return): Likewise.
766 (cpu_reset): Likewise.
72f4393d 767 (cpu_initialize): Likewise.
5abb9efa
SC
768 * interp.c (sim_do_command): Remove call to cpu_print_frame.
769
26128965
SC
7702002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
771
772 * interrupts.c (interrupts_reset): New function, setup interrupt
773 vector address according to cpu mode.
774 (interrupts_initialize): Move reset portion to the above.
775 (interrupt_names): New table to give a name to interrupts.
776 (idefs): Handle pulse accumulator interrupts.
777 (interrupts_info): Print the interrupt history.
778 (interrupt_option_handler): New function.
779 (interrupt_options): New table of options.
780 (interrupts_update_pending): Keep track of when interrupts are
781 raised and implement breakpoint-on-raise-interrupt.
782 (interrupts_process): Keep track of when interrupts are taken
783 and implement breakpoint-on-interrupt.
784 * interrupts.h (struct interrupt_history): Define.
785 (struct interrupt): Keep track of the interrupt history.
786 (interrupts_reset): Declare.
787 (interrupts_initialize): Update prototype.
788 * m68hc11_sim.c (cpu_reset): Reset interrupts.
789 (cpu_initialize): Cleanup.
790
eefde351
SC
7912001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
792
793 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
794 address.
795 (m68hc11eepr_port_event): Fix detach/attach logic.
796
00d0c012
SC
7972001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
798
799 * Makefile.in (SIM_OBJS): Remove sim-resume.o
800 * interp.c (sim_resume): New function from sim-resume.c, install
801 the stepping event after having processed the pending ticks.
802 (has_stepped): Likewise.
803 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
804
b51c7603
AC
8052001-07-10 Andrew Cagney <ac131313@redhat.com>
806
807 * Makefile.in (gencode): Provide explicit path to gencode.c.
808
81e09ed8
SC
8092001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
810
811 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
812 (m68hc12int.c): Generate using gencode -m6812.
813 (m68hc11int.c): Likewise with -m6811.
814
815 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
816 (m6811_page1_opcodes): Remove duplicate entries.
817 (m6811_page2_opcodes): Likewise.
818 (m6811_page3_opcodes): Likewise.
819 (m6811_page4_opcodes): Likewise.
820 (m6812_page1_opcodes): New table for 68HC12 instructions.
821 (m6812_page2_opcodes): Likewise.
822 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
823 (gen_save_result): Likewise.
824 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
825 (cmp_opcode): New function for opcode comparision.
826 (prepare_table): Sort the opcodes.
827 (gen_interpreter): Prepare all the tables and generate either
828 a 68HC11 or a 68HC12 simulator.
829 (main): New options -m6811 and -m6812.
830
831 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
832 (cpu_special): Simulation of some 68HC12 instructions.
833 (cpu_exg): New function.
834 (cpu_dbcc): Likewise.
835 (cpu_fetch_relbranch16): Likewise.
836 (cpu_push_all): Push according to 68HC11 or 68HC12.
837 (cpu_move16): Likewise.
838 (cpu_move8): Likewise.
839 (cpu_get_indexed_operand16): Likewise.
840 (cpu_get_indexed_operand8): Likewise.
841 (cpu_get_indexed_operand_addr): Likewise.
842 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
843 (cpu_reset): Setup INIT register according to architecture.
72f4393d 844
81e09ed8
SC
845 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
846 (_sim_cpu): Keep track of the cpu being simulated.
847 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
848 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
849 (cpu_m68hc11_pop_uint8): Likewise.
850 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
851 (cpu_m68hc12_pop_uintxx): Likewise.
852 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
853 (cpu_fetch_relbranch16): Likewise.
854 (cpu_interp_m6811): Rename of cpu_interp.
72f4393d 855 (cpu_interp_m6812): New function.
81e09ed8
SC
856 * interp.c (free_state): New function.
857 (dev_list_68hc12): New table.
858 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
859 (sim_hw_configure): New function.
860 (sim_prepare_for_program): New function.
861 (sim_open): Use above new functions.
862 (sim_close): Call free_state().
863 (sim_info): Print info according to cpu.
864 (sim_create_inferior): Use sim_prepare_for_program.
865 (sim_do_command): Configure the hardware after a change of the
866 architecture.
867
11115521
SC
8682001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
869
870 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
871 pending interrupts.
872 * interrupts.c (interrupts_process): Keep track of the last number
873 of masked insn cycles.
874 (interrupts_initialize): Clear last number of masked insn cycles.
875 (interrupts_info): Report them.
72f4393d
L
876 (interrupts_update_pending): Compute clear and set masks of
877 interrupts and clear the interrupt bits before setting them
11115521
SC
878 (due to SCI interrupt sharing).
879 * interrupts.h (struct interrupts): New members last_mask_cycles
880 and xirq_last_mask_cycles.
881
b93775f5
SC
8822000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
883
884 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
885 instead of a hard-coded value.
886 (m68hc11cpu_io_write_buffer): Likewise.
887 (dv_m68hc11_descriptor): Define a 68hc12 device.
888 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
889 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
890 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
891 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
892
639aa4f7
SC
8932000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
894
895 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
896 (m68hc11cpu_delete): Delete handler to detach the address space.
897
6e73e7ed
SC
8982000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
899
900 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
901 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
902 instead of free and malloc.
903
5f186447
SC
9042000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
905
906 * Makefile.in: Was missing from initial patch.
907
9830501b
SC
9082000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
909
910 * interp.c (sim_store_register): Remove soft register hack.
911 (sim_fetch_register): Likewise.
912 (sim_create_inferior): Likewise.
913 * sim-main.h: Likewise.
914
a8afa79a
SC
9152000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
916
917 * interrupts.c (interrupts_update_pending): Clear the mask of
918 pending interrupts here.
919 (interrupts_get_current): Don't clear the mask of pending interrupts.
920
2990a9f4
SC
9212000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
922
923 * sim-main.h: Define cycle_to_string.
72f4393d 924 * dv-m68hc11tim.c (cycle_to_string): New function to translate
2990a9f4
SC
925 the cpu cycle into some formatted time string.
926 (m68hc11tim_print_timer): Use it.
927 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
928 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
929 * interrupts.c (interrupts_info): Likewise.
930 * m68hc11_sim.c (cpu_info): Likewise.
931
401493c8
SC
9322000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
933
934 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
935 interrupt and compare events accurately. Take into account the
936 pending ticks not processed by the simulator yet (introduced a shift).
937 (m68hc11_port_event): Reset the timer interrupt delays.
938 (m68hc11tim_io_read_buffer): Be able to read several bytes.
939 (m68hc11tim_io_write_buffer): Likewise for write.
940 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
941
4d72d17a
SC
9422000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
943
944 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
945 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
946 (m68hc11spi_info): Clarify the status report
947 of the SPI when a byte is being sent.
948 (m68hc11spi_clock): Fix the spi send frame.
72f4393d 949
63348d04
SC
9502000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
951
952 * sim-main.h (m68hc11_map_level): Define level of address mappings.
953 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
954 whether the eeprom is currently mapped or not.
955 (m68hc11eepr_port_event): Use the flag to see if we must unmap
956 or map the eeprom. Update the flag to reflect the current state.
957 Use M6811_EEPROM_LEVEL when mapping the eeprom.
958 (m68hc11eepr_finish): Remove overlap hack.
959 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
960 config and control registers.
961 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
962 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
963 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
964 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
965 (attach_m68hc11spi_regs): Likewise.
966 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
967 (attach_m68hc11tim_regs): Likewise.
968 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
969 (attach_m68hc11sio_regs): Likewise.
970 * interp.c (sim_open): Likewise.
971 * dv-nvram.c (attach_nvram_regs): Likewise.
972
5d031c16
AC
973Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
974
975 * configure, config.in: Regenerate.
976
e0709f50
AC
9772000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
978
979 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
980 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
981 (dv_m6811_detach_address_callback): New function to detach a
982 device from an address space.
983 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
984 config register according to --cpu-config option.
985 * sim-main.h (_sim_cpu): Add cpu_config member.
986 * interp.c (sim_open): Delete specific simulator options.
987 * m68hc11_sim.c (cpu_option_handler): New options
988 --emulos and -cpu-config <val> to configure the simulator.
989 (cpu_initialize): Initialize cpu_config member.
990
9912000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
992
993 * emulos.c: Fix indentation and comments.
994 * gencode.c: Likewise.
995 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
996 (m68hc11tim_io_write_buffer): Write compare registers and
997 setup compare event.
998 * interp.c: Remove unused global variables.
999 * interrupts.c (idefs): New compare interrupts.
1000 Fix indentation and comments.
1001 * interrupts.h: Likewise.
1002
10032000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1004
1005 * dv-m68hc11sio.c: Fix indentation and comments.
1006 Remove INT_PORT.
1007 * dv-m68hc11.c: Fix indentation and comments.
1008 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
1009 * m68hc11_sim.c (cpu_reset): To here.
1010 * dv-m68hc11eepr.c: Fix indentation and comments.
72f4393d 1011
e0709f50
AC
10122000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1013
1014 * dv-nvram.c: New file, rename from dv-pram.c.
1015 * dv-pram.c: Delete file.
1016 * sim-main.h: Incorporate m68hc11_sim.h.
1017 * m68hc11_sim.h: Delete file.
1018 * configure.in: Rename pram into nvram.
1019 * interp.c (sim_open): Likewise in creation of device tree.
72f4393d 1020
e0709f50
AC
10212000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1022
1023 * interp.c (sim_open): Create the SPI device.
1024 * dv-m68hc11spi.c: New file for SPI device simulation.
1025 * configure.in (hw_extra_devices): Add SPI device.
1026
10272000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1028
1029 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
1030 (interrupts_process): Separate IRQ and XIRQ accounting.
1031 (interrupts_info): Report XIRQ accounting.
1032 * interrupts.h (struct interrupts): Added accounting for XIRQ.
1033
10342000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
1035
1036 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
1037 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
72f4393d 1038 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
e0709f50
AC
1039 configuration from the 'mode' device tree property.
1040 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
1041 configuration.
1042
10432000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
1044
1045 * sim-main.h: Remove WITH_TARGET_* defines.
1046 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
1047
10482000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
1049
1050 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
1051 1200 baud when cpu is in bootstrap mode.
1052
1053 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
1054 write in the TCTN timer register.
1055
1056 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
1057 by 4 to obtain the E clock frequency.
1058 (sccr2_desc): Use M6811_TIE for TIE bit.
1059 (m68hc11sio_info): Fix baud rate report.
1060
1061 * dv-m68hc11tim.c (to_realtime): Likewise.
1062
1063 * interp.c (sim_open): When building device tree, only provide
1064 devices that do not exist yet.
1065
1066 * emulos.c: Fix compilation pb under Windows.
1067
1068 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
1069 from the 'clock' property.
1070
10712000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
1072
1073 * m68hc11_sim.h (*_REGNUM): Define.
1074 (_sim_cpu): New member cpu_page0_reg table.
1075 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
1076 addresses of soft registers in .page0.
72f4393d 1077 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
e0709f50
AC
1078 to get/set soft registers.
1079
10801999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
1081
1082 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
1083 returning random values.
1084
10851999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
1086
1087 * gencode.c: Fix "subb N,x" that used a instead of b.
1088
10891999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
1090
1091 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
1092
10931999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
1094
1095 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
1096
10971999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
1098
1099 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
1100 register region in the m68hc11cpu struct.
1101 (m68hc11cpu_io_write): When the IO mapping addres changes,
1102 detach the register region and re-attach it at the new address.
1103 (m68hc11cpu_io_read_buffer): Renamed base_address into
1104 attach_address.
1105 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
1106 to m68hc11cpu_io_write.
1107
11081999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
1109
1110 * gencode.c: For sbc8, check the carry and increment the source
1111 before trying to set the carry for the result.
1112
11131999-05-24 John S. Kallal <kallal@voicenet.com>
72f4393d 1114
e0709f50
AC
1115 * interp.c (sim_get_info): Don't crash if the command line is 0.
1116 Define prototype for sim_get_info() and init_system().
1117 (sim_info): Correct call to sim_get_info().
72f4393d 1118
e0709f50
AC
11191999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
1120
1121 * configure.in: Recognize m6811-*-*.
1122 * configure: Regenerate.
1123 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
1124 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
1125 Correct the computation of carry of 8 and 16-bits add and subtract.
1126 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
1127 overflow set in a different manner than add).
1128
11291999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
1130
1131 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
1132 trace message.
1133 * interp.c (sim_open, sim_create_inferior): Initialize the
1134 cpu_elf_start from the ELF header.
1135 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
1136 (cpu_restart): Use cpu_elf_start as the starting address when
1137 the flag is set.
1138 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
1139 exits the simulator (exit status is in D).
1140 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
1141 cpu_elf_star to start execution at address specified in ELF file.
1142
11431999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
1144
1145 * Makefile.in, config.in, configure, configure.in: New files.
1146 * gencode.c: New file, generation of 68HC11 interpreter.
1147 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
1148 for interpreter.
1149 * interrupts.c, interrupts.h: New files, management of interrupts.
72f4393d 1150 * interp.c, sim-main.h,
e0709f50
AC
1151 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
1152 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
1153 68HC11 (dv-pram.c is generic and could probably migrate to common).
1154 * emulos.c: New file, basic emulation of some os.