]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
sim: unify symbol table handling
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
5357150c
MF
12016-08-15 Mike Frysinger <vapier@gentoo.org>
2
3 * interp.c (sim_get_bank_parameters): Delete abfd arg.
4 Replace all symbol lookup code with calls to trace_sym_value.
5 (sim_prepare_for_program): Update sim_get_bank_parameters call.
6
6f64fd48
MF
72016-08-13 Mike Frysinger <vapier@gentoo.org>
8
9 * dv-m68hc11.c (m68hc11cpu_port_event): Adjust cpu prototype style.
10 * dv-m68hc11spi.c (m68hc11spi_port_event): Likewise.
11 * dv-m68hc11tim.c (m68hc11tim_print_timer): Likewise.
12 * emulos.c (emul_bench): Likewise.
13 (emul_write): Likewise. Also rename state to cpu.
14 (emul_os): Rename proc to cpu.
15 * gencode.c: Rename proc to cpu.
16 * interrupts.c (interrupts_initialize): Likewise.
17 * interrupts.h (interrupts): Adjust cpu type.
18 (interrupts_initialize): Likewise.
19 * m68hc11_sim.c (cpu_get_reg): Adjust cpu prototype style.
20 (cpu_get_src_reg, cpu_set_dst_reg, cpu_set_reg,
21 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8,
22 cpu_get_indexed_operand16, cpu_dbcc, cpu_exg): Likewise.
23 (cpu_ccr_update_tst8): Rename proc to cpu.
24 * sim-main.h: Rename PROC and proc to cpu.
25
527aaa4a
MF
262016-08-13 Mike Frysinger <vapier@gentoo.org>
27
28 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Drop cast with
29 return value of hw_malloc.
30 * dv-m68hc11sio.c (m68hc11sio_rx_poll): Mark static.
31 (m68hc11sio_tx_poll): Likewise.
32 * dv-m68hc11spi.c (m68hc11spi_clock): Likewise.
33 * dv-m68hc11tim.c (m68hc11tim_timer_event): Likewise.
34 * dv-nvram.c (attach_nvram_regs): Drop cast with
35 return value of hw_malloc.
36 * emulos.c (emul_bench): Mark static.
37 (emul_write): Likewise.
38 (emul_exit): Likewise.
39 * gencode.c: Include stdio.h.
40 (gen_function_entry): Unify two print lines.
41 (cmp_opcode): Mark args const.
42
ce39bd38
MF
432016-01-10 Mike Frysinger <vapier@gentoo.org>
44
45 * config.in, configure: Regenerate.
46
35656e95
MF
472016-01-10 Mike Frysinger <vapier@gentoo.org>
48
49 * configure: Regenerate.
50
16f7876d
MF
512016-01-10 Mike Frysinger <vapier@gentoo.org>
52
53 * configure: Regenerate.
54
e19418e0
MF
552016-01-10 Mike Frysinger <vapier@gentoo.org>
56
57 * configure: Regenerate.
58
99d8e879
MF
592016-01-10 Mike Frysinger <vapier@gentoo.org>
60
61 * configure: Regenerate.
62
347fe5bb
MF
632016-01-10 Mike Frysinger <vapier@gentoo.org>
64
65 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
66 * configure: Regenerate.
67
22be3fbe
MF
682016-01-10 Mike Frysinger <vapier@gentoo.org>
69
70 * configure: Regenerate.
71
0dc73ef7
MF
722016-01-10 Mike Frysinger <vapier@gentoo.org>
73
74 * configure: Regenerate.
75
936df756
MF
762016-01-09 Mike Frysinger <vapier@gentoo.org>
77
78 * config.in, configure: Regenerate.
79
2e3d4f4d
MF
802016-01-06 Mike Frysinger <vapier@gentoo.org>
81
82 * interp.c (sim_open): Mark argv const.
83 (sim_create_inferior): Mark argv and env const.
84
9bbf6f91
MF
852016-01-04 Mike Frysinger <vapier@gentoo.org>
86
87 * configure: Regenerate.
88
77cf2ef5
MF
892016-01-03 Mike Frysinger <vapier@gentoo.org>
90
91 * interp.c (sim_open): Update sim_parse_args comment.
92
61971b86
MF
932016-01-03 Mike Frysinger <vapier@gentoo.org>
94
95 * sim-main.h (sim_state): Delete devices member.
96
0cb8d851
MF
972016-01-03 Mike Frysinger <vapier@gentoo.org>
98
99 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
100 * configure: Regenerate.
101
1ac72f06
MF
1022016-01-02 Mike Frysinger <vapier@gentoo.org>
103
104 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
105 * configure: Regenerate.
106
8e26d677
MF
1072015-12-30 Mike Frysinger <vapier@gentoo.org>
108
109 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
110 * configure: Regenerate.
111
eca4255a
MF
1122015-12-30 Mike Frysinger <vapier@gentoo.org>
113
114 * imterp.c (sim_open): Delete current_alignment and
115 current_target_byte_order assignments.
116 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
117 * configure: Regenerate.
118
e1211e55
MF
1192015-12-30 Mike Frysinger <vapier@gentoo.org>
120
121 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
122 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
123 (sim_store_register): Rename to ...
124 (m68hc11_reg_store): ... this. Delete local cpu var.
125 (sim_fetch_register): Rename to ...
126 (m68hc11_reg_fetch): ... this. Delete local cpu var.
127
5e744ef8
MF
1282015-12-27 Mike Frysinger <vapier@gentoo.org>
129
130 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
131
1b393626
MF
1322015-12-26 Mike Frysinger <vapier@gentoo.org>
133
134 * config.in, configure: Regenerate.
135
26936211
MF
1362015-12-24 Mike Frysinger <vapier@gentoo.org>
137
138 * sim-main.h (SIM_HANDLES_LMA): Delete.
139
84e8e361
MF
1402015-12-24 Mike Frysinger <vapier@gentoo.org>
141
142 * sim-main.h (WITH_WATCHPOINTS): Delete.
143
cdf850e9
MF
1442015-11-17 Mike Frysinger <vapier@gentoo.org>
145
146 * sim-main.h (WITH_MODULO_MEMORY): Delete.
147
797eee42
MF
1482015-11-15 Mike Frysinger <vapier@gentoo.org>
149
150 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
151
d2dfd242
MF
1522015-11-14 Mike Frysinger <vapier@gentoo.org>
153
154 * Makefile.in (SIM_OBJS): Delete sim-load.o.
155
6e4f085c
MF
1562015-11-14 Mike Frysinger <vapier@gentoo.org>
157
158 * interp.c (sim_close): Delete.
159
8d0978fb
MF
1602015-06-23 Mike Frysinger <vapier@gentoo.org>
161
162 * configure: Regenerate.
163
a3487082
MF
1642015-06-12 Mike Frysinger <vapier@gentoo.org>
165
166 * configure: Regenerate.
167
306f4178
MF
1682015-06-12 Mike Frysinger <vapier@gentoo.org>
169
170 * configure: Regenerate.
171
09896bd2
MF
1722015-06-11 Mike Frysinger <vapier@gentoo.org>
173
174 * interp.c (interrupt_names): Delete.
175
a84f8df0
MF
1762015-06-11 Mike Frysinger <vapier@gentoo.org>
177
178 * Makefile.in (SIM_OBJS): Add sim-resume.o
179 * interp.c (has_stepped, sim_resume): Delete.
180
5d19c366
MF
1812015-06-11 Mike Frysinger <vapier@gentoo.org>
182
183 * interp.c (INLINE): Delete define.
184
0a13382c
NC
1852015-04-29 Nick Clifton <nickc@redhat.com>
186
187 PR 18273
188 * gencode.c (gen_fetch_operands): Remove unreachable code.
189
20bca71d
MF
1902015-04-18 Mike Frysinger <vapier@gentoo.org>
191
192 * sim-main.h (SIM_CPU): Delete.
193
7e83aa92
MF
1942015-04-18 Mike Frysinger <vapier@gentoo.org>
195
196 * sim-main.h (sim_cia): Delete.
197
034685f9
MF
1982015-04-17 Mike Frysinger <vapier@gentoo.org>
199
200 * sim-main.h (CIA_GET, CIA_SET): Delete.
201
78e9aa70
MF
2022015-04-15 Mike Frysinger <vapier@gentoo.org>
203
204 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
205 * sim-main.h (STATE_CPU): Delete.
206
bf12d44e
MF
2072015-04-13 Mike Frysinger <vapier@gentoo.org>
208
209 * configure: Regenerate.
210
bea3f671
MF
2112015-04-13 Mike Frysinger <vapier@gentoo.org>
212
213 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
214 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
215 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
216 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
217 (sim_pc_get): Delete.
218 * sim-main.h (SIM_CPU): Define.
219 (STATE_CPU): Drop &.
220 (struct sim_state): Change cpu to an array of pointers.
221
122bbfb5
MF
2222015-04-06 Mike Frysinger <vapier@gentoo.org>
223
224 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
225
2b6ca062
MF
2262015-03-31 Mike Frysinger <vapier@gentoo.org>
227
228 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
229 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
230 variable to restricted.
231 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
232
05f53ed6
MF
2332015-03-24 Mike Frysinger <vapier@gentoo.org>
234
235 * interp.c (sim_pc_get): New function.
236
523ba8f9
MF
2372015-03-24 Mike Frysinger <vapier@gentoo.org>
238
239 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
240 sim_size, sim_trace): Delete.
241 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
242
30452bbe
MF
2432015-03-24 Mike Frysinger <vapier@gentoo.org>
244
245 * configure: Regenerate.
246
64dd13df
MF
2472015-03-23 Mike Frysinger <vapier@gentoo.org>
248
249 * configure: Regenerate.
250
49cd1634
MF
2512015-03-23 Mike Frysinger <vapier@gentoo.org>
252
253 * configure: Regenerate.
254 * configure.ac (m68hc11_extra_objs): Delete.
255 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
256 (SIM_EXTRA_OBJS): Delete.
257
ae7d0cac
MF
2582015-03-16 Mike Frysinger <vapier@gentoo.org>
259
260 * config.in, configure: Regenerate.
261
465fb143
MF
2622015-03-14 Mike Frysinger <vapier@gentoo.org>
263
264 * Makefile.in (SIM_RUN_OBJS): Delete.
265
5cddc23a
MF
2662015-03-14 Mike Frysinger <vapier@gentoo.org>
267
268 * configure.ac (AC_CHECK_HEADERS): Delete.
269 * aclocal.m4, configure: Regenerate.
270
2974be62
AM
2712014-08-19 Alan Modra <amodra@gmail.com>
272
273 * configure: Regenerate.
274
faa743bb
RM
2752014-08-15 Roland McGrath <mcgrathr@google.com>
276
277 * configure: Regenerate.
278 * config.in: Regenerate.
279
1a8a700e
MF
2802014-03-04 Mike Frysinger <vapier@gentoo.org>
281
282 * configure: Regenerate.
283
bf3d9781
AM
2842013-09-23 Alan Modra <amodra@gmail.com>
285
286 * configure: Regenerate.
287
31e6ad7d
MF
2882013-06-03 Mike Frysinger <vapier@gentoo.org>
289
290 * aclocal.m4, configure: Regenerate.
291
d3685d60
TT
2922013-05-10 Freddie Chopin <freddie_chopin@op.pl>
293
294 * configure: Rebuild.
295
1517bd27
MF
2962013-03-26 Mike Frysinger <vapier@gentoo.org>
297
298 * configure: Regenerate.
299
256139f5
JS
3002013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
301
302 * configure.ac: Use $SIM_DV_SOCKSER_O.
303 * configure: Regenerated.
304
5f3ef9d0
JB
3052012-06-15 Joel Brobecker <brobecker@adacore.com>
306
307 * config.in, configure: Regenerate.
308
2232061b
MF
3092012-03-24 Mike Frysinger <vapier@gentoo.org>
310
311 * aclocal.m4, config.in, configure: Regenerate.
312
db2e4d67
MF
3132011-12-03 Mike Frysinger <vapier@gentoo.org>
314
315 * aclocal.m4: New file.
316 * configure: Regenerate.
317
4399a56b
MF
3182011-10-19 Mike Frysinger <vapier@gentoo.org>
319
320 * configure: Regenerate after common/acinclude.m4 update.
321
9c082ca8
MF
3222011-10-17 Mike Frysinger <vapier@gentoo.org>
323
324 * configure.ac: Change include to common/acinclude.m4.
325
6ffe910a
MF
3262011-10-17 Mike Frysinger <vapier@gentoo.org>
327
328 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
329 call. Replace common.m4 include with SIM_AC_COMMON.
330 * configure: Regenerate.
331
2419798b
MF
3322011-07-05 Mike Frysinger <vapier@gentoo.org>
333
334 * interp.c (sim_do_command): Delete.
335
3725885a
RW
3362010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
337
338 * configure: Regenerate.
339
d6416cdc
RW
3402009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
341
81ecdfbb
RW
342 * config.in: Regenerate.
343 * configure: Likewise.
344
d6416cdc
RW
345 * configure: Regenerate.
346
b5bd9624
HPN
3472008-07-11 Hans-Peter Nilsson <hp@axis.com>
348
349 * configure: Regenerate to track ../common/common.m4 changes.
350 * config.in: Ditto.
351
6efef468 3522008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
353 Daniel Jacobowitz <dan@codesourcery.com>
354 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
355
356 * configure: Regenerate.
357
b1bfc053
HPN
3582006-12-21 Hans-Peter Nilsson <hp@axis.com>
359
360 * config.in: Regenerate.
361
e85e3205
RE
3622006-06-13 Richard Earnshaw <rearnsha@arm.com>
363
364 * configure: Regenerated.
365
2f0122dc
DJ
3662006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
367
368 * configure: Regenerated.
369
20e95c23
DJ
3702006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
371
372 * configure: Regenerated.
373
b3a3ffef
HPN
3742006-03-29 Hans-Peter Nilsson <hp@axis.com>
375
376 * configure: Regenerate.
377
2b193c4a
MK
3782005-03-23 Mark Kettenis <kettenis@gnu.org>
379
380 * configure: Regenerate.
381
35695fd6
AC
3822005-01-14 Andrew Cagney <cagney@gnu.org>
383
384 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
385 explicit call to AC_CONFIG_HEADER.
386 * configure: Regenerate.
387
38f48d72
AC
3882005-01-11 Andrew Cagney <cagney@localhost.localdomain>
389
390 * configure: Regenerated to track ../common/aclocal.m4 changes.
391
b7026657
AC
3922005-01-07 Andrew Cagney <cagney@gnu.org>
393
394 * configure.ac: Rename configure.in, require autoconf 2.59.
395 * configure: Re-generate.
396
379832de
HPN
3972004-12-08 Hans-Peter Nilsson <hp@axis.com>
398
399 * configure: Regenerate for ../common/aclocal.m4 update.
400
84b11e2e
AM
4012004-06-15 Alan Modra <amodra@bigpond.net.au>
402
403 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
404 instead of bfd_get_section_size_before_reloc.
405
a685700c
SC
4062003-08-08 Stephane Carrez <stcarrez@nerim.fr>
407
408 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
409 control the translation.
410 (m68hc11tim_print_timer): Update cycle_to_string conversion.
411 (m68hc11tim_timer_event): Fix handling of output
412 compare register with its interrupts.
413 (m68hc11tim_io_write_buffer): Check output compare
414 after setting M6811_TMSK1.
415 (m68hc11tim_io_read_buffer): Fix compilation warning.
416 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
417 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
418 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
419 * interrupts.c (interrupts_info): Likewise.
420 (interrupts_reset): Recognize bootstrap mode.
421 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
422 (_sim_cpu): Add cpu_start_mode.
423 (cycle_to_string): Add flags member.
424 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
425 (cpu_options): Declare new option bootstrap.
426 (cpu_option_handler): Handle it.
427 (cpu_info): Update call to cycle_to_string.
428
77342e5e
SC
4292003-08-08 Stephane Carrez <stcarrez@nerim.fr>
430
431 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
432 the physical address in virtual address.
433 (struct _sim_cpu): Add memory bank members.
434 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
435 * interp.c (sim_hw_configure): Create memory bank according to memory
436 bank parameters.
437 (sim_get_bank_parameters): New function to obtain memory bank config
438 from the symbol table.
439 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
440 (sim_open): Call sim_prepare_for_program.
441 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
442 to check if address is within bank window.
443 (m68hc11cpu_io_read_buffer): Likewise.
444 (attach_m68hc11_regs): Map the memory bank according to memory bank
445 parameters.
446
53b3cd22
SC
4472003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
448
449 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
450
962e9d85
SC
4512003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
452 Gary Piercey <gpiercey@northstar-technical.com>
453
454 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
455 * sim-main.h (print_io_word): Declare.
456 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
457 (tflg1_desc): Likewise for TFLG1.
458 (m68hc11tim_info): Print input and output compare registers
459
9b9f7b3c
SC
4602003-03-02 Stephane Carrez <stcarrez@nerim.fr>
461
462 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
463 to 32 to support memory bank switching; temporarily use 32-bit for
464 WORD_BITSIZE to avoid a bug in sim-common.
465
00416c6e
SC
4662003-03-01 Stephane Carrez <stcarrez@nerim.fr>
467
468 * interp.c (sim_fetch_register): Only store a single byte for
469 1 byte registers.
470
6b4a8935
AC
4712003-02-27 Andrew Cagney <cagney@redhat.com>
472
473 * interp.c (sim_prepare_for_program, sim_open)
474 (sim_create_inferior): Rename _bfd to bfd.
475
099d1b50
SC
4762002-08-13 Stephane Carrez <stcarrez@nerim.fr>
477
478 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
479
31c7c532
SC
4802002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
481
72f4393d 482 * interp.c (sim_prepare_for_program): Look up the image for the
31c7c532
SC
483 reset vector and set cpu_use_elf_start to 1 if not found.
484 (sim_open): Do not set cpu_use_elf_start.
485
39762100
SC
4862002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
487
488 * interp.c (sim_hw_configure): Return 1 for success.
489 (sim_prepare_for_program): Use the sim_hw_configure exit code to
490 return SIM_RC_FAIL.
491
7230d809
SC
4922002-08-13 Stephane Carrez <stcarrez@nerim.fr>
493
494 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
495 bank window to some virtual address to read from extended memory.
496 (m68hc11cpu_io_write_buffer): Likewise for writing.
ca156d78 497 (attach_m68hc11_regs): When use_bank property is defined, attach
7230d809 498 to the 68HC12 16K memory bank window.
7230d809
SC
499 * interp.c (sim_hw_configure): Create memory region for banked
500 memory.
501
dcceded2
SC
5022002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
503
504 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
505 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
506 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
507
abea9e28
SC
5082002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
509
510 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
511 when IO mapping changed, not when internal RAM mapping is changed.
512
63f36def
SC
5132002-08-13 Stephane Carrez <stcarrez@nerim.fr>
514
515 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
516 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
517 (m6811_regs): Add page register.
518 (cpu_set_page, cpu_get_page): New macros.
519 (phys_to_virt): New function.
520 (cpu_get_indexed_operand_addr, cpu_return): Declare.
521 * gencode.c: Identify indirect addressing mode for call and fix daa.
72f4393d 522 (gen_function_entry): New param to tell if src8/dst8 locals are
63f36def
SC
523 necessary.
524 (gen_interpreter): Use it to avoid generation of unused variables.
525 * interp.c (sim_fetch_register): Allow to read page register; page
526 register, A, B and CCR are only 1 byte wide.
527 (sim_store_register): Likewise for writing.
528
c8cca39f
AC
5292002-06-16 Andrew Cagney <ac131313@redhat.com>
530
531 * configure: Regenerated to track ../common/aclocal.m4 changes.
532
3c25f8c7
AC
5332002-06-09 Andrew Cagney <cagney@redhat.com>
534
535 * Makefile.in (INCLUDE): Update path to callback.h.
536 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
537
86596dc8
SC
5382002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
539
540 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
541 (cpu_move16): Likewise.
542 (sim_memory_error): Use sim_io_printf.
543 (cpu_option_handler): Fix compilation warning.
72f4393d 544 * interp.c (sim_hw_configure): Fix compilation warning;
86596dc8
SC
545 remove m68hc12sio@2 device.
546 (sim_open): Likewise.
72f4393d 547 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
86596dc8
SC
548 flags when reset.
549 (cycle_to_string): Improve convertion of cpu cycle number.
550 (m68hc11tim_info): Print info about PACNT.
551 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
552 TCTL1 and TCTL2 registers.
553 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
554
827ec39a
SC
5552002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
556
72f4393d 557 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
827ec39a
SC
558 cpu struct.
559 (sim_hw_configure): Connect the capture input/output events.
560 * sim-main.h (_sim_cpu): New member hw_cpu.
561 (m68hc11cpu_set_oscillator): Declare.
562 (m68hc11cpu_clear_oscillator): Declare.
563 (m68hc11cpu_set_port): Declare.
564 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
565 (m68hc11cpu_ports): New input ports and output ports to reflect
566 the HC11 IOs.
567 (m68hc11_delete): Cleanup any running oscillator.
568 (attach_m68hc11_regs): Create the input oscillators.
569 (make_oscillator): New function.
570 (find_oscillator): New function.
571 (oscillator_handler): New function.
572 (reset_oscillators): New function.
573 (m68hc11cpu_port_event): Handle the new input ports.
574 (m68hc11cpu_set_oscillator): New function.
575 (m68hc11cpu_clear_oscillator): New function.
576 (get_frequency): New function.
577 (m68hc11_option_handler): New function.
578 (m68hc11cpu_set_port): New function.
579 (m68hc11cpu_io_write): Post the port output events.
580 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
581 the output port value.
582 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
583 by latching the TCNT value in the register.
584
5abb9efa
SC
5852002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
586
587 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
588 (cpu_frame_reg, cpu_print_frame): Remove.
589 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
590 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
591 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
592 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
593 * m68hc11_sim.c (cpu_find_frame): Remove.
594 (cpu_create_frame_list): Remove.
595 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
596 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
597 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
598 (cpu_update_frame): Likewise.
599 (cpu_return): Likewise.
600 (cpu_reset): Likewise.
72f4393d 601 (cpu_initialize): Likewise.
5abb9efa
SC
602 * interp.c (sim_do_command): Remove call to cpu_print_frame.
603
26128965
SC
6042002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
605
606 * interrupts.c (interrupts_reset): New function, setup interrupt
607 vector address according to cpu mode.
608 (interrupts_initialize): Move reset portion to the above.
609 (interrupt_names): New table to give a name to interrupts.
610 (idefs): Handle pulse accumulator interrupts.
611 (interrupts_info): Print the interrupt history.
612 (interrupt_option_handler): New function.
613 (interrupt_options): New table of options.
614 (interrupts_update_pending): Keep track of when interrupts are
615 raised and implement breakpoint-on-raise-interrupt.
616 (interrupts_process): Keep track of when interrupts are taken
617 and implement breakpoint-on-interrupt.
618 * interrupts.h (struct interrupt_history): Define.
619 (struct interrupt): Keep track of the interrupt history.
620 (interrupts_reset): Declare.
621 (interrupts_initialize): Update prototype.
622 * m68hc11_sim.c (cpu_reset): Reset interrupts.
623 (cpu_initialize): Cleanup.
624
eefde351
SC
6252001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
626
627 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
628 address.
629 (m68hc11eepr_port_event): Fix detach/attach logic.
630
00d0c012
SC
6312001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
632
633 * Makefile.in (SIM_OBJS): Remove sim-resume.o
634 * interp.c (sim_resume): New function from sim-resume.c, install
635 the stepping event after having processed the pending ticks.
636 (has_stepped): Likewise.
637 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
638
b51c7603
AC
6392001-07-10 Andrew Cagney <ac131313@redhat.com>
640
641 * Makefile.in (gencode): Provide explicit path to gencode.c.
642
81e09ed8
SC
6432001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
644
645 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
646 (m68hc12int.c): Generate using gencode -m6812.
647 (m68hc11int.c): Likewise with -m6811.
648
649 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
650 (m6811_page1_opcodes): Remove duplicate entries.
651 (m6811_page2_opcodes): Likewise.
652 (m6811_page3_opcodes): Likewise.
653 (m6811_page4_opcodes): Likewise.
654 (m6812_page1_opcodes): New table for 68HC12 instructions.
655 (m6812_page2_opcodes): Likewise.
656 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
657 (gen_save_result): Likewise.
658 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
659 (cmp_opcode): New function for opcode comparision.
660 (prepare_table): Sort the opcodes.
661 (gen_interpreter): Prepare all the tables and generate either
662 a 68HC11 or a 68HC12 simulator.
663 (main): New options -m6811 and -m6812.
664
665 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
666 (cpu_special): Simulation of some 68HC12 instructions.
667 (cpu_exg): New function.
668 (cpu_dbcc): Likewise.
669 (cpu_fetch_relbranch16): Likewise.
670 (cpu_push_all): Push according to 68HC11 or 68HC12.
671 (cpu_move16): Likewise.
672 (cpu_move8): Likewise.
673 (cpu_get_indexed_operand16): Likewise.
674 (cpu_get_indexed_operand8): Likewise.
675 (cpu_get_indexed_operand_addr): Likewise.
676 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
677 (cpu_reset): Setup INIT register according to architecture.
72f4393d 678
81e09ed8
SC
679 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
680 (_sim_cpu): Keep track of the cpu being simulated.
681 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
682 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
683 (cpu_m68hc11_pop_uint8): Likewise.
684 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
685 (cpu_m68hc12_pop_uintxx): Likewise.
686 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
687 (cpu_fetch_relbranch16): Likewise.
688 (cpu_interp_m6811): Rename of cpu_interp.
72f4393d 689 (cpu_interp_m6812): New function.
81e09ed8
SC
690 * interp.c (free_state): New function.
691 (dev_list_68hc12): New table.
692 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
693 (sim_hw_configure): New function.
694 (sim_prepare_for_program): New function.
695 (sim_open): Use above new functions.
696 (sim_close): Call free_state().
697 (sim_info): Print info according to cpu.
698 (sim_create_inferior): Use sim_prepare_for_program.
699 (sim_do_command): Configure the hardware after a change of the
700 architecture.
701
11115521
SC
7022001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
703
704 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
705 pending interrupts.
706 * interrupts.c (interrupts_process): Keep track of the last number
707 of masked insn cycles.
708 (interrupts_initialize): Clear last number of masked insn cycles.
709 (interrupts_info): Report them.
72f4393d
L
710 (interrupts_update_pending): Compute clear and set masks of
711 interrupts and clear the interrupt bits before setting them
11115521
SC
712 (due to SCI interrupt sharing).
713 * interrupts.h (struct interrupts): New members last_mask_cycles
714 and xirq_last_mask_cycles.
715
b93775f5
SC
7162000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
717
718 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
719 instead of a hard-coded value.
720 (m68hc11cpu_io_write_buffer): Likewise.
721 (dv_m68hc11_descriptor): Define a 68hc12 device.
722 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
723 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
724 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
725 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
726
639aa4f7
SC
7272000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
728
729 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
730 (m68hc11cpu_delete): Delete handler to detach the address space.
731
6e73e7ed
SC
7322000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
733
734 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
735 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
736 instead of free and malloc.
737
5f186447
SC
7382000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
739
740 * Makefile.in: Was missing from initial patch.
741
9830501b
SC
7422000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
743
744 * interp.c (sim_store_register): Remove soft register hack.
745 (sim_fetch_register): Likewise.
746 (sim_create_inferior): Likewise.
747 * sim-main.h: Likewise.
748
a8afa79a
SC
7492000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
750
751 * interrupts.c (interrupts_update_pending): Clear the mask of
752 pending interrupts here.
753 (interrupts_get_current): Don't clear the mask of pending interrupts.
754
2990a9f4
SC
7552000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
756
757 * sim-main.h: Define cycle_to_string.
72f4393d 758 * dv-m68hc11tim.c (cycle_to_string): New function to translate
2990a9f4
SC
759 the cpu cycle into some formatted time string.
760 (m68hc11tim_print_timer): Use it.
761 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
762 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
763 * interrupts.c (interrupts_info): Likewise.
764 * m68hc11_sim.c (cpu_info): Likewise.
765
401493c8
SC
7662000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
767
768 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
769 interrupt and compare events accurately. Take into account the
770 pending ticks not processed by the simulator yet (introduced a shift).
771 (m68hc11_port_event): Reset the timer interrupt delays.
772 (m68hc11tim_io_read_buffer): Be able to read several bytes.
773 (m68hc11tim_io_write_buffer): Likewise for write.
774 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
775
4d72d17a
SC
7762000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
777
778 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
779 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
780 (m68hc11spi_info): Clarify the status report
781 of the SPI when a byte is being sent.
782 (m68hc11spi_clock): Fix the spi send frame.
72f4393d 783
63348d04
SC
7842000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
785
786 * sim-main.h (m68hc11_map_level): Define level of address mappings.
787 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
788 whether the eeprom is currently mapped or not.
789 (m68hc11eepr_port_event): Use the flag to see if we must unmap
790 or map the eeprom. Update the flag to reflect the current state.
791 Use M6811_EEPROM_LEVEL when mapping the eeprom.
792 (m68hc11eepr_finish): Remove overlap hack.
793 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
794 config and control registers.
795 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
796 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
797 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
798 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
799 (attach_m68hc11spi_regs): Likewise.
800 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
801 (attach_m68hc11tim_regs): Likewise.
802 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
803 (attach_m68hc11sio_regs): Likewise.
804 * interp.c (sim_open): Likewise.
805 * dv-nvram.c (attach_nvram_regs): Likewise.
806
5d031c16
AC
807Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
808
809 * configure, config.in: Regenerate.
810
e0709f50
AC
8112000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
812
813 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
814 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
815 (dv_m6811_detach_address_callback): New function to detach a
816 device from an address space.
817 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
818 config register according to --cpu-config option.
819 * sim-main.h (_sim_cpu): Add cpu_config member.
820 * interp.c (sim_open): Delete specific simulator options.
821 * m68hc11_sim.c (cpu_option_handler): New options
822 --emulos and -cpu-config <val> to configure the simulator.
823 (cpu_initialize): Initialize cpu_config member.
824
8252000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
826
827 * emulos.c: Fix indentation and comments.
828 * gencode.c: Likewise.
829 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
830 (m68hc11tim_io_write_buffer): Write compare registers and
831 setup compare event.
832 * interp.c: Remove unused global variables.
833 * interrupts.c (idefs): New compare interrupts.
834 Fix indentation and comments.
835 * interrupts.h: Likewise.
836
8372000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
838
839 * dv-m68hc11sio.c: Fix indentation and comments.
840 Remove INT_PORT.
841 * dv-m68hc11.c: Fix indentation and comments.
842 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
843 * m68hc11_sim.c (cpu_reset): To here.
844 * dv-m68hc11eepr.c: Fix indentation and comments.
72f4393d 845
e0709f50
AC
8462000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
847
848 * dv-nvram.c: New file, rename from dv-pram.c.
849 * dv-pram.c: Delete file.
850 * sim-main.h: Incorporate m68hc11_sim.h.
851 * m68hc11_sim.h: Delete file.
852 * configure.in: Rename pram into nvram.
853 * interp.c (sim_open): Likewise in creation of device tree.
72f4393d 854
e0709f50
AC
8552000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
856
857 * interp.c (sim_open): Create the SPI device.
858 * dv-m68hc11spi.c: New file for SPI device simulation.
859 * configure.in (hw_extra_devices): Add SPI device.
860
8612000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
862
863 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
864 (interrupts_process): Separate IRQ and XIRQ accounting.
865 (interrupts_info): Report XIRQ accounting.
866 * interrupts.h (struct interrupts): Added accounting for XIRQ.
867
8682000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
869
870 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
871 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
72f4393d 872 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
e0709f50
AC
873 configuration from the 'mode' device tree property.
874 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
875 configuration.
876
8772000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
878
879 * sim-main.h: Remove WITH_TARGET_* defines.
880 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
881
8822000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
883
884 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
885 1200 baud when cpu is in bootstrap mode.
886
887 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
888 write in the TCTN timer register.
889
890 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
891 by 4 to obtain the E clock frequency.
892 (sccr2_desc): Use M6811_TIE for TIE bit.
893 (m68hc11sio_info): Fix baud rate report.
894
895 * dv-m68hc11tim.c (to_realtime): Likewise.
896
897 * interp.c (sim_open): When building device tree, only provide
898 devices that do not exist yet.
899
900 * emulos.c: Fix compilation pb under Windows.
901
902 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
903 from the 'clock' property.
904
9052000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
906
907 * m68hc11_sim.h (*_REGNUM): Define.
908 (_sim_cpu): New member cpu_page0_reg table.
909 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
910 addresses of soft registers in .page0.
72f4393d 911 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
e0709f50
AC
912 to get/set soft registers.
913
9141999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
915
916 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
917 returning random values.
918
9191999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
920
921 * gencode.c: Fix "subb N,x" that used a instead of b.
922
9231999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
924
925 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
926
9271999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
928
929 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
930
9311999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
932
933 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
934 register region in the m68hc11cpu struct.
935 (m68hc11cpu_io_write): When the IO mapping addres changes,
936 detach the register region and re-attach it at the new address.
937 (m68hc11cpu_io_read_buffer): Renamed base_address into
938 attach_address.
939 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
940 to m68hc11cpu_io_write.
941
9421999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
943
944 * gencode.c: For sbc8, check the carry and increment the source
945 before trying to set the carry for the result.
946
9471999-05-24 John S. Kallal <kallal@voicenet.com>
72f4393d 948
e0709f50
AC
949 * interp.c (sim_get_info): Don't crash if the command line is 0.
950 Define prototype for sim_get_info() and init_system().
951 (sim_info): Correct call to sim_get_info().
72f4393d 952
e0709f50
AC
9531999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
954
955 * configure.in: Recognize m6811-*-*.
956 * configure: Regenerate.
957 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
958 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
959 Correct the computation of carry of 8 and 16-bits add and subtract.
960 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
961 overflow set in a different manner than add).
962
9631999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
964
965 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
966 trace message.
967 * interp.c (sim_open, sim_create_inferior): Initialize the
968 cpu_elf_start from the ELF header.
969 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
970 (cpu_restart): Use cpu_elf_start as the starting address when
971 the flag is set.
972 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
973 exits the simulator (exit status is in D).
974 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
975 cpu_elf_star to start execution at address specified in ELF file.
976
9771999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
978
979 * Makefile.in, config.in, configure, configure.in: New files.
980 * gencode.c: New file, generation of 68HC11 interpreter.
981 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
982 for interpreter.
983 * interrupts.c, interrupts.h: New files, management of interrupts.
72f4393d 984 * interp.c, sim-main.h,
e0709f50
AC
985 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
986 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
987 68HC11 (dv-pram.c is generic and could probably migrate to common).
988 * emulos.c: New file, basic emulation of some os.