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