]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
sim: m68hc11: warn when emul_write fails
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
8852d028
MF
12021-05-06 Mike Frysinger <vapier@gentoo.org>
2
3 * emulos.c: Include errno.h & stdio.h.
4 (emul_write): Print a warning when the write fails.
5
bf06b2a2
MF
62021-05-04 Mike Frysinger <vapier@gentoo.org>
7
8 * dv-m68hc11.c (struct m68hc11cpu): Change attach_size to unsigned int.
9 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Cast buffer to const char*.
10
aa0fca16
MF
112021-05-04 Mike Frysinger <vapier@gentoo.org>
12
13 * configure: Regenerate.
14
fe348617
MF
152021-05-01 Mike Frysinger <vapier@gentoo.org>
16
17 * config.in, configure: Regenerate.
18
9d903352
MF
192021-04-23 Mike Frysinger <vapier@gentoo.org>
20
21 * configure.ac (SIM_AC_OPTION_HARDWARE): Delete first two args.
22 * configure: Regenerate.
23
19f6a43c
TT
242021-04-22 Tom Tromey <tom@tromey.com>
25
26 * configure, config.in: Rebuild.
27
d6581fcd
TT
282021-04-22 Tom Tromey <tom@tromey.com>
29
30 * Makefile.in (INCLUDE): Remove.
31
e7d8f1da
TT
322021-04-22 Tom Tromey <tom@tromey.com>
33
34 * Makefile.in (interp.o): Remove.
35
efd82ac7
TT
362021-04-22 Tom Tromey <tom@tromey.com>
37
38 * configure: Rebuild.
39
2662c237
MF
402021-04-21 Mike Frysinger <vapier@gentoo.org>
41
42 * aclocal.m4: Regenerate.
43
1f195bc3
SM
442021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
45
46 * configure: Regenerate.
47
37e9f182
MF
482021-04-18 Mike Frysinger <vapier@gentoo.org>
49
50 * configure: Regenerate.
51
d5a71b11
MF
522021-04-12 Mike Frysinger <vapier@gentoo.org>
53
54 * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
55
c2783492
MF
562021-04-02 Mike Frysinger <vapier@gentoo.org>
57
58 * aclocal.m4, configure: Regenerate.
59
c6c7769d
MF
602021-03-13 Mike Frysinger <vapier@gentoo.org>
61
62 * Makefile.in (gencode.o): New rule.
63 (gencode): Call LINK_FOR_BUILD.
64
ebe9564b
MF
652021-02-28 Mike Frysinger <vapier@gentoo.org>
66
67 * configure: Regenerate.
68
760b3e8b
MF
692021-02-21 Mike Frysinger <vapier@gentoo.org>
70
71 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
72 * aclocal.m4, configure: Regenerate.
73
136da8cd
MF
742021-02-13 Mike Frysinger <vapier@gentoo.org>
75
76 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
77 * aclocal.m4, configure: Regenerate.
78
aa09469f
MF
792021-02-06 Mike Frysinger <vapier@gentoo.org>
80
81 * configure: Regenerate.
82
683b8d96
MF
832021-01-30 Mike Frysinger <vapier@gentoo.org>
84
85 * dv-m68hc11tim.c (cycle_to_string): Change llu to PRIi64.
86
b9e016f5
MF
872021-01-30 Mike Frysinger <vapier@gentoo.org>
88
89 * m68hc11_sim.c (cpu_set_sp): Add static markings.
90 (cpu_get_reg, cpu_get_src_reg, cpu_set_dst_reg,
91 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8): Likewise.
92
fb8d4e59
MF
932021-01-30 Mike Frysinger <vapier@gentoo.org>
94
95 * interp.c (sim_get_info, sim_board_reset): Pass %s to sim_hw_parse.
96
ee64caae
MF
972021-01-30 Mike Frysinger <vapier@gentoo.org>
98
99 * dv-m68hc11.c, m68hc11_sim.c: Include stdlib.h.
100
88f68ee2
MF
1012021-01-30 Mike Frysinger <vapier@gentoo.org>
102
103 * configure.ac (SIM_AC_OPTION_HARDWARE): Inline variables.
104 * configure: Regenerate.
105
68ed2854
MF
1062021-01-11 Mike Frysinger <vapier@gentoo.org>
107
108 * config.in, configure: Regenerate.
109
50df264d
MF
1102021-01-09 Mike Frysinger <vapier@gentoo.org>
111
112 * configure: Regenerate.
113
bf470982
MF
1142021-01-09 Mike Frysinger <vapier@gentoo.org>
115
116 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
117 * configure: Regenerate.
118
46f900c0
MF
1192021-01-08 Mike Frysinger <vapier@gentoo.org>
120
121 * configure: Regenerate.
122
dfb856ba
MF
1232021-01-04 Mike Frysinger <vapier@gentoo.org>
124
125 * configure: Regenerate.
126
5c887dd5
JB
1272017-09-06 John Baldwin <jhb@FreeBSD.org>
128
129 * configure: Regenerate.
130
13a590ca
MF
1312017-02-13 Mike Frysinger <vapier@gentoo.org>
132
133 * gencode.c: Include libiberty.h.
134 (TABLE_SIZE): Delete.
135 (find_opcode_pattern): Change TABLE_SIZE to ARRAY_SIZE.
136 (gen_interpreter): Likewise.
137 * interrupts.c (TableSize): Delete.
138 (interrupts_update_pending): Change TableSize to ARRAY_SIZE.
139
fa0843f5
MF
1402016-08-16 Mike Frysinger <vapier@gentoo.org>
141
142 * sim-main.h (inline): Delete define.
143 (phys_to_virt): Change inline to STATIC_INLINE.
144 (memory_read8, memory_write8, memory_read16, memory_write16,
145 cpu_ccr_update_tst16, cpu_ccr_update_shift8, cpu_ccr_update_shift16,
146 cpu_ccr_update_add8, cpu_ccr_update_sub8, cpu_ccr_update_add16,
147 cpu_ccr_update_sub16, cpu_m68hc11_push_uint8, cpu_m68hc11_push_uint16,
148 cpu_m68hc11_pop_uint8, cpu_m68hc11_pop_uint16, cpu_m68hc12_push_uint8,
149 cpu_m68hc12_push_uint16, cpu_m68hc12_pop_uint8,
150 cpu_m68hc12_pop_uint16, cpu_fetch8, cpu_fetch16): Likewise.
151
5357150c
MF
1522016-08-15 Mike Frysinger <vapier@gentoo.org>
153
154 * interp.c (sim_get_bank_parameters): Delete abfd arg.
155 Replace all symbol lookup code with calls to trace_sym_value.
156 (sim_prepare_for_program): Update sim_get_bank_parameters call.
157
6f64fd48
MF
1582016-08-13 Mike Frysinger <vapier@gentoo.org>
159
160 * dv-m68hc11.c (m68hc11cpu_port_event): Adjust cpu prototype style.
161 * dv-m68hc11spi.c (m68hc11spi_port_event): Likewise.
162 * dv-m68hc11tim.c (m68hc11tim_print_timer): Likewise.
163 * emulos.c (emul_bench): Likewise.
164 (emul_write): Likewise. Also rename state to cpu.
165 (emul_os): Rename proc to cpu.
166 * gencode.c: Rename proc to cpu.
167 * interrupts.c (interrupts_initialize): Likewise.
168 * interrupts.h (interrupts): Adjust cpu type.
169 (interrupts_initialize): Likewise.
170 * m68hc11_sim.c (cpu_get_reg): Adjust cpu prototype style.
171 (cpu_get_src_reg, cpu_set_dst_reg, cpu_set_reg,
172 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8,
173 cpu_get_indexed_operand16, cpu_dbcc, cpu_exg): Likewise.
174 (cpu_ccr_update_tst8): Rename proc to cpu.
175 * sim-main.h: Rename PROC and proc to cpu.
176
527aaa4a
MF
1772016-08-13 Mike Frysinger <vapier@gentoo.org>
178
179 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Drop cast with
180 return value of hw_malloc.
181 * dv-m68hc11sio.c (m68hc11sio_rx_poll): Mark static.
182 (m68hc11sio_tx_poll): Likewise.
183 * dv-m68hc11spi.c (m68hc11spi_clock): Likewise.
184 * dv-m68hc11tim.c (m68hc11tim_timer_event): Likewise.
185 * dv-nvram.c (attach_nvram_regs): Drop cast with
186 return value of hw_malloc.
187 * emulos.c (emul_bench): Mark static.
188 (emul_write): Likewise.
189 (emul_exit): Likewise.
190 * gencode.c: Include stdio.h.
191 (gen_function_entry): Unify two print lines.
192 (cmp_opcode): Mark args const.
193
ce39bd38
MF
1942016-01-10 Mike Frysinger <vapier@gentoo.org>
195
196 * config.in, configure: Regenerate.
197
35656e95
MF
1982016-01-10 Mike Frysinger <vapier@gentoo.org>
199
200 * configure: Regenerate.
201
16f7876d
MF
2022016-01-10 Mike Frysinger <vapier@gentoo.org>
203
204 * configure: Regenerate.
205
e19418e0
MF
2062016-01-10 Mike Frysinger <vapier@gentoo.org>
207
208 * configure: Regenerate.
209
99d8e879
MF
2102016-01-10 Mike Frysinger <vapier@gentoo.org>
211
212 * configure: Regenerate.
213
347fe5bb
MF
2142016-01-10 Mike Frysinger <vapier@gentoo.org>
215
216 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
217 * configure: Regenerate.
218
22be3fbe
MF
2192016-01-10 Mike Frysinger <vapier@gentoo.org>
220
221 * configure: Regenerate.
222
0dc73ef7
MF
2232016-01-10 Mike Frysinger <vapier@gentoo.org>
224
225 * configure: Regenerate.
226
936df756
MF
2272016-01-09 Mike Frysinger <vapier@gentoo.org>
228
229 * config.in, configure: Regenerate.
230
2e3d4f4d
MF
2312016-01-06 Mike Frysinger <vapier@gentoo.org>
232
233 * interp.c (sim_open): Mark argv const.
234 (sim_create_inferior): Mark argv and env const.
235
9bbf6f91
MF
2362016-01-04 Mike Frysinger <vapier@gentoo.org>
237
238 * configure: Regenerate.
239
77cf2ef5
MF
2402016-01-03 Mike Frysinger <vapier@gentoo.org>
241
242 * interp.c (sim_open): Update sim_parse_args comment.
243
61971b86
MF
2442016-01-03 Mike Frysinger <vapier@gentoo.org>
245
246 * sim-main.h (sim_state): Delete devices member.
247
0cb8d851
MF
2482016-01-03 Mike Frysinger <vapier@gentoo.org>
249
250 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
251 * configure: Regenerate.
252
1ac72f06
MF
2532016-01-02 Mike Frysinger <vapier@gentoo.org>
254
255 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
256 * configure: Regenerate.
257
8e26d677
MF
2582015-12-30 Mike Frysinger <vapier@gentoo.org>
259
260 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
261 * configure: Regenerate.
262
eca4255a
MF
2632015-12-30 Mike Frysinger <vapier@gentoo.org>
264
265 * imterp.c (sim_open): Delete current_alignment and
266 current_target_byte_order assignments.
267 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
268 * configure: Regenerate.
269
e1211e55
MF
2702015-12-30 Mike Frysinger <vapier@gentoo.org>
271
272 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
273 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
274 (sim_store_register): Rename to ...
275 (m68hc11_reg_store): ... this. Delete local cpu var.
276 (sim_fetch_register): Rename to ...
277 (m68hc11_reg_fetch): ... this. Delete local cpu var.
278
5e744ef8
MF
2792015-12-27 Mike Frysinger <vapier@gentoo.org>
280
281 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
282
1b393626
MF
2832015-12-26 Mike Frysinger <vapier@gentoo.org>
284
285 * config.in, configure: Regenerate.
286
26936211
MF
2872015-12-24 Mike Frysinger <vapier@gentoo.org>
288
289 * sim-main.h (SIM_HANDLES_LMA): Delete.
290
84e8e361
MF
2912015-12-24 Mike Frysinger <vapier@gentoo.org>
292
293 * sim-main.h (WITH_WATCHPOINTS): Delete.
294
cdf850e9
MF
2952015-11-17 Mike Frysinger <vapier@gentoo.org>
296
297 * sim-main.h (WITH_MODULO_MEMORY): Delete.
298
797eee42
MF
2992015-11-15 Mike Frysinger <vapier@gentoo.org>
300
301 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
302
d2dfd242
MF
3032015-11-14 Mike Frysinger <vapier@gentoo.org>
304
305 * Makefile.in (SIM_OBJS): Delete sim-load.o.
306
6e4f085c
MF
3072015-11-14 Mike Frysinger <vapier@gentoo.org>
308
309 * interp.c (sim_close): Delete.
310
8d0978fb
MF
3112015-06-23 Mike Frysinger <vapier@gentoo.org>
312
313 * configure: Regenerate.
314
a3487082
MF
3152015-06-12 Mike Frysinger <vapier@gentoo.org>
316
317 * configure: Regenerate.
318
306f4178
MF
3192015-06-12 Mike Frysinger <vapier@gentoo.org>
320
321 * configure: Regenerate.
322
09896bd2
MF
3232015-06-11 Mike Frysinger <vapier@gentoo.org>
324
325 * interp.c (interrupt_names): Delete.
326
a84f8df0
MF
3272015-06-11 Mike Frysinger <vapier@gentoo.org>
328
329 * Makefile.in (SIM_OBJS): Add sim-resume.o
330 * interp.c (has_stepped, sim_resume): Delete.
331
5d19c366
MF
3322015-06-11 Mike Frysinger <vapier@gentoo.org>
333
334 * interp.c (INLINE): Delete define.
335
0a13382c
NC
3362015-04-29 Nick Clifton <nickc@redhat.com>
337
338 PR 18273
339 * gencode.c (gen_fetch_operands): Remove unreachable code.
340
20bca71d
MF
3412015-04-18 Mike Frysinger <vapier@gentoo.org>
342
343 * sim-main.h (SIM_CPU): Delete.
344
7e83aa92
MF
3452015-04-18 Mike Frysinger <vapier@gentoo.org>
346
347 * sim-main.h (sim_cia): Delete.
348
034685f9
MF
3492015-04-17 Mike Frysinger <vapier@gentoo.org>
350
351 * sim-main.h (CIA_GET, CIA_SET): Delete.
352
78e9aa70
MF
3532015-04-15 Mike Frysinger <vapier@gentoo.org>
354
355 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
356 * sim-main.h (STATE_CPU): Delete.
357
bf12d44e
MF
3582015-04-13 Mike Frysinger <vapier@gentoo.org>
359
360 * configure: Regenerate.
361
bea3f671
MF
3622015-04-13 Mike Frysinger <vapier@gentoo.org>
363
364 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
365 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
366 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
367 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
368 (sim_pc_get): Delete.
369 * sim-main.h (SIM_CPU): Define.
370 (STATE_CPU): Drop &.
371 (struct sim_state): Change cpu to an array of pointers.
372
122bbfb5
MF
3732015-04-06 Mike Frysinger <vapier@gentoo.org>
374
375 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
376
2b6ca062
MF
3772015-03-31 Mike Frysinger <vapier@gentoo.org>
378
379 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
380 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
381 variable to restricted.
382 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
383
05f53ed6
MF
3842015-03-24 Mike Frysinger <vapier@gentoo.org>
385
386 * interp.c (sim_pc_get): New function.
387
523ba8f9
MF
3882015-03-24 Mike Frysinger <vapier@gentoo.org>
389
390 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
391 sim_size, sim_trace): Delete.
392 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
393
30452bbe
MF
3942015-03-24 Mike Frysinger <vapier@gentoo.org>
395
396 * configure: Regenerate.
397
64dd13df
MF
3982015-03-23 Mike Frysinger <vapier@gentoo.org>
399
400 * configure: Regenerate.
401
49cd1634
MF
4022015-03-23 Mike Frysinger <vapier@gentoo.org>
403
404 * configure: Regenerate.
405 * configure.ac (m68hc11_extra_objs): Delete.
406 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
407 (SIM_EXTRA_OBJS): Delete.
408
ae7d0cac
MF
4092015-03-16 Mike Frysinger <vapier@gentoo.org>
410
411 * config.in, configure: Regenerate.
412
465fb143
MF
4132015-03-14 Mike Frysinger <vapier@gentoo.org>
414
415 * Makefile.in (SIM_RUN_OBJS): Delete.
416
5cddc23a
MF
4172015-03-14 Mike Frysinger <vapier@gentoo.org>
418
419 * configure.ac (AC_CHECK_HEADERS): Delete.
420 * aclocal.m4, configure: Regenerate.
421
2974be62
AM
4222014-08-19 Alan Modra <amodra@gmail.com>
423
424 * configure: Regenerate.
425
faa743bb
RM
4262014-08-15 Roland McGrath <mcgrathr@google.com>
427
428 * configure: Regenerate.
429 * config.in: Regenerate.
430
1a8a700e
MF
4312014-03-04 Mike Frysinger <vapier@gentoo.org>
432
433 * configure: Regenerate.
434
bf3d9781
AM
4352013-09-23 Alan Modra <amodra@gmail.com>
436
437 * configure: Regenerate.
438
31e6ad7d
MF
4392013-06-03 Mike Frysinger <vapier@gentoo.org>
440
441 * aclocal.m4, configure: Regenerate.
442
d3685d60
TT
4432013-05-10 Freddie Chopin <freddie_chopin@op.pl>
444
445 * configure: Rebuild.
446
1517bd27
MF
4472013-03-26 Mike Frysinger <vapier@gentoo.org>
448
449 * configure: Regenerate.
450
256139f5
JS
4512013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
452
453 * configure.ac: Use $SIM_DV_SOCKSER_O.
454 * configure: Regenerated.
455
5f3ef9d0
JB
4562012-06-15 Joel Brobecker <brobecker@adacore.com>
457
458 * config.in, configure: Regenerate.
459
2232061b
MF
4602012-03-24 Mike Frysinger <vapier@gentoo.org>
461
462 * aclocal.m4, config.in, configure: Regenerate.
463
db2e4d67
MF
4642011-12-03 Mike Frysinger <vapier@gentoo.org>
465
466 * aclocal.m4: New file.
467 * configure: Regenerate.
468
4399a56b
MF
4692011-10-19 Mike Frysinger <vapier@gentoo.org>
470
471 * configure: Regenerate after common/acinclude.m4 update.
472
9c082ca8
MF
4732011-10-17 Mike Frysinger <vapier@gentoo.org>
474
475 * configure.ac: Change include to common/acinclude.m4.
476
6ffe910a
MF
4772011-10-17 Mike Frysinger <vapier@gentoo.org>
478
479 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
480 call. Replace common.m4 include with SIM_AC_COMMON.
481 * configure: Regenerate.
482
2419798b
MF
4832011-07-05 Mike Frysinger <vapier@gentoo.org>
484
485 * interp.c (sim_do_command): Delete.
486
3725885a
RW
4872010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
488
489 * configure: Regenerate.
490
d6416cdc
RW
4912009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
492
81ecdfbb
RW
493 * config.in: Regenerate.
494 * configure: Likewise.
495
d6416cdc
RW
496 * configure: Regenerate.
497
b5bd9624
HPN
4982008-07-11 Hans-Peter Nilsson <hp@axis.com>
499
500 * configure: Regenerate to track ../common/common.m4 changes.
501 * config.in: Ditto.
502
6efef468 5032008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
504 Daniel Jacobowitz <dan@codesourcery.com>
505 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
506
507 * configure: Regenerate.
508
b1bfc053
HPN
5092006-12-21 Hans-Peter Nilsson <hp@axis.com>
510
511 * config.in: Regenerate.
512
e85e3205
RE
5132006-06-13 Richard Earnshaw <rearnsha@arm.com>
514
515 * configure: Regenerated.
516
2f0122dc
DJ
5172006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
518
519 * configure: Regenerated.
520
20e95c23
DJ
5212006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
522
523 * configure: Regenerated.
524
b3a3ffef
HPN
5252006-03-29 Hans-Peter Nilsson <hp@axis.com>
526
527 * configure: Regenerate.
528
2b193c4a
MK
5292005-03-23 Mark Kettenis <kettenis@gnu.org>
530
531 * configure: Regenerate.
532
35695fd6
AC
5332005-01-14 Andrew Cagney <cagney@gnu.org>
534
535 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
536 explicit call to AC_CONFIG_HEADER.
537 * configure: Regenerate.
538
38f48d72
AC
5392005-01-11 Andrew Cagney <cagney@localhost.localdomain>
540
541 * configure: Regenerated to track ../common/aclocal.m4 changes.
542
b7026657
AC
5432005-01-07 Andrew Cagney <cagney@gnu.org>
544
545 * configure.ac: Rename configure.in, require autoconf 2.59.
546 * configure: Re-generate.
547
379832de
HPN
5482004-12-08 Hans-Peter Nilsson <hp@axis.com>
549
550 * configure: Regenerate for ../common/aclocal.m4 update.
551
84b11e2e
AM
5522004-06-15 Alan Modra <amodra@bigpond.net.au>
553
554 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
555 instead of bfd_get_section_size_before_reloc.
556
a685700c
SC
5572003-08-08 Stephane Carrez <stcarrez@nerim.fr>
558
559 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
560 control the translation.
561 (m68hc11tim_print_timer): Update cycle_to_string conversion.
562 (m68hc11tim_timer_event): Fix handling of output
563 compare register with its interrupts.
564 (m68hc11tim_io_write_buffer): Check output compare
565 after setting M6811_TMSK1.
566 (m68hc11tim_io_read_buffer): Fix compilation warning.
567 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
568 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
569 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
570 * interrupts.c (interrupts_info): Likewise.
571 (interrupts_reset): Recognize bootstrap mode.
572 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
573 (_sim_cpu): Add cpu_start_mode.
574 (cycle_to_string): Add flags member.
575 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
576 (cpu_options): Declare new option bootstrap.
577 (cpu_option_handler): Handle it.
578 (cpu_info): Update call to cycle_to_string.
579
77342e5e
SC
5802003-08-08 Stephane Carrez <stcarrez@nerim.fr>
581
582 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
583 the physical address in virtual address.
584 (struct _sim_cpu): Add memory bank members.
585 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
586 * interp.c (sim_hw_configure): Create memory bank according to memory
587 bank parameters.
588 (sim_get_bank_parameters): New function to obtain memory bank config
589 from the symbol table.
590 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
591 (sim_open): Call sim_prepare_for_program.
592 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
593 to check if address is within bank window.
594 (m68hc11cpu_io_read_buffer): Likewise.
595 (attach_m68hc11_regs): Map the memory bank according to memory bank
596 parameters.
597
53b3cd22
SC
5982003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
599
600 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
601
962e9d85
SC
6022003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
603 Gary Piercey <gpiercey@northstar-technical.com>
604
605 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
606 * sim-main.h (print_io_word): Declare.
607 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
608 (tflg1_desc): Likewise for TFLG1.
609 (m68hc11tim_info): Print input and output compare registers
610
9b9f7b3c
SC
6112003-03-02 Stephane Carrez <stcarrez@nerim.fr>
612
613 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
614 to 32 to support memory bank switching; temporarily use 32-bit for
615 WORD_BITSIZE to avoid a bug in sim-common.
616
00416c6e
SC
6172003-03-01 Stephane Carrez <stcarrez@nerim.fr>
618
619 * interp.c (sim_fetch_register): Only store a single byte for
620 1 byte registers.
621
6b4a8935
AC
6222003-02-27 Andrew Cagney <cagney@redhat.com>
623
624 * interp.c (sim_prepare_for_program, sim_open)
625 (sim_create_inferior): Rename _bfd to bfd.
626
099d1b50
SC
6272002-08-13 Stephane Carrez <stcarrez@nerim.fr>
628
629 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
630
31c7c532
SC
6312002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
632
72f4393d 633 * interp.c (sim_prepare_for_program): Look up the image for the
31c7c532
SC
634 reset vector and set cpu_use_elf_start to 1 if not found.
635 (sim_open): Do not set cpu_use_elf_start.
636
39762100
SC
6372002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
638
639 * interp.c (sim_hw_configure): Return 1 for success.
640 (sim_prepare_for_program): Use the sim_hw_configure exit code to
641 return SIM_RC_FAIL.
642
7230d809
SC
6432002-08-13 Stephane Carrez <stcarrez@nerim.fr>
644
645 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
646 bank window to some virtual address to read from extended memory.
647 (m68hc11cpu_io_write_buffer): Likewise for writing.
ca156d78 648 (attach_m68hc11_regs): When use_bank property is defined, attach
7230d809 649 to the 68HC12 16K memory bank window.
7230d809
SC
650 * interp.c (sim_hw_configure): Create memory region for banked
651 memory.
652
dcceded2
SC
6532002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
654
655 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
656 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
657 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
658
abea9e28
SC
6592002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
660
661 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
662 when IO mapping changed, not when internal RAM mapping is changed.
663
63f36def
SC
6642002-08-13 Stephane Carrez <stcarrez@nerim.fr>
665
666 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
667 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
668 (m6811_regs): Add page register.
669 (cpu_set_page, cpu_get_page): New macros.
670 (phys_to_virt): New function.
671 (cpu_get_indexed_operand_addr, cpu_return): Declare.
672 * gencode.c: Identify indirect addressing mode for call and fix daa.
72f4393d 673 (gen_function_entry): New param to tell if src8/dst8 locals are
63f36def
SC
674 necessary.
675 (gen_interpreter): Use it to avoid generation of unused variables.
676 * interp.c (sim_fetch_register): Allow to read page register; page
677 register, A, B and CCR are only 1 byte wide.
678 (sim_store_register): Likewise for writing.
679
c8cca39f
AC
6802002-06-16 Andrew Cagney <ac131313@redhat.com>
681
682 * configure: Regenerated to track ../common/aclocal.m4 changes.
683
3c25f8c7
AC
6842002-06-09 Andrew Cagney <cagney@redhat.com>
685
686 * Makefile.in (INCLUDE): Update path to callback.h.
687 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
688
86596dc8
SC
6892002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
690
691 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
692 (cpu_move16): Likewise.
693 (sim_memory_error): Use sim_io_printf.
694 (cpu_option_handler): Fix compilation warning.
72f4393d 695 * interp.c (sim_hw_configure): Fix compilation warning;
86596dc8
SC
696 remove m68hc12sio@2 device.
697 (sim_open): Likewise.
72f4393d 698 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
86596dc8
SC
699 flags when reset.
700 (cycle_to_string): Improve convertion of cpu cycle number.
701 (m68hc11tim_info): Print info about PACNT.
702 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
703 TCTL1 and TCTL2 registers.
704 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
705
827ec39a
SC
7062002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
707
72f4393d 708 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
827ec39a
SC
709 cpu struct.
710 (sim_hw_configure): Connect the capture input/output events.
711 * sim-main.h (_sim_cpu): New member hw_cpu.
712 (m68hc11cpu_set_oscillator): Declare.
713 (m68hc11cpu_clear_oscillator): Declare.
714 (m68hc11cpu_set_port): Declare.
715 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
716 (m68hc11cpu_ports): New input ports and output ports to reflect
717 the HC11 IOs.
718 (m68hc11_delete): Cleanup any running oscillator.
719 (attach_m68hc11_regs): Create the input oscillators.
720 (make_oscillator): New function.
721 (find_oscillator): New function.
722 (oscillator_handler): New function.
723 (reset_oscillators): New function.
724 (m68hc11cpu_port_event): Handle the new input ports.
725 (m68hc11cpu_set_oscillator): New function.
726 (m68hc11cpu_clear_oscillator): New function.
727 (get_frequency): New function.
728 (m68hc11_option_handler): New function.
729 (m68hc11cpu_set_port): New function.
730 (m68hc11cpu_io_write): Post the port output events.
731 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
732 the output port value.
733 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
734 by latching the TCNT value in the register.
735
5abb9efa
SC
7362002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
737
738 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
739 (cpu_frame_reg, cpu_print_frame): Remove.
740 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
741 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
742 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
743 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
744 * m68hc11_sim.c (cpu_find_frame): Remove.
745 (cpu_create_frame_list): Remove.
746 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
747 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
748 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
749 (cpu_update_frame): Likewise.
750 (cpu_return): Likewise.
751 (cpu_reset): Likewise.
72f4393d 752 (cpu_initialize): Likewise.
5abb9efa
SC
753 * interp.c (sim_do_command): Remove call to cpu_print_frame.
754
26128965
SC
7552002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
756
757 * interrupts.c (interrupts_reset): New function, setup interrupt
758 vector address according to cpu mode.
759 (interrupts_initialize): Move reset portion to the above.
760 (interrupt_names): New table to give a name to interrupts.
761 (idefs): Handle pulse accumulator interrupts.
762 (interrupts_info): Print the interrupt history.
763 (interrupt_option_handler): New function.
764 (interrupt_options): New table of options.
765 (interrupts_update_pending): Keep track of when interrupts are
766 raised and implement breakpoint-on-raise-interrupt.
767 (interrupts_process): Keep track of when interrupts are taken
768 and implement breakpoint-on-interrupt.
769 * interrupts.h (struct interrupt_history): Define.
770 (struct interrupt): Keep track of the interrupt history.
771 (interrupts_reset): Declare.
772 (interrupts_initialize): Update prototype.
773 * m68hc11_sim.c (cpu_reset): Reset interrupts.
774 (cpu_initialize): Cleanup.
775
eefde351
SC
7762001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
777
778 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
779 address.
780 (m68hc11eepr_port_event): Fix detach/attach logic.
781
00d0c012
SC
7822001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
783
784 * Makefile.in (SIM_OBJS): Remove sim-resume.o
785 * interp.c (sim_resume): New function from sim-resume.c, install
786 the stepping event after having processed the pending ticks.
787 (has_stepped): Likewise.
788 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
789
b51c7603
AC
7902001-07-10 Andrew Cagney <ac131313@redhat.com>
791
792 * Makefile.in (gencode): Provide explicit path to gencode.c.
793
81e09ed8
SC
7942001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
795
796 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
797 (m68hc12int.c): Generate using gencode -m6812.
798 (m68hc11int.c): Likewise with -m6811.
799
800 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
801 (m6811_page1_opcodes): Remove duplicate entries.
802 (m6811_page2_opcodes): Likewise.
803 (m6811_page3_opcodes): Likewise.
804 (m6811_page4_opcodes): Likewise.
805 (m6812_page1_opcodes): New table for 68HC12 instructions.
806 (m6812_page2_opcodes): Likewise.
807 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
808 (gen_save_result): Likewise.
809 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
810 (cmp_opcode): New function for opcode comparision.
811 (prepare_table): Sort the opcodes.
812 (gen_interpreter): Prepare all the tables and generate either
813 a 68HC11 or a 68HC12 simulator.
814 (main): New options -m6811 and -m6812.
815
816 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
817 (cpu_special): Simulation of some 68HC12 instructions.
818 (cpu_exg): New function.
819 (cpu_dbcc): Likewise.
820 (cpu_fetch_relbranch16): Likewise.
821 (cpu_push_all): Push according to 68HC11 or 68HC12.
822 (cpu_move16): Likewise.
823 (cpu_move8): Likewise.
824 (cpu_get_indexed_operand16): Likewise.
825 (cpu_get_indexed_operand8): Likewise.
826 (cpu_get_indexed_operand_addr): Likewise.
827 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
828 (cpu_reset): Setup INIT register according to architecture.
72f4393d 829
81e09ed8
SC
830 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
831 (_sim_cpu): Keep track of the cpu being simulated.
832 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
833 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
834 (cpu_m68hc11_pop_uint8): Likewise.
835 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
836 (cpu_m68hc12_pop_uintxx): Likewise.
837 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
838 (cpu_fetch_relbranch16): Likewise.
839 (cpu_interp_m6811): Rename of cpu_interp.
72f4393d 840 (cpu_interp_m6812): New function.
81e09ed8
SC
841 * interp.c (free_state): New function.
842 (dev_list_68hc12): New table.
843 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
844 (sim_hw_configure): New function.
845 (sim_prepare_for_program): New function.
846 (sim_open): Use above new functions.
847 (sim_close): Call free_state().
848 (sim_info): Print info according to cpu.
849 (sim_create_inferior): Use sim_prepare_for_program.
850 (sim_do_command): Configure the hardware after a change of the
851 architecture.
852
11115521
SC
8532001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
854
855 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
856 pending interrupts.
857 * interrupts.c (interrupts_process): Keep track of the last number
858 of masked insn cycles.
859 (interrupts_initialize): Clear last number of masked insn cycles.
860 (interrupts_info): Report them.
72f4393d
L
861 (interrupts_update_pending): Compute clear and set masks of
862 interrupts and clear the interrupt bits before setting them
11115521
SC
863 (due to SCI interrupt sharing).
864 * interrupts.h (struct interrupts): New members last_mask_cycles
865 and xirq_last_mask_cycles.
866
b93775f5
SC
8672000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
868
869 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
870 instead of a hard-coded value.
871 (m68hc11cpu_io_write_buffer): Likewise.
872 (dv_m68hc11_descriptor): Define a 68hc12 device.
873 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
874 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
875 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
876 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
877
639aa4f7
SC
8782000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
879
880 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
881 (m68hc11cpu_delete): Delete handler to detach the address space.
882
6e73e7ed
SC
8832000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
884
885 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
886 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
887 instead of free and malloc.
888
5f186447
SC
8892000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
890
891 * Makefile.in: Was missing from initial patch.
892
9830501b
SC
8932000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
894
895 * interp.c (sim_store_register): Remove soft register hack.
896 (sim_fetch_register): Likewise.
897 (sim_create_inferior): Likewise.
898 * sim-main.h: Likewise.
899
a8afa79a
SC
9002000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
901
902 * interrupts.c (interrupts_update_pending): Clear the mask of
903 pending interrupts here.
904 (interrupts_get_current): Don't clear the mask of pending interrupts.
905
2990a9f4
SC
9062000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
907
908 * sim-main.h: Define cycle_to_string.
72f4393d 909 * dv-m68hc11tim.c (cycle_to_string): New function to translate
2990a9f4
SC
910 the cpu cycle into some formatted time string.
911 (m68hc11tim_print_timer): Use it.
912 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
913 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
914 * interrupts.c (interrupts_info): Likewise.
915 * m68hc11_sim.c (cpu_info): Likewise.
916
401493c8
SC
9172000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
918
919 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
920 interrupt and compare events accurately. Take into account the
921 pending ticks not processed by the simulator yet (introduced a shift).
922 (m68hc11_port_event): Reset the timer interrupt delays.
923 (m68hc11tim_io_read_buffer): Be able to read several bytes.
924 (m68hc11tim_io_write_buffer): Likewise for write.
925 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
926
4d72d17a
SC
9272000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
928
929 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
930 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
931 (m68hc11spi_info): Clarify the status report
932 of the SPI when a byte is being sent.
933 (m68hc11spi_clock): Fix the spi send frame.
72f4393d 934
63348d04
SC
9352000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
936
937 * sim-main.h (m68hc11_map_level): Define level of address mappings.
938 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
939 whether the eeprom is currently mapped or not.
940 (m68hc11eepr_port_event): Use the flag to see if we must unmap
941 or map the eeprom. Update the flag to reflect the current state.
942 Use M6811_EEPROM_LEVEL when mapping the eeprom.
943 (m68hc11eepr_finish): Remove overlap hack.
944 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
945 config and control registers.
946 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
947 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
948 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
949 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
950 (attach_m68hc11spi_regs): Likewise.
951 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
952 (attach_m68hc11tim_regs): Likewise.
953 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
954 (attach_m68hc11sio_regs): Likewise.
955 * interp.c (sim_open): Likewise.
956 * dv-nvram.c (attach_nvram_regs): Likewise.
957
5d031c16
AC
958Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
959
960 * configure, config.in: Regenerate.
961
e0709f50
AC
9622000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
963
964 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
965 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
966 (dv_m6811_detach_address_callback): New function to detach a
967 device from an address space.
968 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
969 config register according to --cpu-config option.
970 * sim-main.h (_sim_cpu): Add cpu_config member.
971 * interp.c (sim_open): Delete specific simulator options.
972 * m68hc11_sim.c (cpu_option_handler): New options
973 --emulos and -cpu-config <val> to configure the simulator.
974 (cpu_initialize): Initialize cpu_config member.
975
9762000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
977
978 * emulos.c: Fix indentation and comments.
979 * gencode.c: Likewise.
980 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
981 (m68hc11tim_io_write_buffer): Write compare registers and
982 setup compare event.
983 * interp.c: Remove unused global variables.
984 * interrupts.c (idefs): New compare interrupts.
985 Fix indentation and comments.
986 * interrupts.h: Likewise.
987
9882000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
989
990 * dv-m68hc11sio.c: Fix indentation and comments.
991 Remove INT_PORT.
992 * dv-m68hc11.c: Fix indentation and comments.
993 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
994 * m68hc11_sim.c (cpu_reset): To here.
995 * dv-m68hc11eepr.c: Fix indentation and comments.
72f4393d 996
e0709f50
AC
9972000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
998
999 * dv-nvram.c: New file, rename from dv-pram.c.
1000 * dv-pram.c: Delete file.
1001 * sim-main.h: Incorporate m68hc11_sim.h.
1002 * m68hc11_sim.h: Delete file.
1003 * configure.in: Rename pram into nvram.
1004 * interp.c (sim_open): Likewise in creation of device tree.
72f4393d 1005
e0709f50
AC
10062000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1007
1008 * interp.c (sim_open): Create the SPI device.
1009 * dv-m68hc11spi.c: New file for SPI device simulation.
1010 * configure.in (hw_extra_devices): Add SPI device.
1011
10122000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1013
1014 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
1015 (interrupts_process): Separate IRQ and XIRQ accounting.
1016 (interrupts_info): Report XIRQ accounting.
1017 * interrupts.h (struct interrupts): Added accounting for XIRQ.
1018
10192000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
1020
1021 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
1022 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
72f4393d 1023 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
e0709f50
AC
1024 configuration from the 'mode' device tree property.
1025 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
1026 configuration.
1027
10282000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
1029
1030 * sim-main.h: Remove WITH_TARGET_* defines.
1031 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
1032
10332000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
1034
1035 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
1036 1200 baud when cpu is in bootstrap mode.
1037
1038 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
1039 write in the TCTN timer register.
1040
1041 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
1042 by 4 to obtain the E clock frequency.
1043 (sccr2_desc): Use M6811_TIE for TIE bit.
1044 (m68hc11sio_info): Fix baud rate report.
1045
1046 * dv-m68hc11tim.c (to_realtime): Likewise.
1047
1048 * interp.c (sim_open): When building device tree, only provide
1049 devices that do not exist yet.
1050
1051 * emulos.c: Fix compilation pb under Windows.
1052
1053 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
1054 from the 'clock' property.
1055
10562000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
1057
1058 * m68hc11_sim.h (*_REGNUM): Define.
1059 (_sim_cpu): New member cpu_page0_reg table.
1060 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
1061 addresses of soft registers in .page0.
72f4393d 1062 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
e0709f50
AC
1063 to get/set soft registers.
1064
10651999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
1066
1067 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
1068 returning random values.
1069
10701999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
1071
1072 * gencode.c: Fix "subb N,x" that used a instead of b.
1073
10741999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
1075
1076 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
1077
10781999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
1079
1080 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
1081
10821999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
1083
1084 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
1085 register region in the m68hc11cpu struct.
1086 (m68hc11cpu_io_write): When the IO mapping addres changes,
1087 detach the register region and re-attach it at the new address.
1088 (m68hc11cpu_io_read_buffer): Renamed base_address into
1089 attach_address.
1090 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
1091 to m68hc11cpu_io_write.
1092
10931999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
1094
1095 * gencode.c: For sbc8, check the carry and increment the source
1096 before trying to set the carry for the result.
1097
10981999-05-24 John S. Kallal <kallal@voicenet.com>
72f4393d 1099
e0709f50
AC
1100 * interp.c (sim_get_info): Don't crash if the command line is 0.
1101 Define prototype for sim_get_info() and init_system().
1102 (sim_info): Correct call to sim_get_info().
72f4393d 1103
e0709f50
AC
11041999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
1105
1106 * configure.in: Recognize m6811-*-*.
1107 * configure: Regenerate.
1108 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
1109 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
1110 Correct the computation of carry of 8 and 16-bits add and subtract.
1111 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
1112 overflow set in a different manner than add).
1113
11141999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
1115
1116 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
1117 trace message.
1118 * interp.c (sim_open, sim_create_inferior): Initialize the
1119 cpu_elf_start from the ELF header.
1120 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
1121 (cpu_restart): Use cpu_elf_start as the starting address when
1122 the flag is set.
1123 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
1124 exits the simulator (exit status is in D).
1125 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
1126 cpu_elf_star to start execution at address specified in ELF file.
1127
11281999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
1129
1130 * Makefile.in, config.in, configure, configure.in: New files.
1131 * gencode.c: New file, generation of 68HC11 interpreter.
1132 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
1133 for interpreter.
1134 * interrupts.c, interrupts.h: New files, management of interrupts.
72f4393d 1135 * interp.c, sim-main.h,
e0709f50
AC
1136 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
1137 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
1138 68HC11 (dv-pram.c is generic and could probably migrate to common).
1139 * emulos.c: New file, basic emulation of some os.