]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
sim: m68hc11: fix up various prototype related warnings
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
527aaa4a
MF
12016-08-13 Mike Frysinger <vapier@gentoo.org>
2
3 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Drop cast with
4 return value of hw_malloc.
5 * dv-m68hc11sio.c (m68hc11sio_rx_poll): Mark static.
6 (m68hc11sio_tx_poll): Likewise.
7 * dv-m68hc11spi.c (m68hc11spi_clock): Likewise.
8 * dv-m68hc11tim.c (m68hc11tim_timer_event): Likewise.
9 * dv-nvram.c (attach_nvram_regs): Drop cast with
10 return value of hw_malloc.
11 * emulos.c (emul_bench): Mark static.
12 (emul_write): Likewise.
13 (emul_exit): Likewise.
14 * gencode.c: Include stdio.h.
15 (gen_function_entry): Unify two print lines.
16 (cmp_opcode): Mark args const.
17
ce39bd38
MF
182016-01-10 Mike Frysinger <vapier@gentoo.org>
19
20 * config.in, configure: Regenerate.
21
35656e95
MF
222016-01-10 Mike Frysinger <vapier@gentoo.org>
23
24 * configure: Regenerate.
25
16f7876d
MF
262016-01-10 Mike Frysinger <vapier@gentoo.org>
27
28 * configure: Regenerate.
29
e19418e0
MF
302016-01-10 Mike Frysinger <vapier@gentoo.org>
31
32 * configure: Regenerate.
33
99d8e879
MF
342016-01-10 Mike Frysinger <vapier@gentoo.org>
35
36 * configure: Regenerate.
37
347fe5bb
MF
382016-01-10 Mike Frysinger <vapier@gentoo.org>
39
40 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
41 * configure: Regenerate.
42
22be3fbe
MF
432016-01-10 Mike Frysinger <vapier@gentoo.org>
44
45 * configure: Regenerate.
46
0dc73ef7
MF
472016-01-10 Mike Frysinger <vapier@gentoo.org>
48
49 * configure: Regenerate.
50
936df756
MF
512016-01-09 Mike Frysinger <vapier@gentoo.org>
52
53 * config.in, configure: Regenerate.
54
2e3d4f4d
MF
552016-01-06 Mike Frysinger <vapier@gentoo.org>
56
57 * interp.c (sim_open): Mark argv const.
58 (sim_create_inferior): Mark argv and env const.
59
9bbf6f91
MF
602016-01-04 Mike Frysinger <vapier@gentoo.org>
61
62 * configure: Regenerate.
63
77cf2ef5
MF
642016-01-03 Mike Frysinger <vapier@gentoo.org>
65
66 * interp.c (sim_open): Update sim_parse_args comment.
67
61971b86
MF
682016-01-03 Mike Frysinger <vapier@gentoo.org>
69
70 * sim-main.h (sim_state): Delete devices member.
71
0cb8d851
MF
722016-01-03 Mike Frysinger <vapier@gentoo.org>
73
74 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
75 * configure: Regenerate.
76
1ac72f06
MF
772016-01-02 Mike Frysinger <vapier@gentoo.org>
78
79 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
80 * configure: Regenerate.
81
8e26d677
MF
822015-12-30 Mike Frysinger <vapier@gentoo.org>
83
84 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
85 * configure: Regenerate.
86
eca4255a
MF
872015-12-30 Mike Frysinger <vapier@gentoo.org>
88
89 * imterp.c (sim_open): Delete current_alignment and
90 current_target_byte_order assignments.
91 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
92 * configure: Regenerate.
93
e1211e55
MF
942015-12-30 Mike Frysinger <vapier@gentoo.org>
95
96 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
97 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
98 (sim_store_register): Rename to ...
99 (m68hc11_reg_store): ... this. Delete local cpu var.
100 (sim_fetch_register): Rename to ...
101 (m68hc11_reg_fetch): ... this. Delete local cpu var.
102
5e744ef8
MF
1032015-12-27 Mike Frysinger <vapier@gentoo.org>
104
105 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
106
1b393626
MF
1072015-12-26 Mike Frysinger <vapier@gentoo.org>
108
109 * config.in, configure: Regenerate.
110
26936211
MF
1112015-12-24 Mike Frysinger <vapier@gentoo.org>
112
113 * sim-main.h (SIM_HANDLES_LMA): Delete.
114
84e8e361
MF
1152015-12-24 Mike Frysinger <vapier@gentoo.org>
116
117 * sim-main.h (WITH_WATCHPOINTS): Delete.
118
cdf850e9
MF
1192015-11-17 Mike Frysinger <vapier@gentoo.org>
120
121 * sim-main.h (WITH_MODULO_MEMORY): Delete.
122
797eee42
MF
1232015-11-15 Mike Frysinger <vapier@gentoo.org>
124
125 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
126
d2dfd242
MF
1272015-11-14 Mike Frysinger <vapier@gentoo.org>
128
129 * Makefile.in (SIM_OBJS): Delete sim-load.o.
130
6e4f085c
MF
1312015-11-14 Mike Frysinger <vapier@gentoo.org>
132
133 * interp.c (sim_close): Delete.
134
8d0978fb
MF
1352015-06-23 Mike Frysinger <vapier@gentoo.org>
136
137 * configure: Regenerate.
138
a3487082
MF
1392015-06-12 Mike Frysinger <vapier@gentoo.org>
140
141 * configure: Regenerate.
142
306f4178
MF
1432015-06-12 Mike Frysinger <vapier@gentoo.org>
144
145 * configure: Regenerate.
146
09896bd2
MF
1472015-06-11 Mike Frysinger <vapier@gentoo.org>
148
149 * interp.c (interrupt_names): Delete.
150
a84f8df0
MF
1512015-06-11 Mike Frysinger <vapier@gentoo.org>
152
153 * Makefile.in (SIM_OBJS): Add sim-resume.o
154 * interp.c (has_stepped, sim_resume): Delete.
155
5d19c366
MF
1562015-06-11 Mike Frysinger <vapier@gentoo.org>
157
158 * interp.c (INLINE): Delete define.
159
0a13382c
NC
1602015-04-29 Nick Clifton <nickc@redhat.com>
161
162 PR 18273
163 * gencode.c (gen_fetch_operands): Remove unreachable code.
164
20bca71d
MF
1652015-04-18 Mike Frysinger <vapier@gentoo.org>
166
167 * sim-main.h (SIM_CPU): Delete.
168
7e83aa92
MF
1692015-04-18 Mike Frysinger <vapier@gentoo.org>
170
171 * sim-main.h (sim_cia): Delete.
172
034685f9
MF
1732015-04-17 Mike Frysinger <vapier@gentoo.org>
174
175 * sim-main.h (CIA_GET, CIA_SET): Delete.
176
78e9aa70
MF
1772015-04-15 Mike Frysinger <vapier@gentoo.org>
178
179 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
180 * sim-main.h (STATE_CPU): Delete.
181
bf12d44e
MF
1822015-04-13 Mike Frysinger <vapier@gentoo.org>
183
184 * configure: Regenerate.
185
bea3f671
MF
1862015-04-13 Mike Frysinger <vapier@gentoo.org>
187
188 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
189 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
190 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
191 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
192 (sim_pc_get): Delete.
193 * sim-main.h (SIM_CPU): Define.
194 (STATE_CPU): Drop &.
195 (struct sim_state): Change cpu to an array of pointers.
196
122bbfb5
MF
1972015-04-06 Mike Frysinger <vapier@gentoo.org>
198
199 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
200
2b6ca062
MF
2012015-03-31 Mike Frysinger <vapier@gentoo.org>
202
203 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
204 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
205 variable to restricted.
206 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
207
05f53ed6
MF
2082015-03-24 Mike Frysinger <vapier@gentoo.org>
209
210 * interp.c (sim_pc_get): New function.
211
523ba8f9
MF
2122015-03-24 Mike Frysinger <vapier@gentoo.org>
213
214 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
215 sim_size, sim_trace): Delete.
216 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
217
30452bbe
MF
2182015-03-24 Mike Frysinger <vapier@gentoo.org>
219
220 * configure: Regenerate.
221
64dd13df
MF
2222015-03-23 Mike Frysinger <vapier@gentoo.org>
223
224 * configure: Regenerate.
225
49cd1634
MF
2262015-03-23 Mike Frysinger <vapier@gentoo.org>
227
228 * configure: Regenerate.
229 * configure.ac (m68hc11_extra_objs): Delete.
230 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
231 (SIM_EXTRA_OBJS): Delete.
232
ae7d0cac
MF
2332015-03-16 Mike Frysinger <vapier@gentoo.org>
234
235 * config.in, configure: Regenerate.
236
465fb143
MF
2372015-03-14 Mike Frysinger <vapier@gentoo.org>
238
239 * Makefile.in (SIM_RUN_OBJS): Delete.
240
5cddc23a
MF
2412015-03-14 Mike Frysinger <vapier@gentoo.org>
242
243 * configure.ac (AC_CHECK_HEADERS): Delete.
244 * aclocal.m4, configure: Regenerate.
245
2974be62
AM
2462014-08-19 Alan Modra <amodra@gmail.com>
247
248 * configure: Regenerate.
249
faa743bb
RM
2502014-08-15 Roland McGrath <mcgrathr@google.com>
251
252 * configure: Regenerate.
253 * config.in: Regenerate.
254
1a8a700e
MF
2552014-03-04 Mike Frysinger <vapier@gentoo.org>
256
257 * configure: Regenerate.
258
bf3d9781
AM
2592013-09-23 Alan Modra <amodra@gmail.com>
260
261 * configure: Regenerate.
262
31e6ad7d
MF
2632013-06-03 Mike Frysinger <vapier@gentoo.org>
264
265 * aclocal.m4, configure: Regenerate.
266
d3685d60
TT
2672013-05-10 Freddie Chopin <freddie_chopin@op.pl>
268
269 * configure: Rebuild.
270
1517bd27
MF
2712013-03-26 Mike Frysinger <vapier@gentoo.org>
272
273 * configure: Regenerate.
274
256139f5
JS
2752013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
276
277 * configure.ac: Use $SIM_DV_SOCKSER_O.
278 * configure: Regenerated.
279
5f3ef9d0
JB
2802012-06-15 Joel Brobecker <brobecker@adacore.com>
281
282 * config.in, configure: Regenerate.
283
2232061b
MF
2842012-03-24 Mike Frysinger <vapier@gentoo.org>
285
286 * aclocal.m4, config.in, configure: Regenerate.
287
db2e4d67
MF
2882011-12-03 Mike Frysinger <vapier@gentoo.org>
289
290 * aclocal.m4: New file.
291 * configure: Regenerate.
292
4399a56b
MF
2932011-10-19 Mike Frysinger <vapier@gentoo.org>
294
295 * configure: Regenerate after common/acinclude.m4 update.
296
9c082ca8
MF
2972011-10-17 Mike Frysinger <vapier@gentoo.org>
298
299 * configure.ac: Change include to common/acinclude.m4.
300
6ffe910a
MF
3012011-10-17 Mike Frysinger <vapier@gentoo.org>
302
303 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
304 call. Replace common.m4 include with SIM_AC_COMMON.
305 * configure: Regenerate.
306
2419798b
MF
3072011-07-05 Mike Frysinger <vapier@gentoo.org>
308
309 * interp.c (sim_do_command): Delete.
310
3725885a
RW
3112010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
312
313 * configure: Regenerate.
314
d6416cdc
RW
3152009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
316
81ecdfbb
RW
317 * config.in: Regenerate.
318 * configure: Likewise.
319
d6416cdc
RW
320 * configure: Regenerate.
321
b5bd9624
HPN
3222008-07-11 Hans-Peter Nilsson <hp@axis.com>
323
324 * configure: Regenerate to track ../common/common.m4 changes.
325 * config.in: Ditto.
326
6efef468 3272008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
328 Daniel Jacobowitz <dan@codesourcery.com>
329 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
330
331 * configure: Regenerate.
332
b1bfc053
HPN
3332006-12-21 Hans-Peter Nilsson <hp@axis.com>
334
335 * config.in: Regenerate.
336
e85e3205
RE
3372006-06-13 Richard Earnshaw <rearnsha@arm.com>
338
339 * configure: Regenerated.
340
2f0122dc
DJ
3412006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
342
343 * configure: Regenerated.
344
20e95c23
DJ
3452006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
346
347 * configure: Regenerated.
348
b3a3ffef
HPN
3492006-03-29 Hans-Peter Nilsson <hp@axis.com>
350
351 * configure: Regenerate.
352
2b193c4a
MK
3532005-03-23 Mark Kettenis <kettenis@gnu.org>
354
355 * configure: Regenerate.
356
35695fd6
AC
3572005-01-14 Andrew Cagney <cagney@gnu.org>
358
359 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
360 explicit call to AC_CONFIG_HEADER.
361 * configure: Regenerate.
362
38f48d72
AC
3632005-01-11 Andrew Cagney <cagney@localhost.localdomain>
364
365 * configure: Regenerated to track ../common/aclocal.m4 changes.
366
b7026657
AC
3672005-01-07 Andrew Cagney <cagney@gnu.org>
368
369 * configure.ac: Rename configure.in, require autoconf 2.59.
370 * configure: Re-generate.
371
379832de
HPN
3722004-12-08 Hans-Peter Nilsson <hp@axis.com>
373
374 * configure: Regenerate for ../common/aclocal.m4 update.
375
84b11e2e
AM
3762004-06-15 Alan Modra <amodra@bigpond.net.au>
377
378 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
379 instead of bfd_get_section_size_before_reloc.
380
a685700c
SC
3812003-08-08 Stephane Carrez <stcarrez@nerim.fr>
382
383 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
384 control the translation.
385 (m68hc11tim_print_timer): Update cycle_to_string conversion.
386 (m68hc11tim_timer_event): Fix handling of output
387 compare register with its interrupts.
388 (m68hc11tim_io_write_buffer): Check output compare
389 after setting M6811_TMSK1.
390 (m68hc11tim_io_read_buffer): Fix compilation warning.
391 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
392 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
393 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
394 * interrupts.c (interrupts_info): Likewise.
395 (interrupts_reset): Recognize bootstrap mode.
396 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
397 (_sim_cpu): Add cpu_start_mode.
398 (cycle_to_string): Add flags member.
399 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
400 (cpu_options): Declare new option bootstrap.
401 (cpu_option_handler): Handle it.
402 (cpu_info): Update call to cycle_to_string.
403
77342e5e
SC
4042003-08-08 Stephane Carrez <stcarrez@nerim.fr>
405
406 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
407 the physical address in virtual address.
408 (struct _sim_cpu): Add memory bank members.
409 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
410 * interp.c (sim_hw_configure): Create memory bank according to memory
411 bank parameters.
412 (sim_get_bank_parameters): New function to obtain memory bank config
413 from the symbol table.
414 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
415 (sim_open): Call sim_prepare_for_program.
416 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
417 to check if address is within bank window.
418 (m68hc11cpu_io_read_buffer): Likewise.
419 (attach_m68hc11_regs): Map the memory bank according to memory bank
420 parameters.
421
53b3cd22
SC
4222003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
423
424 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
425
962e9d85
SC
4262003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
427 Gary Piercey <gpiercey@northstar-technical.com>
428
429 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
430 * sim-main.h (print_io_word): Declare.
431 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
432 (tflg1_desc): Likewise for TFLG1.
433 (m68hc11tim_info): Print input and output compare registers
434
9b9f7b3c
SC
4352003-03-02 Stephane Carrez <stcarrez@nerim.fr>
436
437 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
438 to 32 to support memory bank switching; temporarily use 32-bit for
439 WORD_BITSIZE to avoid a bug in sim-common.
440
00416c6e
SC
4412003-03-01 Stephane Carrez <stcarrez@nerim.fr>
442
443 * interp.c (sim_fetch_register): Only store a single byte for
444 1 byte registers.
445
6b4a8935
AC
4462003-02-27 Andrew Cagney <cagney@redhat.com>
447
448 * interp.c (sim_prepare_for_program, sim_open)
449 (sim_create_inferior): Rename _bfd to bfd.
450
099d1b50
SC
4512002-08-13 Stephane Carrez <stcarrez@nerim.fr>
452
453 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
454
31c7c532
SC
4552002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
456
72f4393d 457 * interp.c (sim_prepare_for_program): Look up the image for the
31c7c532
SC
458 reset vector and set cpu_use_elf_start to 1 if not found.
459 (sim_open): Do not set cpu_use_elf_start.
460
39762100
SC
4612002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
462
463 * interp.c (sim_hw_configure): Return 1 for success.
464 (sim_prepare_for_program): Use the sim_hw_configure exit code to
465 return SIM_RC_FAIL.
466
7230d809
SC
4672002-08-13 Stephane Carrez <stcarrez@nerim.fr>
468
469 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
470 bank window to some virtual address to read from extended memory.
471 (m68hc11cpu_io_write_buffer): Likewise for writing.
ca156d78 472 (attach_m68hc11_regs): When use_bank property is defined, attach
7230d809 473 to the 68HC12 16K memory bank window.
7230d809
SC
474 * interp.c (sim_hw_configure): Create memory region for banked
475 memory.
476
dcceded2
SC
4772002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
478
479 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
480 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
481 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
482
abea9e28
SC
4832002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
484
485 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
486 when IO mapping changed, not when internal RAM mapping is changed.
487
63f36def
SC
4882002-08-13 Stephane Carrez <stcarrez@nerim.fr>
489
490 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
491 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
492 (m6811_regs): Add page register.
493 (cpu_set_page, cpu_get_page): New macros.
494 (phys_to_virt): New function.
495 (cpu_get_indexed_operand_addr, cpu_return): Declare.
496 * gencode.c: Identify indirect addressing mode for call and fix daa.
72f4393d 497 (gen_function_entry): New param to tell if src8/dst8 locals are
63f36def
SC
498 necessary.
499 (gen_interpreter): Use it to avoid generation of unused variables.
500 * interp.c (sim_fetch_register): Allow to read page register; page
501 register, A, B and CCR are only 1 byte wide.
502 (sim_store_register): Likewise for writing.
503
c8cca39f
AC
5042002-06-16 Andrew Cagney <ac131313@redhat.com>
505
506 * configure: Regenerated to track ../common/aclocal.m4 changes.
507
3c25f8c7
AC
5082002-06-09 Andrew Cagney <cagney@redhat.com>
509
510 * Makefile.in (INCLUDE): Update path to callback.h.
511 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
512
86596dc8
SC
5132002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
514
515 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
516 (cpu_move16): Likewise.
517 (sim_memory_error): Use sim_io_printf.
518 (cpu_option_handler): Fix compilation warning.
72f4393d 519 * interp.c (sim_hw_configure): Fix compilation warning;
86596dc8
SC
520 remove m68hc12sio@2 device.
521 (sim_open): Likewise.
72f4393d 522 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
86596dc8
SC
523 flags when reset.
524 (cycle_to_string): Improve convertion of cpu cycle number.
525 (m68hc11tim_info): Print info about PACNT.
526 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
527 TCTL1 and TCTL2 registers.
528 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
529
827ec39a
SC
5302002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
531
72f4393d 532 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
827ec39a
SC
533 cpu struct.
534 (sim_hw_configure): Connect the capture input/output events.
535 * sim-main.h (_sim_cpu): New member hw_cpu.
536 (m68hc11cpu_set_oscillator): Declare.
537 (m68hc11cpu_clear_oscillator): Declare.
538 (m68hc11cpu_set_port): Declare.
539 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
540 (m68hc11cpu_ports): New input ports and output ports to reflect
541 the HC11 IOs.
542 (m68hc11_delete): Cleanup any running oscillator.
543 (attach_m68hc11_regs): Create the input oscillators.
544 (make_oscillator): New function.
545 (find_oscillator): New function.
546 (oscillator_handler): New function.
547 (reset_oscillators): New function.
548 (m68hc11cpu_port_event): Handle the new input ports.
549 (m68hc11cpu_set_oscillator): New function.
550 (m68hc11cpu_clear_oscillator): New function.
551 (get_frequency): New function.
552 (m68hc11_option_handler): New function.
553 (m68hc11cpu_set_port): New function.
554 (m68hc11cpu_io_write): Post the port output events.
555 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
556 the output port value.
557 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
558 by latching the TCNT value in the register.
559
5abb9efa
SC
5602002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
561
562 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
563 (cpu_frame_reg, cpu_print_frame): Remove.
564 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
565 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
566 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
567 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
568 * m68hc11_sim.c (cpu_find_frame): Remove.
569 (cpu_create_frame_list): Remove.
570 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
571 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
572 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
573 (cpu_update_frame): Likewise.
574 (cpu_return): Likewise.
575 (cpu_reset): Likewise.
72f4393d 576 (cpu_initialize): Likewise.
5abb9efa
SC
577 * interp.c (sim_do_command): Remove call to cpu_print_frame.
578
26128965
SC
5792002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
580
581 * interrupts.c (interrupts_reset): New function, setup interrupt
582 vector address according to cpu mode.
583 (interrupts_initialize): Move reset portion to the above.
584 (interrupt_names): New table to give a name to interrupts.
585 (idefs): Handle pulse accumulator interrupts.
586 (interrupts_info): Print the interrupt history.
587 (interrupt_option_handler): New function.
588 (interrupt_options): New table of options.
589 (interrupts_update_pending): Keep track of when interrupts are
590 raised and implement breakpoint-on-raise-interrupt.
591 (interrupts_process): Keep track of when interrupts are taken
592 and implement breakpoint-on-interrupt.
593 * interrupts.h (struct interrupt_history): Define.
594 (struct interrupt): Keep track of the interrupt history.
595 (interrupts_reset): Declare.
596 (interrupts_initialize): Update prototype.
597 * m68hc11_sim.c (cpu_reset): Reset interrupts.
598 (cpu_initialize): Cleanup.
599
eefde351
SC
6002001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
601
602 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
603 address.
604 (m68hc11eepr_port_event): Fix detach/attach logic.
605
00d0c012
SC
6062001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
607
608 * Makefile.in (SIM_OBJS): Remove sim-resume.o
609 * interp.c (sim_resume): New function from sim-resume.c, install
610 the stepping event after having processed the pending ticks.
611 (has_stepped): Likewise.
612 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
613
b51c7603
AC
6142001-07-10 Andrew Cagney <ac131313@redhat.com>
615
616 * Makefile.in (gencode): Provide explicit path to gencode.c.
617
81e09ed8
SC
6182001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
619
620 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
621 (m68hc12int.c): Generate using gencode -m6812.
622 (m68hc11int.c): Likewise with -m6811.
623
624 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
625 (m6811_page1_opcodes): Remove duplicate entries.
626 (m6811_page2_opcodes): Likewise.
627 (m6811_page3_opcodes): Likewise.
628 (m6811_page4_opcodes): Likewise.
629 (m6812_page1_opcodes): New table for 68HC12 instructions.
630 (m6812_page2_opcodes): Likewise.
631 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
632 (gen_save_result): Likewise.
633 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
634 (cmp_opcode): New function for opcode comparision.
635 (prepare_table): Sort the opcodes.
636 (gen_interpreter): Prepare all the tables and generate either
637 a 68HC11 or a 68HC12 simulator.
638 (main): New options -m6811 and -m6812.
639
640 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
641 (cpu_special): Simulation of some 68HC12 instructions.
642 (cpu_exg): New function.
643 (cpu_dbcc): Likewise.
644 (cpu_fetch_relbranch16): Likewise.
645 (cpu_push_all): Push according to 68HC11 or 68HC12.
646 (cpu_move16): Likewise.
647 (cpu_move8): Likewise.
648 (cpu_get_indexed_operand16): Likewise.
649 (cpu_get_indexed_operand8): Likewise.
650 (cpu_get_indexed_operand_addr): Likewise.
651 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
652 (cpu_reset): Setup INIT register according to architecture.
72f4393d 653
81e09ed8
SC
654 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
655 (_sim_cpu): Keep track of the cpu being simulated.
656 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
657 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
658 (cpu_m68hc11_pop_uint8): Likewise.
659 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
660 (cpu_m68hc12_pop_uintxx): Likewise.
661 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
662 (cpu_fetch_relbranch16): Likewise.
663 (cpu_interp_m6811): Rename of cpu_interp.
72f4393d 664 (cpu_interp_m6812): New function.
81e09ed8
SC
665 * interp.c (free_state): New function.
666 (dev_list_68hc12): New table.
667 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
668 (sim_hw_configure): New function.
669 (sim_prepare_for_program): New function.
670 (sim_open): Use above new functions.
671 (sim_close): Call free_state().
672 (sim_info): Print info according to cpu.
673 (sim_create_inferior): Use sim_prepare_for_program.
674 (sim_do_command): Configure the hardware after a change of the
675 architecture.
676
11115521
SC
6772001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
678
679 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
680 pending interrupts.
681 * interrupts.c (interrupts_process): Keep track of the last number
682 of masked insn cycles.
683 (interrupts_initialize): Clear last number of masked insn cycles.
684 (interrupts_info): Report them.
72f4393d
L
685 (interrupts_update_pending): Compute clear and set masks of
686 interrupts and clear the interrupt bits before setting them
11115521
SC
687 (due to SCI interrupt sharing).
688 * interrupts.h (struct interrupts): New members last_mask_cycles
689 and xirq_last_mask_cycles.
690
b93775f5
SC
6912000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
692
693 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
694 instead of a hard-coded value.
695 (m68hc11cpu_io_write_buffer): Likewise.
696 (dv_m68hc11_descriptor): Define a 68hc12 device.
697 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
698 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
699 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
700 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
701
639aa4f7
SC
7022000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
703
704 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
705 (m68hc11cpu_delete): Delete handler to detach the address space.
706
6e73e7ed
SC
7072000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
708
709 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
710 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
711 instead of free and malloc.
712
5f186447
SC
7132000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
714
715 * Makefile.in: Was missing from initial patch.
716
9830501b
SC
7172000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
718
719 * interp.c (sim_store_register): Remove soft register hack.
720 (sim_fetch_register): Likewise.
721 (sim_create_inferior): Likewise.
722 * sim-main.h: Likewise.
723
a8afa79a
SC
7242000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
725
726 * interrupts.c (interrupts_update_pending): Clear the mask of
727 pending interrupts here.
728 (interrupts_get_current): Don't clear the mask of pending interrupts.
729
2990a9f4
SC
7302000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
731
732 * sim-main.h: Define cycle_to_string.
72f4393d 733 * dv-m68hc11tim.c (cycle_to_string): New function to translate
2990a9f4
SC
734 the cpu cycle into some formatted time string.
735 (m68hc11tim_print_timer): Use it.
736 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
737 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
738 * interrupts.c (interrupts_info): Likewise.
739 * m68hc11_sim.c (cpu_info): Likewise.
740
401493c8
SC
7412000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
742
743 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
744 interrupt and compare events accurately. Take into account the
745 pending ticks not processed by the simulator yet (introduced a shift).
746 (m68hc11_port_event): Reset the timer interrupt delays.
747 (m68hc11tim_io_read_buffer): Be able to read several bytes.
748 (m68hc11tim_io_write_buffer): Likewise for write.
749 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
750
4d72d17a
SC
7512000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
752
753 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
754 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
755 (m68hc11spi_info): Clarify the status report
756 of the SPI when a byte is being sent.
757 (m68hc11spi_clock): Fix the spi send frame.
72f4393d 758
63348d04
SC
7592000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
760
761 * sim-main.h (m68hc11_map_level): Define level of address mappings.
762 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
763 whether the eeprom is currently mapped or not.
764 (m68hc11eepr_port_event): Use the flag to see if we must unmap
765 or map the eeprom. Update the flag to reflect the current state.
766 Use M6811_EEPROM_LEVEL when mapping the eeprom.
767 (m68hc11eepr_finish): Remove overlap hack.
768 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
769 config and control registers.
770 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
771 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
772 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
773 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
774 (attach_m68hc11spi_regs): Likewise.
775 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
776 (attach_m68hc11tim_regs): Likewise.
777 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
778 (attach_m68hc11sio_regs): Likewise.
779 * interp.c (sim_open): Likewise.
780 * dv-nvram.c (attach_nvram_regs): Likewise.
781
5d031c16
AC
782Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
783
784 * configure, config.in: Regenerate.
785
e0709f50
AC
7862000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
787
788 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
789 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
790 (dv_m6811_detach_address_callback): New function to detach a
791 device from an address space.
792 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
793 config register according to --cpu-config option.
794 * sim-main.h (_sim_cpu): Add cpu_config member.
795 * interp.c (sim_open): Delete specific simulator options.
796 * m68hc11_sim.c (cpu_option_handler): New options
797 --emulos and -cpu-config <val> to configure the simulator.
798 (cpu_initialize): Initialize cpu_config member.
799
8002000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
801
802 * emulos.c: Fix indentation and comments.
803 * gencode.c: Likewise.
804 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
805 (m68hc11tim_io_write_buffer): Write compare registers and
806 setup compare event.
807 * interp.c: Remove unused global variables.
808 * interrupts.c (idefs): New compare interrupts.
809 Fix indentation and comments.
810 * interrupts.h: Likewise.
811
8122000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
813
814 * dv-m68hc11sio.c: Fix indentation and comments.
815 Remove INT_PORT.
816 * dv-m68hc11.c: Fix indentation and comments.
817 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
818 * m68hc11_sim.c (cpu_reset): To here.
819 * dv-m68hc11eepr.c: Fix indentation and comments.
72f4393d 820
e0709f50
AC
8212000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
822
823 * dv-nvram.c: New file, rename from dv-pram.c.
824 * dv-pram.c: Delete file.
825 * sim-main.h: Incorporate m68hc11_sim.h.
826 * m68hc11_sim.h: Delete file.
827 * configure.in: Rename pram into nvram.
828 * interp.c (sim_open): Likewise in creation of device tree.
72f4393d 829
e0709f50
AC
8302000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
831
832 * interp.c (sim_open): Create the SPI device.
833 * dv-m68hc11spi.c: New file for SPI device simulation.
834 * configure.in (hw_extra_devices): Add SPI device.
835
8362000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
837
838 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
839 (interrupts_process): Separate IRQ and XIRQ accounting.
840 (interrupts_info): Report XIRQ accounting.
841 * interrupts.h (struct interrupts): Added accounting for XIRQ.
842
8432000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
844
845 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
846 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
72f4393d 847 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
e0709f50
AC
848 configuration from the 'mode' device tree property.
849 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
850 configuration.
851
8522000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
853
854 * sim-main.h: Remove WITH_TARGET_* defines.
855 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
856
8572000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
858
859 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
860 1200 baud when cpu is in bootstrap mode.
861
862 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
863 write in the TCTN timer register.
864
865 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
866 by 4 to obtain the E clock frequency.
867 (sccr2_desc): Use M6811_TIE for TIE bit.
868 (m68hc11sio_info): Fix baud rate report.
869
870 * dv-m68hc11tim.c (to_realtime): Likewise.
871
872 * interp.c (sim_open): When building device tree, only provide
873 devices that do not exist yet.
874
875 * emulos.c: Fix compilation pb under Windows.
876
877 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
878 from the 'clock' property.
879
8802000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
881
882 * m68hc11_sim.h (*_REGNUM): Define.
883 (_sim_cpu): New member cpu_page0_reg table.
884 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
885 addresses of soft registers in .page0.
72f4393d 886 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
e0709f50
AC
887 to get/set soft registers.
888
8891999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
890
891 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
892 returning random values.
893
8941999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
895
896 * gencode.c: Fix "subb N,x" that used a instead of b.
897
8981999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
899
900 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
901
9021999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
903
904 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
905
9061999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
907
908 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
909 register region in the m68hc11cpu struct.
910 (m68hc11cpu_io_write): When the IO mapping addres changes,
911 detach the register region and re-attach it at the new address.
912 (m68hc11cpu_io_read_buffer): Renamed base_address into
913 attach_address.
914 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
915 to m68hc11cpu_io_write.
916
9171999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
918
919 * gencode.c: For sbc8, check the carry and increment the source
920 before trying to set the carry for the result.
921
9221999-05-24 John S. Kallal <kallal@voicenet.com>
72f4393d 923
e0709f50
AC
924 * interp.c (sim_get_info): Don't crash if the command line is 0.
925 Define prototype for sim_get_info() and init_system().
926 (sim_info): Correct call to sim_get_info().
72f4393d 927
e0709f50
AC
9281999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
929
930 * configure.in: Recognize m6811-*-*.
931 * configure: Regenerate.
932 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
933 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
934 Correct the computation of carry of 8 and 16-bits add and subtract.
935 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
936 overflow set in a different manner than add).
937
9381999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
939
940 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
941 trace message.
942 * interp.c (sim_open, sim_create_inferior): Initialize the
943 cpu_elf_start from the ELF header.
944 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
945 (cpu_restart): Use cpu_elf_start as the starting address when
946 the flag is set.
947 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
948 exits the simulator (exit status is in D).
949 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
950 cpu_elf_star to start execution at address specified in ELF file.
951
9521999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
953
954 * Makefile.in, config.in, configure, configure.in: New files.
955 * gencode.c: New file, generation of 68HC11 interpreter.
956 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
957 for interpreter.
958 * interrupts.c, interrupts.h: New files, management of interrupts.
72f4393d 959 * interp.c, sim-main.h,
e0709f50
AC
960 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
961 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
962 68HC11 (dv-pram.c is generic and could probably migrate to common).
963 * emulos.c: New file, basic emulation of some os.