]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
Regenerate bfd-in2.h and libbfd.h
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
bf06b2a2
MF
12021-05-04 Mike Frysinger <vapier@gentoo.org>
2
3 * dv-m68hc11.c (struct m68hc11cpu): Change attach_size to unsigned int.
4 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Cast buffer to const char*.
5
aa0fca16
MF
62021-05-04 Mike Frysinger <vapier@gentoo.org>
7
8 * configure: Regenerate.
9
fe348617
MF
102021-05-01 Mike Frysinger <vapier@gentoo.org>
11
12 * config.in, configure: Regenerate.
13
9d903352
MF
142021-04-23 Mike Frysinger <vapier@gentoo.org>
15
16 * configure.ac (SIM_AC_OPTION_HARDWARE): Delete first two args.
17 * configure: Regenerate.
18
19f6a43c
TT
192021-04-22 Tom Tromey <tom@tromey.com>
20
21 * configure, config.in: Rebuild.
22
d6581fcd
TT
232021-04-22 Tom Tromey <tom@tromey.com>
24
25 * Makefile.in (INCLUDE): Remove.
26
e7d8f1da
TT
272021-04-22 Tom Tromey <tom@tromey.com>
28
29 * Makefile.in (interp.o): Remove.
30
efd82ac7
TT
312021-04-22 Tom Tromey <tom@tromey.com>
32
33 * configure: Rebuild.
34
2662c237
MF
352021-04-21 Mike Frysinger <vapier@gentoo.org>
36
37 * aclocal.m4: Regenerate.
38
1f195bc3
SM
392021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
40
41 * configure: Regenerate.
42
37e9f182
MF
432021-04-18 Mike Frysinger <vapier@gentoo.org>
44
45 * configure: Regenerate.
46
d5a71b11
MF
472021-04-12 Mike Frysinger <vapier@gentoo.org>
48
49 * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
50
c2783492
MF
512021-04-02 Mike Frysinger <vapier@gentoo.org>
52
53 * aclocal.m4, configure: Regenerate.
54
c6c7769d
MF
552021-03-13 Mike Frysinger <vapier@gentoo.org>
56
57 * Makefile.in (gencode.o): New rule.
58 (gencode): Call LINK_FOR_BUILD.
59
ebe9564b
MF
602021-02-28 Mike Frysinger <vapier@gentoo.org>
61
62 * configure: Regenerate.
63
760b3e8b
MF
642021-02-21 Mike Frysinger <vapier@gentoo.org>
65
66 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
67 * aclocal.m4, configure: Regenerate.
68
136da8cd
MF
692021-02-13 Mike Frysinger <vapier@gentoo.org>
70
71 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
72 * aclocal.m4, configure: Regenerate.
73
aa09469f
MF
742021-02-06 Mike Frysinger <vapier@gentoo.org>
75
76 * configure: Regenerate.
77
683b8d96
MF
782021-01-30 Mike Frysinger <vapier@gentoo.org>
79
80 * dv-m68hc11tim.c (cycle_to_string): Change llu to PRIi64.
81
b9e016f5
MF
822021-01-30 Mike Frysinger <vapier@gentoo.org>
83
84 * m68hc11_sim.c (cpu_set_sp): Add static markings.
85 (cpu_get_reg, cpu_get_src_reg, cpu_set_dst_reg,
86 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8): Likewise.
87
fb8d4e59
MF
882021-01-30 Mike Frysinger <vapier@gentoo.org>
89
90 * interp.c (sim_get_info, sim_board_reset): Pass %s to sim_hw_parse.
91
ee64caae
MF
922021-01-30 Mike Frysinger <vapier@gentoo.org>
93
94 * dv-m68hc11.c, m68hc11_sim.c: Include stdlib.h.
95
88f68ee2
MF
962021-01-30 Mike Frysinger <vapier@gentoo.org>
97
98 * configure.ac (SIM_AC_OPTION_HARDWARE): Inline variables.
99 * configure: Regenerate.
100
68ed2854
MF
1012021-01-11 Mike Frysinger <vapier@gentoo.org>
102
103 * config.in, configure: Regenerate.
104
50df264d
MF
1052021-01-09 Mike Frysinger <vapier@gentoo.org>
106
107 * configure: Regenerate.
108
bf470982
MF
1092021-01-09 Mike Frysinger <vapier@gentoo.org>
110
111 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
112 * configure: Regenerate.
113
46f900c0
MF
1142021-01-08 Mike Frysinger <vapier@gentoo.org>
115
116 * configure: Regenerate.
117
dfb856ba
MF
1182021-01-04 Mike Frysinger <vapier@gentoo.org>
119
120 * configure: Regenerate.
121
5c887dd5
JB
1222017-09-06 John Baldwin <jhb@FreeBSD.org>
123
124 * configure: Regenerate.
125
13a590ca
MF
1262017-02-13 Mike Frysinger <vapier@gentoo.org>
127
128 * gencode.c: Include libiberty.h.
129 (TABLE_SIZE): Delete.
130 (find_opcode_pattern): Change TABLE_SIZE to ARRAY_SIZE.
131 (gen_interpreter): Likewise.
132 * interrupts.c (TableSize): Delete.
133 (interrupts_update_pending): Change TableSize to ARRAY_SIZE.
134
fa0843f5
MF
1352016-08-16 Mike Frysinger <vapier@gentoo.org>
136
137 * sim-main.h (inline): Delete define.
138 (phys_to_virt): Change inline to STATIC_INLINE.
139 (memory_read8, memory_write8, memory_read16, memory_write16,
140 cpu_ccr_update_tst16, cpu_ccr_update_shift8, cpu_ccr_update_shift16,
141 cpu_ccr_update_add8, cpu_ccr_update_sub8, cpu_ccr_update_add16,
142 cpu_ccr_update_sub16, cpu_m68hc11_push_uint8, cpu_m68hc11_push_uint16,
143 cpu_m68hc11_pop_uint8, cpu_m68hc11_pop_uint16, cpu_m68hc12_push_uint8,
144 cpu_m68hc12_push_uint16, cpu_m68hc12_pop_uint8,
145 cpu_m68hc12_pop_uint16, cpu_fetch8, cpu_fetch16): Likewise.
146
5357150c
MF
1472016-08-15 Mike Frysinger <vapier@gentoo.org>
148
149 * interp.c (sim_get_bank_parameters): Delete abfd arg.
150 Replace all symbol lookup code with calls to trace_sym_value.
151 (sim_prepare_for_program): Update sim_get_bank_parameters call.
152
6f64fd48
MF
1532016-08-13 Mike Frysinger <vapier@gentoo.org>
154
155 * dv-m68hc11.c (m68hc11cpu_port_event): Adjust cpu prototype style.
156 * dv-m68hc11spi.c (m68hc11spi_port_event): Likewise.
157 * dv-m68hc11tim.c (m68hc11tim_print_timer): Likewise.
158 * emulos.c (emul_bench): Likewise.
159 (emul_write): Likewise. Also rename state to cpu.
160 (emul_os): Rename proc to cpu.
161 * gencode.c: Rename proc to cpu.
162 * interrupts.c (interrupts_initialize): Likewise.
163 * interrupts.h (interrupts): Adjust cpu type.
164 (interrupts_initialize): Likewise.
165 * m68hc11_sim.c (cpu_get_reg): Adjust cpu prototype style.
166 (cpu_get_src_reg, cpu_set_dst_reg, cpu_set_reg,
167 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8,
168 cpu_get_indexed_operand16, cpu_dbcc, cpu_exg): Likewise.
169 (cpu_ccr_update_tst8): Rename proc to cpu.
170 * sim-main.h: Rename PROC and proc to cpu.
171
527aaa4a
MF
1722016-08-13 Mike Frysinger <vapier@gentoo.org>
173
174 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Drop cast with
175 return value of hw_malloc.
176 * dv-m68hc11sio.c (m68hc11sio_rx_poll): Mark static.
177 (m68hc11sio_tx_poll): Likewise.
178 * dv-m68hc11spi.c (m68hc11spi_clock): Likewise.
179 * dv-m68hc11tim.c (m68hc11tim_timer_event): Likewise.
180 * dv-nvram.c (attach_nvram_regs): Drop cast with
181 return value of hw_malloc.
182 * emulos.c (emul_bench): Mark static.
183 (emul_write): Likewise.
184 (emul_exit): Likewise.
185 * gencode.c: Include stdio.h.
186 (gen_function_entry): Unify two print lines.
187 (cmp_opcode): Mark args const.
188
ce39bd38
MF
1892016-01-10 Mike Frysinger <vapier@gentoo.org>
190
191 * config.in, configure: Regenerate.
192
35656e95
MF
1932016-01-10 Mike Frysinger <vapier@gentoo.org>
194
195 * configure: Regenerate.
196
16f7876d
MF
1972016-01-10 Mike Frysinger <vapier@gentoo.org>
198
199 * configure: Regenerate.
200
e19418e0
MF
2012016-01-10 Mike Frysinger <vapier@gentoo.org>
202
203 * configure: Regenerate.
204
99d8e879
MF
2052016-01-10 Mike Frysinger <vapier@gentoo.org>
206
207 * configure: Regenerate.
208
347fe5bb
MF
2092016-01-10 Mike Frysinger <vapier@gentoo.org>
210
211 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
212 * configure: Regenerate.
213
22be3fbe
MF
2142016-01-10 Mike Frysinger <vapier@gentoo.org>
215
216 * configure: Regenerate.
217
0dc73ef7
MF
2182016-01-10 Mike Frysinger <vapier@gentoo.org>
219
220 * configure: Regenerate.
221
936df756
MF
2222016-01-09 Mike Frysinger <vapier@gentoo.org>
223
224 * config.in, configure: Regenerate.
225
2e3d4f4d
MF
2262016-01-06 Mike Frysinger <vapier@gentoo.org>
227
228 * interp.c (sim_open): Mark argv const.
229 (sim_create_inferior): Mark argv and env const.
230
9bbf6f91
MF
2312016-01-04 Mike Frysinger <vapier@gentoo.org>
232
233 * configure: Regenerate.
234
77cf2ef5
MF
2352016-01-03 Mike Frysinger <vapier@gentoo.org>
236
237 * interp.c (sim_open): Update sim_parse_args comment.
238
61971b86
MF
2392016-01-03 Mike Frysinger <vapier@gentoo.org>
240
241 * sim-main.h (sim_state): Delete devices member.
242
0cb8d851
MF
2432016-01-03 Mike Frysinger <vapier@gentoo.org>
244
245 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
246 * configure: Regenerate.
247
1ac72f06
MF
2482016-01-02 Mike Frysinger <vapier@gentoo.org>
249
250 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
251 * configure: Regenerate.
252
8e26d677
MF
2532015-12-30 Mike Frysinger <vapier@gentoo.org>
254
255 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
256 * configure: Regenerate.
257
eca4255a
MF
2582015-12-30 Mike Frysinger <vapier@gentoo.org>
259
260 * imterp.c (sim_open): Delete current_alignment and
261 current_target_byte_order assignments.
262 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
263 * configure: Regenerate.
264
e1211e55
MF
2652015-12-30 Mike Frysinger <vapier@gentoo.org>
266
267 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
268 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
269 (sim_store_register): Rename to ...
270 (m68hc11_reg_store): ... this. Delete local cpu var.
271 (sim_fetch_register): Rename to ...
272 (m68hc11_reg_fetch): ... this. Delete local cpu var.
273
5e744ef8
MF
2742015-12-27 Mike Frysinger <vapier@gentoo.org>
275
276 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
277
1b393626
MF
2782015-12-26 Mike Frysinger <vapier@gentoo.org>
279
280 * config.in, configure: Regenerate.
281
26936211
MF
2822015-12-24 Mike Frysinger <vapier@gentoo.org>
283
284 * sim-main.h (SIM_HANDLES_LMA): Delete.
285
84e8e361
MF
2862015-12-24 Mike Frysinger <vapier@gentoo.org>
287
288 * sim-main.h (WITH_WATCHPOINTS): Delete.
289
cdf850e9
MF
2902015-11-17 Mike Frysinger <vapier@gentoo.org>
291
292 * sim-main.h (WITH_MODULO_MEMORY): Delete.
293
797eee42
MF
2942015-11-15 Mike Frysinger <vapier@gentoo.org>
295
296 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
297
d2dfd242
MF
2982015-11-14 Mike Frysinger <vapier@gentoo.org>
299
300 * Makefile.in (SIM_OBJS): Delete sim-load.o.
301
6e4f085c
MF
3022015-11-14 Mike Frysinger <vapier@gentoo.org>
303
304 * interp.c (sim_close): Delete.
305
8d0978fb
MF
3062015-06-23 Mike Frysinger <vapier@gentoo.org>
307
308 * configure: Regenerate.
309
a3487082
MF
3102015-06-12 Mike Frysinger <vapier@gentoo.org>
311
312 * configure: Regenerate.
313
306f4178
MF
3142015-06-12 Mike Frysinger <vapier@gentoo.org>
315
316 * configure: Regenerate.
317
09896bd2
MF
3182015-06-11 Mike Frysinger <vapier@gentoo.org>
319
320 * interp.c (interrupt_names): Delete.
321
a84f8df0
MF
3222015-06-11 Mike Frysinger <vapier@gentoo.org>
323
324 * Makefile.in (SIM_OBJS): Add sim-resume.o
325 * interp.c (has_stepped, sim_resume): Delete.
326
5d19c366
MF
3272015-06-11 Mike Frysinger <vapier@gentoo.org>
328
329 * interp.c (INLINE): Delete define.
330
0a13382c
NC
3312015-04-29 Nick Clifton <nickc@redhat.com>
332
333 PR 18273
334 * gencode.c (gen_fetch_operands): Remove unreachable code.
335
20bca71d
MF
3362015-04-18 Mike Frysinger <vapier@gentoo.org>
337
338 * sim-main.h (SIM_CPU): Delete.
339
7e83aa92
MF
3402015-04-18 Mike Frysinger <vapier@gentoo.org>
341
342 * sim-main.h (sim_cia): Delete.
343
034685f9
MF
3442015-04-17 Mike Frysinger <vapier@gentoo.org>
345
346 * sim-main.h (CIA_GET, CIA_SET): Delete.
347
78e9aa70
MF
3482015-04-15 Mike Frysinger <vapier@gentoo.org>
349
350 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
351 * sim-main.h (STATE_CPU): Delete.
352
bf12d44e
MF
3532015-04-13 Mike Frysinger <vapier@gentoo.org>
354
355 * configure: Regenerate.
356
bea3f671
MF
3572015-04-13 Mike Frysinger <vapier@gentoo.org>
358
359 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
360 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
361 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
362 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
363 (sim_pc_get): Delete.
364 * sim-main.h (SIM_CPU): Define.
365 (STATE_CPU): Drop &.
366 (struct sim_state): Change cpu to an array of pointers.
367
122bbfb5
MF
3682015-04-06 Mike Frysinger <vapier@gentoo.org>
369
370 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
371
2b6ca062
MF
3722015-03-31 Mike Frysinger <vapier@gentoo.org>
373
374 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
375 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
376 variable to restricted.
377 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
378
05f53ed6
MF
3792015-03-24 Mike Frysinger <vapier@gentoo.org>
380
381 * interp.c (sim_pc_get): New function.
382
523ba8f9
MF
3832015-03-24 Mike Frysinger <vapier@gentoo.org>
384
385 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
386 sim_size, sim_trace): Delete.
387 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
388
30452bbe
MF
3892015-03-24 Mike Frysinger <vapier@gentoo.org>
390
391 * configure: Regenerate.
392
64dd13df
MF
3932015-03-23 Mike Frysinger <vapier@gentoo.org>
394
395 * configure: Regenerate.
396
49cd1634
MF
3972015-03-23 Mike Frysinger <vapier@gentoo.org>
398
399 * configure: Regenerate.
400 * configure.ac (m68hc11_extra_objs): Delete.
401 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
402 (SIM_EXTRA_OBJS): Delete.
403
ae7d0cac
MF
4042015-03-16 Mike Frysinger <vapier@gentoo.org>
405
406 * config.in, configure: Regenerate.
407
465fb143
MF
4082015-03-14 Mike Frysinger <vapier@gentoo.org>
409
410 * Makefile.in (SIM_RUN_OBJS): Delete.
411
5cddc23a
MF
4122015-03-14 Mike Frysinger <vapier@gentoo.org>
413
414 * configure.ac (AC_CHECK_HEADERS): Delete.
415 * aclocal.m4, configure: Regenerate.
416
2974be62
AM
4172014-08-19 Alan Modra <amodra@gmail.com>
418
419 * configure: Regenerate.
420
faa743bb
RM
4212014-08-15 Roland McGrath <mcgrathr@google.com>
422
423 * configure: Regenerate.
424 * config.in: Regenerate.
425
1a8a700e
MF
4262014-03-04 Mike Frysinger <vapier@gentoo.org>
427
428 * configure: Regenerate.
429
bf3d9781
AM
4302013-09-23 Alan Modra <amodra@gmail.com>
431
432 * configure: Regenerate.
433
31e6ad7d
MF
4342013-06-03 Mike Frysinger <vapier@gentoo.org>
435
436 * aclocal.m4, configure: Regenerate.
437
d3685d60
TT
4382013-05-10 Freddie Chopin <freddie_chopin@op.pl>
439
440 * configure: Rebuild.
441
1517bd27
MF
4422013-03-26 Mike Frysinger <vapier@gentoo.org>
443
444 * configure: Regenerate.
445
256139f5
JS
4462013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
447
448 * configure.ac: Use $SIM_DV_SOCKSER_O.
449 * configure: Regenerated.
450
5f3ef9d0
JB
4512012-06-15 Joel Brobecker <brobecker@adacore.com>
452
453 * config.in, configure: Regenerate.
454
2232061b
MF
4552012-03-24 Mike Frysinger <vapier@gentoo.org>
456
457 * aclocal.m4, config.in, configure: Regenerate.
458
db2e4d67
MF
4592011-12-03 Mike Frysinger <vapier@gentoo.org>
460
461 * aclocal.m4: New file.
462 * configure: Regenerate.
463
4399a56b
MF
4642011-10-19 Mike Frysinger <vapier@gentoo.org>
465
466 * configure: Regenerate after common/acinclude.m4 update.
467
9c082ca8
MF
4682011-10-17 Mike Frysinger <vapier@gentoo.org>
469
470 * configure.ac: Change include to common/acinclude.m4.
471
6ffe910a
MF
4722011-10-17 Mike Frysinger <vapier@gentoo.org>
473
474 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
475 call. Replace common.m4 include with SIM_AC_COMMON.
476 * configure: Regenerate.
477
2419798b
MF
4782011-07-05 Mike Frysinger <vapier@gentoo.org>
479
480 * interp.c (sim_do_command): Delete.
481
3725885a
RW
4822010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
483
484 * configure: Regenerate.
485
d6416cdc
RW
4862009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
487
81ecdfbb
RW
488 * config.in: Regenerate.
489 * configure: Likewise.
490
d6416cdc
RW
491 * configure: Regenerate.
492
b5bd9624
HPN
4932008-07-11 Hans-Peter Nilsson <hp@axis.com>
494
495 * configure: Regenerate to track ../common/common.m4 changes.
496 * config.in: Ditto.
497
6efef468 4982008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
499 Daniel Jacobowitz <dan@codesourcery.com>
500 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
501
502 * configure: Regenerate.
503
b1bfc053
HPN
5042006-12-21 Hans-Peter Nilsson <hp@axis.com>
505
506 * config.in: Regenerate.
507
e85e3205
RE
5082006-06-13 Richard Earnshaw <rearnsha@arm.com>
509
510 * configure: Regenerated.
511
2f0122dc
DJ
5122006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
513
514 * configure: Regenerated.
515
20e95c23
DJ
5162006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
517
518 * configure: Regenerated.
519
b3a3ffef
HPN
5202006-03-29 Hans-Peter Nilsson <hp@axis.com>
521
522 * configure: Regenerate.
523
2b193c4a
MK
5242005-03-23 Mark Kettenis <kettenis@gnu.org>
525
526 * configure: Regenerate.
527
35695fd6
AC
5282005-01-14 Andrew Cagney <cagney@gnu.org>
529
530 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
531 explicit call to AC_CONFIG_HEADER.
532 * configure: Regenerate.
533
38f48d72
AC
5342005-01-11 Andrew Cagney <cagney@localhost.localdomain>
535
536 * configure: Regenerated to track ../common/aclocal.m4 changes.
537
b7026657
AC
5382005-01-07 Andrew Cagney <cagney@gnu.org>
539
540 * configure.ac: Rename configure.in, require autoconf 2.59.
541 * configure: Re-generate.
542
379832de
HPN
5432004-12-08 Hans-Peter Nilsson <hp@axis.com>
544
545 * configure: Regenerate for ../common/aclocal.m4 update.
546
84b11e2e
AM
5472004-06-15 Alan Modra <amodra@bigpond.net.au>
548
549 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
550 instead of bfd_get_section_size_before_reloc.
551
a685700c
SC
5522003-08-08 Stephane Carrez <stcarrez@nerim.fr>
553
554 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
555 control the translation.
556 (m68hc11tim_print_timer): Update cycle_to_string conversion.
557 (m68hc11tim_timer_event): Fix handling of output
558 compare register with its interrupts.
559 (m68hc11tim_io_write_buffer): Check output compare
560 after setting M6811_TMSK1.
561 (m68hc11tim_io_read_buffer): Fix compilation warning.
562 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
563 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
564 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
565 * interrupts.c (interrupts_info): Likewise.
566 (interrupts_reset): Recognize bootstrap mode.
567 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
568 (_sim_cpu): Add cpu_start_mode.
569 (cycle_to_string): Add flags member.
570 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
571 (cpu_options): Declare new option bootstrap.
572 (cpu_option_handler): Handle it.
573 (cpu_info): Update call to cycle_to_string.
574
77342e5e
SC
5752003-08-08 Stephane Carrez <stcarrez@nerim.fr>
576
577 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
578 the physical address in virtual address.
579 (struct _sim_cpu): Add memory bank members.
580 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
581 * interp.c (sim_hw_configure): Create memory bank according to memory
582 bank parameters.
583 (sim_get_bank_parameters): New function to obtain memory bank config
584 from the symbol table.
585 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
586 (sim_open): Call sim_prepare_for_program.
587 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
588 to check if address is within bank window.
589 (m68hc11cpu_io_read_buffer): Likewise.
590 (attach_m68hc11_regs): Map the memory bank according to memory bank
591 parameters.
592
53b3cd22
SC
5932003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
594
595 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
596
962e9d85
SC
5972003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
598 Gary Piercey <gpiercey@northstar-technical.com>
599
600 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
601 * sim-main.h (print_io_word): Declare.
602 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
603 (tflg1_desc): Likewise for TFLG1.
604 (m68hc11tim_info): Print input and output compare registers
605
9b9f7b3c
SC
6062003-03-02 Stephane Carrez <stcarrez@nerim.fr>
607
608 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
609 to 32 to support memory bank switching; temporarily use 32-bit for
610 WORD_BITSIZE to avoid a bug in sim-common.
611
00416c6e
SC
6122003-03-01 Stephane Carrez <stcarrez@nerim.fr>
613
614 * interp.c (sim_fetch_register): Only store a single byte for
615 1 byte registers.
616
6b4a8935
AC
6172003-02-27 Andrew Cagney <cagney@redhat.com>
618
619 * interp.c (sim_prepare_for_program, sim_open)
620 (sim_create_inferior): Rename _bfd to bfd.
621
099d1b50
SC
6222002-08-13 Stephane Carrez <stcarrez@nerim.fr>
623
624 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
625
31c7c532
SC
6262002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
627
72f4393d 628 * interp.c (sim_prepare_for_program): Look up the image for the
31c7c532
SC
629 reset vector and set cpu_use_elf_start to 1 if not found.
630 (sim_open): Do not set cpu_use_elf_start.
631
39762100
SC
6322002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
633
634 * interp.c (sim_hw_configure): Return 1 for success.
635 (sim_prepare_for_program): Use the sim_hw_configure exit code to
636 return SIM_RC_FAIL.
637
7230d809
SC
6382002-08-13 Stephane Carrez <stcarrez@nerim.fr>
639
640 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
641 bank window to some virtual address to read from extended memory.
642 (m68hc11cpu_io_write_buffer): Likewise for writing.
ca156d78 643 (attach_m68hc11_regs): When use_bank property is defined, attach
7230d809 644 to the 68HC12 16K memory bank window.
7230d809
SC
645 * interp.c (sim_hw_configure): Create memory region for banked
646 memory.
647
dcceded2
SC
6482002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
649
650 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
651 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
652 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
653
abea9e28
SC
6542002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
655
656 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
657 when IO mapping changed, not when internal RAM mapping is changed.
658
63f36def
SC
6592002-08-13 Stephane Carrez <stcarrez@nerim.fr>
660
661 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
662 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
663 (m6811_regs): Add page register.
664 (cpu_set_page, cpu_get_page): New macros.
665 (phys_to_virt): New function.
666 (cpu_get_indexed_operand_addr, cpu_return): Declare.
667 * gencode.c: Identify indirect addressing mode for call and fix daa.
72f4393d 668 (gen_function_entry): New param to tell if src8/dst8 locals are
63f36def
SC
669 necessary.
670 (gen_interpreter): Use it to avoid generation of unused variables.
671 * interp.c (sim_fetch_register): Allow to read page register; page
672 register, A, B and CCR are only 1 byte wide.
673 (sim_store_register): Likewise for writing.
674
c8cca39f
AC
6752002-06-16 Andrew Cagney <ac131313@redhat.com>
676
677 * configure: Regenerated to track ../common/aclocal.m4 changes.
678
3c25f8c7
AC
6792002-06-09 Andrew Cagney <cagney@redhat.com>
680
681 * Makefile.in (INCLUDE): Update path to callback.h.
682 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
683
86596dc8
SC
6842002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
685
686 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
687 (cpu_move16): Likewise.
688 (sim_memory_error): Use sim_io_printf.
689 (cpu_option_handler): Fix compilation warning.
72f4393d 690 * interp.c (sim_hw_configure): Fix compilation warning;
86596dc8
SC
691 remove m68hc12sio@2 device.
692 (sim_open): Likewise.
72f4393d 693 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
86596dc8
SC
694 flags when reset.
695 (cycle_to_string): Improve convertion of cpu cycle number.
696 (m68hc11tim_info): Print info about PACNT.
697 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
698 TCTL1 and TCTL2 registers.
699 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
700
827ec39a
SC
7012002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
702
72f4393d 703 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
827ec39a
SC
704 cpu struct.
705 (sim_hw_configure): Connect the capture input/output events.
706 * sim-main.h (_sim_cpu): New member hw_cpu.
707 (m68hc11cpu_set_oscillator): Declare.
708 (m68hc11cpu_clear_oscillator): Declare.
709 (m68hc11cpu_set_port): Declare.
710 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
711 (m68hc11cpu_ports): New input ports and output ports to reflect
712 the HC11 IOs.
713 (m68hc11_delete): Cleanup any running oscillator.
714 (attach_m68hc11_regs): Create the input oscillators.
715 (make_oscillator): New function.
716 (find_oscillator): New function.
717 (oscillator_handler): New function.
718 (reset_oscillators): New function.
719 (m68hc11cpu_port_event): Handle the new input ports.
720 (m68hc11cpu_set_oscillator): New function.
721 (m68hc11cpu_clear_oscillator): New function.
722 (get_frequency): New function.
723 (m68hc11_option_handler): New function.
724 (m68hc11cpu_set_port): New function.
725 (m68hc11cpu_io_write): Post the port output events.
726 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
727 the output port value.
728 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
729 by latching the TCNT value in the register.
730
5abb9efa
SC
7312002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
732
733 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
734 (cpu_frame_reg, cpu_print_frame): Remove.
735 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
736 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
737 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
738 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
739 * m68hc11_sim.c (cpu_find_frame): Remove.
740 (cpu_create_frame_list): Remove.
741 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
742 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
743 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
744 (cpu_update_frame): Likewise.
745 (cpu_return): Likewise.
746 (cpu_reset): Likewise.
72f4393d 747 (cpu_initialize): Likewise.
5abb9efa
SC
748 * interp.c (sim_do_command): Remove call to cpu_print_frame.
749
26128965
SC
7502002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
751
752 * interrupts.c (interrupts_reset): New function, setup interrupt
753 vector address according to cpu mode.
754 (interrupts_initialize): Move reset portion to the above.
755 (interrupt_names): New table to give a name to interrupts.
756 (idefs): Handle pulse accumulator interrupts.
757 (interrupts_info): Print the interrupt history.
758 (interrupt_option_handler): New function.
759 (interrupt_options): New table of options.
760 (interrupts_update_pending): Keep track of when interrupts are
761 raised and implement breakpoint-on-raise-interrupt.
762 (interrupts_process): Keep track of when interrupts are taken
763 and implement breakpoint-on-interrupt.
764 * interrupts.h (struct interrupt_history): Define.
765 (struct interrupt): Keep track of the interrupt history.
766 (interrupts_reset): Declare.
767 (interrupts_initialize): Update prototype.
768 * m68hc11_sim.c (cpu_reset): Reset interrupts.
769 (cpu_initialize): Cleanup.
770
eefde351
SC
7712001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
772
773 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
774 address.
775 (m68hc11eepr_port_event): Fix detach/attach logic.
776
00d0c012
SC
7772001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
778
779 * Makefile.in (SIM_OBJS): Remove sim-resume.o
780 * interp.c (sim_resume): New function from sim-resume.c, install
781 the stepping event after having processed the pending ticks.
782 (has_stepped): Likewise.
783 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
784
b51c7603
AC
7852001-07-10 Andrew Cagney <ac131313@redhat.com>
786
787 * Makefile.in (gencode): Provide explicit path to gencode.c.
788
81e09ed8
SC
7892001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
790
791 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
792 (m68hc12int.c): Generate using gencode -m6812.
793 (m68hc11int.c): Likewise with -m6811.
794
795 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
796 (m6811_page1_opcodes): Remove duplicate entries.
797 (m6811_page2_opcodes): Likewise.
798 (m6811_page3_opcodes): Likewise.
799 (m6811_page4_opcodes): Likewise.
800 (m6812_page1_opcodes): New table for 68HC12 instructions.
801 (m6812_page2_opcodes): Likewise.
802 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
803 (gen_save_result): Likewise.
804 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
805 (cmp_opcode): New function for opcode comparision.
806 (prepare_table): Sort the opcodes.
807 (gen_interpreter): Prepare all the tables and generate either
808 a 68HC11 or a 68HC12 simulator.
809 (main): New options -m6811 and -m6812.
810
811 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
812 (cpu_special): Simulation of some 68HC12 instructions.
813 (cpu_exg): New function.
814 (cpu_dbcc): Likewise.
815 (cpu_fetch_relbranch16): Likewise.
816 (cpu_push_all): Push according to 68HC11 or 68HC12.
817 (cpu_move16): Likewise.
818 (cpu_move8): Likewise.
819 (cpu_get_indexed_operand16): Likewise.
820 (cpu_get_indexed_operand8): Likewise.
821 (cpu_get_indexed_operand_addr): Likewise.
822 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
823 (cpu_reset): Setup INIT register according to architecture.
72f4393d 824
81e09ed8
SC
825 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
826 (_sim_cpu): Keep track of the cpu being simulated.
827 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
828 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
829 (cpu_m68hc11_pop_uint8): Likewise.
830 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
831 (cpu_m68hc12_pop_uintxx): Likewise.
832 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
833 (cpu_fetch_relbranch16): Likewise.
834 (cpu_interp_m6811): Rename of cpu_interp.
72f4393d 835 (cpu_interp_m6812): New function.
81e09ed8
SC
836 * interp.c (free_state): New function.
837 (dev_list_68hc12): New table.
838 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
839 (sim_hw_configure): New function.
840 (sim_prepare_for_program): New function.
841 (sim_open): Use above new functions.
842 (sim_close): Call free_state().
843 (sim_info): Print info according to cpu.
844 (sim_create_inferior): Use sim_prepare_for_program.
845 (sim_do_command): Configure the hardware after a change of the
846 architecture.
847
11115521
SC
8482001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
849
850 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
851 pending interrupts.
852 * interrupts.c (interrupts_process): Keep track of the last number
853 of masked insn cycles.
854 (interrupts_initialize): Clear last number of masked insn cycles.
855 (interrupts_info): Report them.
72f4393d
L
856 (interrupts_update_pending): Compute clear and set masks of
857 interrupts and clear the interrupt bits before setting them
11115521
SC
858 (due to SCI interrupt sharing).
859 * interrupts.h (struct interrupts): New members last_mask_cycles
860 and xirq_last_mask_cycles.
861
b93775f5
SC
8622000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
863
864 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
865 instead of a hard-coded value.
866 (m68hc11cpu_io_write_buffer): Likewise.
867 (dv_m68hc11_descriptor): Define a 68hc12 device.
868 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
869 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
870 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
871 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
872
639aa4f7
SC
8732000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
874
875 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
876 (m68hc11cpu_delete): Delete handler to detach the address space.
877
6e73e7ed
SC
8782000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
879
880 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
881 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
882 instead of free and malloc.
883
5f186447
SC
8842000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
885
886 * Makefile.in: Was missing from initial patch.
887
9830501b
SC
8882000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
889
890 * interp.c (sim_store_register): Remove soft register hack.
891 (sim_fetch_register): Likewise.
892 (sim_create_inferior): Likewise.
893 * sim-main.h: Likewise.
894
a8afa79a
SC
8952000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
896
897 * interrupts.c (interrupts_update_pending): Clear the mask of
898 pending interrupts here.
899 (interrupts_get_current): Don't clear the mask of pending interrupts.
900
2990a9f4
SC
9012000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
902
903 * sim-main.h: Define cycle_to_string.
72f4393d 904 * dv-m68hc11tim.c (cycle_to_string): New function to translate
2990a9f4
SC
905 the cpu cycle into some formatted time string.
906 (m68hc11tim_print_timer): Use it.
907 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
908 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
909 * interrupts.c (interrupts_info): Likewise.
910 * m68hc11_sim.c (cpu_info): Likewise.
911
401493c8
SC
9122000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
913
914 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
915 interrupt and compare events accurately. Take into account the
916 pending ticks not processed by the simulator yet (introduced a shift).
917 (m68hc11_port_event): Reset the timer interrupt delays.
918 (m68hc11tim_io_read_buffer): Be able to read several bytes.
919 (m68hc11tim_io_write_buffer): Likewise for write.
920 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
921
4d72d17a
SC
9222000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
923
924 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
925 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
926 (m68hc11spi_info): Clarify the status report
927 of the SPI when a byte is being sent.
928 (m68hc11spi_clock): Fix the spi send frame.
72f4393d 929
63348d04
SC
9302000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
931
932 * sim-main.h (m68hc11_map_level): Define level of address mappings.
933 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
934 whether the eeprom is currently mapped or not.
935 (m68hc11eepr_port_event): Use the flag to see if we must unmap
936 or map the eeprom. Update the flag to reflect the current state.
937 Use M6811_EEPROM_LEVEL when mapping the eeprom.
938 (m68hc11eepr_finish): Remove overlap hack.
939 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
940 config and control registers.
941 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
942 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
943 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
944 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
945 (attach_m68hc11spi_regs): Likewise.
946 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
947 (attach_m68hc11tim_regs): Likewise.
948 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
949 (attach_m68hc11sio_regs): Likewise.
950 * interp.c (sim_open): Likewise.
951 * dv-nvram.c (attach_nvram_regs): Likewise.
952
5d031c16
AC
953Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
954
955 * configure, config.in: Regenerate.
956
e0709f50
AC
9572000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
958
959 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
960 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
961 (dv_m6811_detach_address_callback): New function to detach a
962 device from an address space.
963 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
964 config register according to --cpu-config option.
965 * sim-main.h (_sim_cpu): Add cpu_config member.
966 * interp.c (sim_open): Delete specific simulator options.
967 * m68hc11_sim.c (cpu_option_handler): New options
968 --emulos and -cpu-config <val> to configure the simulator.
969 (cpu_initialize): Initialize cpu_config member.
970
9712000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
972
973 * emulos.c: Fix indentation and comments.
974 * gencode.c: Likewise.
975 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
976 (m68hc11tim_io_write_buffer): Write compare registers and
977 setup compare event.
978 * interp.c: Remove unused global variables.
979 * interrupts.c (idefs): New compare interrupts.
980 Fix indentation and comments.
981 * interrupts.h: Likewise.
982
9832000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
984
985 * dv-m68hc11sio.c: Fix indentation and comments.
986 Remove INT_PORT.
987 * dv-m68hc11.c: Fix indentation and comments.
988 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
989 * m68hc11_sim.c (cpu_reset): To here.
990 * dv-m68hc11eepr.c: Fix indentation and comments.
72f4393d 991
e0709f50
AC
9922000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
993
994 * dv-nvram.c: New file, rename from dv-pram.c.
995 * dv-pram.c: Delete file.
996 * sim-main.h: Incorporate m68hc11_sim.h.
997 * m68hc11_sim.h: Delete file.
998 * configure.in: Rename pram into nvram.
999 * interp.c (sim_open): Likewise in creation of device tree.
72f4393d 1000
e0709f50
AC
10012000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1002
1003 * interp.c (sim_open): Create the SPI device.
1004 * dv-m68hc11spi.c: New file for SPI device simulation.
1005 * configure.in (hw_extra_devices): Add SPI device.
1006
10072000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1008
1009 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
1010 (interrupts_process): Separate IRQ and XIRQ accounting.
1011 (interrupts_info): Report XIRQ accounting.
1012 * interrupts.h (struct interrupts): Added accounting for XIRQ.
1013
10142000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
1015
1016 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
1017 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
72f4393d 1018 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
e0709f50
AC
1019 configuration from the 'mode' device tree property.
1020 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
1021 configuration.
1022
10232000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
1024
1025 * sim-main.h: Remove WITH_TARGET_* defines.
1026 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
1027
10282000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
1029
1030 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
1031 1200 baud when cpu is in bootstrap mode.
1032
1033 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
1034 write in the TCTN timer register.
1035
1036 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
1037 by 4 to obtain the E clock frequency.
1038 (sccr2_desc): Use M6811_TIE for TIE bit.
1039 (m68hc11sio_info): Fix baud rate report.
1040
1041 * dv-m68hc11tim.c (to_realtime): Likewise.
1042
1043 * interp.c (sim_open): When building device tree, only provide
1044 devices that do not exist yet.
1045
1046 * emulos.c: Fix compilation pb under Windows.
1047
1048 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
1049 from the 'clock' property.
1050
10512000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
1052
1053 * m68hc11_sim.h (*_REGNUM): Define.
1054 (_sim_cpu): New member cpu_page0_reg table.
1055 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
1056 addresses of soft registers in .page0.
72f4393d 1057 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
e0709f50
AC
1058 to get/set soft registers.
1059
10601999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
1061
1062 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
1063 returning random values.
1064
10651999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
1066
1067 * gencode.c: Fix "subb N,x" that used a instead of b.
1068
10691999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
1070
1071 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
1072
10731999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
1074
1075 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
1076
10771999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
1078
1079 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
1080 register region in the m68hc11cpu struct.
1081 (m68hc11cpu_io_write): When the IO mapping addres changes,
1082 detach the register region and re-attach it at the new address.
1083 (m68hc11cpu_io_read_buffer): Renamed base_address into
1084 attach_address.
1085 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
1086 to m68hc11cpu_io_write.
1087
10881999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
1089
1090 * gencode.c: For sbc8, check the carry and increment the source
1091 before trying to set the carry for the result.
1092
10931999-05-24 John S. Kallal <kallal@voicenet.com>
72f4393d 1094
e0709f50
AC
1095 * interp.c (sim_get_info): Don't crash if the command line is 0.
1096 Define prototype for sim_get_info() and init_system().
1097 (sim_info): Correct call to sim_get_info().
72f4393d 1098
e0709f50
AC
10991999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
1100
1101 * configure.in: Recognize m6811-*-*.
1102 * configure: Regenerate.
1103 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
1104 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
1105 Correct the computation of carry of 8 and 16-bits add and subtract.
1106 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
1107 overflow set in a different manner than add).
1108
11091999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
1110
1111 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
1112 trace message.
1113 * interp.c (sim_open, sim_create_inferior): Initialize the
1114 cpu_elf_start from the ELF header.
1115 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
1116 (cpu_restart): Use cpu_elf_start as the starting address when
1117 the flag is set.
1118 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
1119 exits the simulator (exit status is in D).
1120 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
1121 cpu_elf_star to start execution at address specified in ELF file.
1122
11231999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
1124
1125 * Makefile.in, config.in, configure, configure.in: New files.
1126 * gencode.c: New file, generation of 68HC11 interpreter.
1127 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
1128 for interpreter.
1129 * interrupts.c, interrupts.h: New files, management of interrupts.
72f4393d 1130 * interp.c, sim-main.h,
e0709f50
AC
1131 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
1132 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
1133 68HC11 (dv-pram.c is generic and could probably migrate to common).
1134 * emulos.c: New file, basic emulation of some os.