]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
sim: drop targ-vals.def->nltvals.def indirection
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
99d8e879
MF
12016-01-10 Mike Frysinger <vapier@gentoo.org>
2
3 * configure: Regenerate.
4
347fe5bb
MF
52016-01-10 Mike Frysinger <vapier@gentoo.org>
6
7 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
8 * configure: Regenerate.
9
22be3fbe
MF
102016-01-10 Mike Frysinger <vapier@gentoo.org>
11
12 * configure: Regenerate.
13
0dc73ef7
MF
142016-01-10 Mike Frysinger <vapier@gentoo.org>
15
16 * configure: Regenerate.
17
936df756
MF
182016-01-09 Mike Frysinger <vapier@gentoo.org>
19
20 * config.in, configure: Regenerate.
21
2e3d4f4d
MF
222016-01-06 Mike Frysinger <vapier@gentoo.org>
23
24 * interp.c (sim_open): Mark argv const.
25 (sim_create_inferior): Mark argv and env const.
26
9bbf6f91
MF
272016-01-04 Mike Frysinger <vapier@gentoo.org>
28
29 * configure: Regenerate.
30
77cf2ef5
MF
312016-01-03 Mike Frysinger <vapier@gentoo.org>
32
33 * interp.c (sim_open): Update sim_parse_args comment.
34
61971b86
MF
352016-01-03 Mike Frysinger <vapier@gentoo.org>
36
37 * sim-main.h (sim_state): Delete devices member.
38
0cb8d851
MF
392016-01-03 Mike Frysinger <vapier@gentoo.org>
40
41 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
42 * configure: Regenerate.
43
1ac72f06
MF
442016-01-02 Mike Frysinger <vapier@gentoo.org>
45
46 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
47 * configure: Regenerate.
48
8e26d677
MF
492015-12-30 Mike Frysinger <vapier@gentoo.org>
50
51 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
52 * configure: Regenerate.
53
eca4255a
MF
542015-12-30 Mike Frysinger <vapier@gentoo.org>
55
56 * imterp.c (sim_open): Delete current_alignment and
57 current_target_byte_order assignments.
58 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
59 * configure: Regenerate.
60
e1211e55
MF
612015-12-30 Mike Frysinger <vapier@gentoo.org>
62
63 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
64 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
65 (sim_store_register): Rename to ...
66 (m68hc11_reg_store): ... this. Delete local cpu var.
67 (sim_fetch_register): Rename to ...
68 (m68hc11_reg_fetch): ... this. Delete local cpu var.
69
5e744ef8
MF
702015-12-27 Mike Frysinger <vapier@gentoo.org>
71
72 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
73
1b393626
MF
742015-12-26 Mike Frysinger <vapier@gentoo.org>
75
76 * config.in, configure: Regenerate.
77
26936211
MF
782015-12-24 Mike Frysinger <vapier@gentoo.org>
79
80 * sim-main.h (SIM_HANDLES_LMA): Delete.
81
84e8e361
MF
822015-12-24 Mike Frysinger <vapier@gentoo.org>
83
84 * sim-main.h (WITH_WATCHPOINTS): Delete.
85
cdf850e9
MF
862015-11-17 Mike Frysinger <vapier@gentoo.org>
87
88 * sim-main.h (WITH_MODULO_MEMORY): Delete.
89
797eee42
MF
902015-11-15 Mike Frysinger <vapier@gentoo.org>
91
92 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
93
d2dfd242
MF
942015-11-14 Mike Frysinger <vapier@gentoo.org>
95
96 * Makefile.in (SIM_OBJS): Delete sim-load.o.
97
6e4f085c
MF
982015-11-14 Mike Frysinger <vapier@gentoo.org>
99
100 * interp.c (sim_close): Delete.
101
8d0978fb
MF
1022015-06-23 Mike Frysinger <vapier@gentoo.org>
103
104 * configure: Regenerate.
105
a3487082
MF
1062015-06-12 Mike Frysinger <vapier@gentoo.org>
107
108 * configure: Regenerate.
109
306f4178
MF
1102015-06-12 Mike Frysinger <vapier@gentoo.org>
111
112 * configure: Regenerate.
113
09896bd2
MF
1142015-06-11 Mike Frysinger <vapier@gentoo.org>
115
116 * interp.c (interrupt_names): Delete.
117
a84f8df0
MF
1182015-06-11 Mike Frysinger <vapier@gentoo.org>
119
120 * Makefile.in (SIM_OBJS): Add sim-resume.o
121 * interp.c (has_stepped, sim_resume): Delete.
122
5d19c366
MF
1232015-06-11 Mike Frysinger <vapier@gentoo.org>
124
125 * interp.c (INLINE): Delete define.
126
0a13382c
NC
1272015-04-29 Nick Clifton <nickc@redhat.com>
128
129 PR 18273
130 * gencode.c (gen_fetch_operands): Remove unreachable code.
131
20bca71d
MF
1322015-04-18 Mike Frysinger <vapier@gentoo.org>
133
134 * sim-main.h (SIM_CPU): Delete.
135
7e83aa92
MF
1362015-04-18 Mike Frysinger <vapier@gentoo.org>
137
138 * sim-main.h (sim_cia): Delete.
139
034685f9
MF
1402015-04-17 Mike Frysinger <vapier@gentoo.org>
141
142 * sim-main.h (CIA_GET, CIA_SET): Delete.
143
78e9aa70
MF
1442015-04-15 Mike Frysinger <vapier@gentoo.org>
145
146 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
147 * sim-main.h (STATE_CPU): Delete.
148
bf12d44e
MF
1492015-04-13 Mike Frysinger <vapier@gentoo.org>
150
151 * configure: Regenerate.
152
bea3f671
MF
1532015-04-13 Mike Frysinger <vapier@gentoo.org>
154
155 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
156 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
157 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
158 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
159 (sim_pc_get): Delete.
160 * sim-main.h (SIM_CPU): Define.
161 (STATE_CPU): Drop &.
162 (struct sim_state): Change cpu to an array of pointers.
163
122bbfb5
MF
1642015-04-06 Mike Frysinger <vapier@gentoo.org>
165
166 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
167
2b6ca062
MF
1682015-03-31 Mike Frysinger <vapier@gentoo.org>
169
170 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
171 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
172 variable to restricted.
173 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
174
05f53ed6
MF
1752015-03-24 Mike Frysinger <vapier@gentoo.org>
176
177 * interp.c (sim_pc_get): New function.
178
523ba8f9
MF
1792015-03-24 Mike Frysinger <vapier@gentoo.org>
180
181 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
182 sim_size, sim_trace): Delete.
183 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
184
30452bbe
MF
1852015-03-24 Mike Frysinger <vapier@gentoo.org>
186
187 * configure: Regenerate.
188
64dd13df
MF
1892015-03-23 Mike Frysinger <vapier@gentoo.org>
190
191 * configure: Regenerate.
192
49cd1634
MF
1932015-03-23 Mike Frysinger <vapier@gentoo.org>
194
195 * configure: Regenerate.
196 * configure.ac (m68hc11_extra_objs): Delete.
197 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
198 (SIM_EXTRA_OBJS): Delete.
199
ae7d0cac
MF
2002015-03-16 Mike Frysinger <vapier@gentoo.org>
201
202 * config.in, configure: Regenerate.
203
465fb143
MF
2042015-03-14 Mike Frysinger <vapier@gentoo.org>
205
206 * Makefile.in (SIM_RUN_OBJS): Delete.
207
5cddc23a
MF
2082015-03-14 Mike Frysinger <vapier@gentoo.org>
209
210 * configure.ac (AC_CHECK_HEADERS): Delete.
211 * aclocal.m4, configure: Regenerate.
212
2974be62
AM
2132014-08-19 Alan Modra <amodra@gmail.com>
214
215 * configure: Regenerate.
216
faa743bb
RM
2172014-08-15 Roland McGrath <mcgrathr@google.com>
218
219 * configure: Regenerate.
220 * config.in: Regenerate.
221
1a8a700e
MF
2222014-03-04 Mike Frysinger <vapier@gentoo.org>
223
224 * configure: Regenerate.
225
bf3d9781
AM
2262013-09-23 Alan Modra <amodra@gmail.com>
227
228 * configure: Regenerate.
229
31e6ad7d
MF
2302013-06-03 Mike Frysinger <vapier@gentoo.org>
231
232 * aclocal.m4, configure: Regenerate.
233
d3685d60
TT
2342013-05-10 Freddie Chopin <freddie_chopin@op.pl>
235
236 * configure: Rebuild.
237
1517bd27
MF
2382013-03-26 Mike Frysinger <vapier@gentoo.org>
239
240 * configure: Regenerate.
241
256139f5
JS
2422013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
243
244 * configure.ac: Use $SIM_DV_SOCKSER_O.
245 * configure: Regenerated.
246
5f3ef9d0
JB
2472012-06-15 Joel Brobecker <brobecker@adacore.com>
248
249 * config.in, configure: Regenerate.
250
2232061b
MF
2512012-03-24 Mike Frysinger <vapier@gentoo.org>
252
253 * aclocal.m4, config.in, configure: Regenerate.
254
db2e4d67
MF
2552011-12-03 Mike Frysinger <vapier@gentoo.org>
256
257 * aclocal.m4: New file.
258 * configure: Regenerate.
259
4399a56b
MF
2602011-10-19 Mike Frysinger <vapier@gentoo.org>
261
262 * configure: Regenerate after common/acinclude.m4 update.
263
9c082ca8
MF
2642011-10-17 Mike Frysinger <vapier@gentoo.org>
265
266 * configure.ac: Change include to common/acinclude.m4.
267
6ffe910a
MF
2682011-10-17 Mike Frysinger <vapier@gentoo.org>
269
270 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
271 call. Replace common.m4 include with SIM_AC_COMMON.
272 * configure: Regenerate.
273
2419798b
MF
2742011-07-05 Mike Frysinger <vapier@gentoo.org>
275
276 * interp.c (sim_do_command): Delete.
277
3725885a
RW
2782010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
279
280 * configure: Regenerate.
281
d6416cdc
RW
2822009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
283
81ecdfbb
RW
284 * config.in: Regenerate.
285 * configure: Likewise.
286
d6416cdc
RW
287 * configure: Regenerate.
288
b5bd9624
HPN
2892008-07-11 Hans-Peter Nilsson <hp@axis.com>
290
291 * configure: Regenerate to track ../common/common.m4 changes.
292 * config.in: Ditto.
293
6efef468 2942008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
295 Daniel Jacobowitz <dan@codesourcery.com>
296 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
297
298 * configure: Regenerate.
299
b1bfc053
HPN
3002006-12-21 Hans-Peter Nilsson <hp@axis.com>
301
302 * config.in: Regenerate.
303
e85e3205
RE
3042006-06-13 Richard Earnshaw <rearnsha@arm.com>
305
306 * configure: Regenerated.
307
2f0122dc
DJ
3082006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
309
310 * configure: Regenerated.
311
20e95c23
DJ
3122006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
313
314 * configure: Regenerated.
315
b3a3ffef
HPN
3162006-03-29 Hans-Peter Nilsson <hp@axis.com>
317
318 * configure: Regenerate.
319
2b193c4a
MK
3202005-03-23 Mark Kettenis <kettenis@gnu.org>
321
322 * configure: Regenerate.
323
35695fd6
AC
3242005-01-14 Andrew Cagney <cagney@gnu.org>
325
326 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
327 explicit call to AC_CONFIG_HEADER.
328 * configure: Regenerate.
329
38f48d72
AC
3302005-01-11 Andrew Cagney <cagney@localhost.localdomain>
331
332 * configure: Regenerated to track ../common/aclocal.m4 changes.
333
b7026657
AC
3342005-01-07 Andrew Cagney <cagney@gnu.org>
335
336 * configure.ac: Rename configure.in, require autoconf 2.59.
337 * configure: Re-generate.
338
379832de
HPN
3392004-12-08 Hans-Peter Nilsson <hp@axis.com>
340
341 * configure: Regenerate for ../common/aclocal.m4 update.
342
84b11e2e
AM
3432004-06-15 Alan Modra <amodra@bigpond.net.au>
344
345 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
346 instead of bfd_get_section_size_before_reloc.
347
a685700c
SC
3482003-08-08 Stephane Carrez <stcarrez@nerim.fr>
349
350 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
351 control the translation.
352 (m68hc11tim_print_timer): Update cycle_to_string conversion.
353 (m68hc11tim_timer_event): Fix handling of output
354 compare register with its interrupts.
355 (m68hc11tim_io_write_buffer): Check output compare
356 after setting M6811_TMSK1.
357 (m68hc11tim_io_read_buffer): Fix compilation warning.
358 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
359 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
360 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
361 * interrupts.c (interrupts_info): Likewise.
362 (interrupts_reset): Recognize bootstrap mode.
363 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
364 (_sim_cpu): Add cpu_start_mode.
365 (cycle_to_string): Add flags member.
366 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
367 (cpu_options): Declare new option bootstrap.
368 (cpu_option_handler): Handle it.
369 (cpu_info): Update call to cycle_to_string.
370
77342e5e
SC
3712003-08-08 Stephane Carrez <stcarrez@nerim.fr>
372
373 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
374 the physical address in virtual address.
375 (struct _sim_cpu): Add memory bank members.
376 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
377 * interp.c (sim_hw_configure): Create memory bank according to memory
378 bank parameters.
379 (sim_get_bank_parameters): New function to obtain memory bank config
380 from the symbol table.
381 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
382 (sim_open): Call sim_prepare_for_program.
383 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
384 to check if address is within bank window.
385 (m68hc11cpu_io_read_buffer): Likewise.
386 (attach_m68hc11_regs): Map the memory bank according to memory bank
387 parameters.
388
53b3cd22
SC
3892003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
390
391 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
392
962e9d85
SC
3932003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
394 Gary Piercey <gpiercey@northstar-technical.com>
395
396 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
397 * sim-main.h (print_io_word): Declare.
398 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
399 (tflg1_desc): Likewise for TFLG1.
400 (m68hc11tim_info): Print input and output compare registers
401
9b9f7b3c
SC
4022003-03-02 Stephane Carrez <stcarrez@nerim.fr>
403
404 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
405 to 32 to support memory bank switching; temporarily use 32-bit for
406 WORD_BITSIZE to avoid a bug in sim-common.
407
00416c6e
SC
4082003-03-01 Stephane Carrez <stcarrez@nerim.fr>
409
410 * interp.c (sim_fetch_register): Only store a single byte for
411 1 byte registers.
412
6b4a8935
AC
4132003-02-27 Andrew Cagney <cagney@redhat.com>
414
415 * interp.c (sim_prepare_for_program, sim_open)
416 (sim_create_inferior): Rename _bfd to bfd.
417
099d1b50
SC
4182002-08-13 Stephane Carrez <stcarrez@nerim.fr>
419
420 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
421
31c7c532
SC
4222002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
423
72f4393d 424 * interp.c (sim_prepare_for_program): Look up the image for the
31c7c532
SC
425 reset vector and set cpu_use_elf_start to 1 if not found.
426 (sim_open): Do not set cpu_use_elf_start.
427
39762100
SC
4282002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
429
430 * interp.c (sim_hw_configure): Return 1 for success.
431 (sim_prepare_for_program): Use the sim_hw_configure exit code to
432 return SIM_RC_FAIL.
433
7230d809
SC
4342002-08-13 Stephane Carrez <stcarrez@nerim.fr>
435
436 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
437 bank window to some virtual address to read from extended memory.
438 (m68hc11cpu_io_write_buffer): Likewise for writing.
ca156d78 439 (attach_m68hc11_regs): When use_bank property is defined, attach
7230d809 440 to the 68HC12 16K memory bank window.
7230d809
SC
441 * interp.c (sim_hw_configure): Create memory region for banked
442 memory.
443
dcceded2
SC
4442002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
445
446 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
447 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
448 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
449
abea9e28
SC
4502002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
451
452 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
453 when IO mapping changed, not when internal RAM mapping is changed.
454
63f36def
SC
4552002-08-13 Stephane Carrez <stcarrez@nerim.fr>
456
457 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
458 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
459 (m6811_regs): Add page register.
460 (cpu_set_page, cpu_get_page): New macros.
461 (phys_to_virt): New function.
462 (cpu_get_indexed_operand_addr, cpu_return): Declare.
463 * gencode.c: Identify indirect addressing mode for call and fix daa.
72f4393d 464 (gen_function_entry): New param to tell if src8/dst8 locals are
63f36def
SC
465 necessary.
466 (gen_interpreter): Use it to avoid generation of unused variables.
467 * interp.c (sim_fetch_register): Allow to read page register; page
468 register, A, B and CCR are only 1 byte wide.
469 (sim_store_register): Likewise for writing.
470
c8cca39f
AC
4712002-06-16 Andrew Cagney <ac131313@redhat.com>
472
473 * configure: Regenerated to track ../common/aclocal.m4 changes.
474
3c25f8c7
AC
4752002-06-09 Andrew Cagney <cagney@redhat.com>
476
477 * Makefile.in (INCLUDE): Update path to callback.h.
478 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
479
86596dc8
SC
4802002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
481
482 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
483 (cpu_move16): Likewise.
484 (sim_memory_error): Use sim_io_printf.
485 (cpu_option_handler): Fix compilation warning.
72f4393d 486 * interp.c (sim_hw_configure): Fix compilation warning;
86596dc8
SC
487 remove m68hc12sio@2 device.
488 (sim_open): Likewise.
72f4393d 489 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
86596dc8
SC
490 flags when reset.
491 (cycle_to_string): Improve convertion of cpu cycle number.
492 (m68hc11tim_info): Print info about PACNT.
493 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
494 TCTL1 and TCTL2 registers.
495 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
496
827ec39a
SC
4972002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
498
72f4393d 499 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
827ec39a
SC
500 cpu struct.
501 (sim_hw_configure): Connect the capture input/output events.
502 * sim-main.h (_sim_cpu): New member hw_cpu.
503 (m68hc11cpu_set_oscillator): Declare.
504 (m68hc11cpu_clear_oscillator): Declare.
505 (m68hc11cpu_set_port): Declare.
506 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
507 (m68hc11cpu_ports): New input ports and output ports to reflect
508 the HC11 IOs.
509 (m68hc11_delete): Cleanup any running oscillator.
510 (attach_m68hc11_regs): Create the input oscillators.
511 (make_oscillator): New function.
512 (find_oscillator): New function.
513 (oscillator_handler): New function.
514 (reset_oscillators): New function.
515 (m68hc11cpu_port_event): Handle the new input ports.
516 (m68hc11cpu_set_oscillator): New function.
517 (m68hc11cpu_clear_oscillator): New function.
518 (get_frequency): New function.
519 (m68hc11_option_handler): New function.
520 (m68hc11cpu_set_port): New function.
521 (m68hc11cpu_io_write): Post the port output events.
522 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
523 the output port value.
524 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
525 by latching the TCNT value in the register.
526
5abb9efa
SC
5272002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
528
529 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
530 (cpu_frame_reg, cpu_print_frame): Remove.
531 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
532 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
533 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
534 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
535 * m68hc11_sim.c (cpu_find_frame): Remove.
536 (cpu_create_frame_list): Remove.
537 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
538 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
539 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
540 (cpu_update_frame): Likewise.
541 (cpu_return): Likewise.
542 (cpu_reset): Likewise.
72f4393d 543 (cpu_initialize): Likewise.
5abb9efa
SC
544 * interp.c (sim_do_command): Remove call to cpu_print_frame.
545
26128965
SC
5462002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
547
548 * interrupts.c (interrupts_reset): New function, setup interrupt
549 vector address according to cpu mode.
550 (interrupts_initialize): Move reset portion to the above.
551 (interrupt_names): New table to give a name to interrupts.
552 (idefs): Handle pulse accumulator interrupts.
553 (interrupts_info): Print the interrupt history.
554 (interrupt_option_handler): New function.
555 (interrupt_options): New table of options.
556 (interrupts_update_pending): Keep track of when interrupts are
557 raised and implement breakpoint-on-raise-interrupt.
558 (interrupts_process): Keep track of when interrupts are taken
559 and implement breakpoint-on-interrupt.
560 * interrupts.h (struct interrupt_history): Define.
561 (struct interrupt): Keep track of the interrupt history.
562 (interrupts_reset): Declare.
563 (interrupts_initialize): Update prototype.
564 * m68hc11_sim.c (cpu_reset): Reset interrupts.
565 (cpu_initialize): Cleanup.
566
eefde351
SC
5672001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
568
569 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
570 address.
571 (m68hc11eepr_port_event): Fix detach/attach logic.
572
00d0c012
SC
5732001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
574
575 * Makefile.in (SIM_OBJS): Remove sim-resume.o
576 * interp.c (sim_resume): New function from sim-resume.c, install
577 the stepping event after having processed the pending ticks.
578 (has_stepped): Likewise.
579 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
580
b51c7603
AC
5812001-07-10 Andrew Cagney <ac131313@redhat.com>
582
583 * Makefile.in (gencode): Provide explicit path to gencode.c.
584
81e09ed8
SC
5852001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
586
587 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
588 (m68hc12int.c): Generate using gencode -m6812.
589 (m68hc11int.c): Likewise with -m6811.
590
591 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
592 (m6811_page1_opcodes): Remove duplicate entries.
593 (m6811_page2_opcodes): Likewise.
594 (m6811_page3_opcodes): Likewise.
595 (m6811_page4_opcodes): Likewise.
596 (m6812_page1_opcodes): New table for 68HC12 instructions.
597 (m6812_page2_opcodes): Likewise.
598 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
599 (gen_save_result): Likewise.
600 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
601 (cmp_opcode): New function for opcode comparision.
602 (prepare_table): Sort the opcodes.
603 (gen_interpreter): Prepare all the tables and generate either
604 a 68HC11 or a 68HC12 simulator.
605 (main): New options -m6811 and -m6812.
606
607 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
608 (cpu_special): Simulation of some 68HC12 instructions.
609 (cpu_exg): New function.
610 (cpu_dbcc): Likewise.
611 (cpu_fetch_relbranch16): Likewise.
612 (cpu_push_all): Push according to 68HC11 or 68HC12.
613 (cpu_move16): Likewise.
614 (cpu_move8): Likewise.
615 (cpu_get_indexed_operand16): Likewise.
616 (cpu_get_indexed_operand8): Likewise.
617 (cpu_get_indexed_operand_addr): Likewise.
618 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
619 (cpu_reset): Setup INIT register according to architecture.
72f4393d 620
81e09ed8
SC
621 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
622 (_sim_cpu): Keep track of the cpu being simulated.
623 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
624 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
625 (cpu_m68hc11_pop_uint8): Likewise.
626 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
627 (cpu_m68hc12_pop_uintxx): Likewise.
628 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
629 (cpu_fetch_relbranch16): Likewise.
630 (cpu_interp_m6811): Rename of cpu_interp.
72f4393d 631 (cpu_interp_m6812): New function.
81e09ed8
SC
632 * interp.c (free_state): New function.
633 (dev_list_68hc12): New table.
634 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
635 (sim_hw_configure): New function.
636 (sim_prepare_for_program): New function.
637 (sim_open): Use above new functions.
638 (sim_close): Call free_state().
639 (sim_info): Print info according to cpu.
640 (sim_create_inferior): Use sim_prepare_for_program.
641 (sim_do_command): Configure the hardware after a change of the
642 architecture.
643
11115521
SC
6442001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
645
646 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
647 pending interrupts.
648 * interrupts.c (interrupts_process): Keep track of the last number
649 of masked insn cycles.
650 (interrupts_initialize): Clear last number of masked insn cycles.
651 (interrupts_info): Report them.
72f4393d
L
652 (interrupts_update_pending): Compute clear and set masks of
653 interrupts and clear the interrupt bits before setting them
11115521
SC
654 (due to SCI interrupt sharing).
655 * interrupts.h (struct interrupts): New members last_mask_cycles
656 and xirq_last_mask_cycles.
657
b93775f5
SC
6582000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
659
660 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
661 instead of a hard-coded value.
662 (m68hc11cpu_io_write_buffer): Likewise.
663 (dv_m68hc11_descriptor): Define a 68hc12 device.
664 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
665 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
666 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
667 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
668
639aa4f7
SC
6692000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
670
671 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
672 (m68hc11cpu_delete): Delete handler to detach the address space.
673
6e73e7ed
SC
6742000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
675
676 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
677 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
678 instead of free and malloc.
679
5f186447
SC
6802000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
681
682 * Makefile.in: Was missing from initial patch.
683
9830501b
SC
6842000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
685
686 * interp.c (sim_store_register): Remove soft register hack.
687 (sim_fetch_register): Likewise.
688 (sim_create_inferior): Likewise.
689 * sim-main.h: Likewise.
690
a8afa79a
SC
6912000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
692
693 * interrupts.c (interrupts_update_pending): Clear the mask of
694 pending interrupts here.
695 (interrupts_get_current): Don't clear the mask of pending interrupts.
696
2990a9f4
SC
6972000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
698
699 * sim-main.h: Define cycle_to_string.
72f4393d 700 * dv-m68hc11tim.c (cycle_to_string): New function to translate
2990a9f4
SC
701 the cpu cycle into some formatted time string.
702 (m68hc11tim_print_timer): Use it.
703 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
704 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
705 * interrupts.c (interrupts_info): Likewise.
706 * m68hc11_sim.c (cpu_info): Likewise.
707
401493c8
SC
7082000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
709
710 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
711 interrupt and compare events accurately. Take into account the
712 pending ticks not processed by the simulator yet (introduced a shift).
713 (m68hc11_port_event): Reset the timer interrupt delays.
714 (m68hc11tim_io_read_buffer): Be able to read several bytes.
715 (m68hc11tim_io_write_buffer): Likewise for write.
716 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
717
4d72d17a
SC
7182000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
719
720 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
721 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
722 (m68hc11spi_info): Clarify the status report
723 of the SPI when a byte is being sent.
724 (m68hc11spi_clock): Fix the spi send frame.
72f4393d 725
63348d04
SC
7262000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
727
728 * sim-main.h (m68hc11_map_level): Define level of address mappings.
729 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
730 whether the eeprom is currently mapped or not.
731 (m68hc11eepr_port_event): Use the flag to see if we must unmap
732 or map the eeprom. Update the flag to reflect the current state.
733 Use M6811_EEPROM_LEVEL when mapping the eeprom.
734 (m68hc11eepr_finish): Remove overlap hack.
735 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
736 config and control registers.
737 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
738 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
739 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
740 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
741 (attach_m68hc11spi_regs): Likewise.
742 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
743 (attach_m68hc11tim_regs): Likewise.
744 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
745 (attach_m68hc11sio_regs): Likewise.
746 * interp.c (sim_open): Likewise.
747 * dv-nvram.c (attach_nvram_regs): Likewise.
748
5d031c16
AC
749Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
750
751 * configure, config.in: Regenerate.
752
e0709f50
AC
7532000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
754
755 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
756 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
757 (dv_m6811_detach_address_callback): New function to detach a
758 device from an address space.
759 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
760 config register according to --cpu-config option.
761 * sim-main.h (_sim_cpu): Add cpu_config member.
762 * interp.c (sim_open): Delete specific simulator options.
763 * m68hc11_sim.c (cpu_option_handler): New options
764 --emulos and -cpu-config <val> to configure the simulator.
765 (cpu_initialize): Initialize cpu_config member.
766
7672000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
768
769 * emulos.c: Fix indentation and comments.
770 * gencode.c: Likewise.
771 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
772 (m68hc11tim_io_write_buffer): Write compare registers and
773 setup compare event.
774 * interp.c: Remove unused global variables.
775 * interrupts.c (idefs): New compare interrupts.
776 Fix indentation and comments.
777 * interrupts.h: Likewise.
778
7792000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
780
781 * dv-m68hc11sio.c: Fix indentation and comments.
782 Remove INT_PORT.
783 * dv-m68hc11.c: Fix indentation and comments.
784 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
785 * m68hc11_sim.c (cpu_reset): To here.
786 * dv-m68hc11eepr.c: Fix indentation and comments.
72f4393d 787
e0709f50
AC
7882000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
789
790 * dv-nvram.c: New file, rename from dv-pram.c.
791 * dv-pram.c: Delete file.
792 * sim-main.h: Incorporate m68hc11_sim.h.
793 * m68hc11_sim.h: Delete file.
794 * configure.in: Rename pram into nvram.
795 * interp.c (sim_open): Likewise in creation of device tree.
72f4393d 796
e0709f50
AC
7972000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
798
799 * interp.c (sim_open): Create the SPI device.
800 * dv-m68hc11spi.c: New file for SPI device simulation.
801 * configure.in (hw_extra_devices): Add SPI device.
802
8032000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
804
805 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
806 (interrupts_process): Separate IRQ and XIRQ accounting.
807 (interrupts_info): Report XIRQ accounting.
808 * interrupts.h (struct interrupts): Added accounting for XIRQ.
809
8102000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
811
812 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
813 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
72f4393d 814 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
e0709f50
AC
815 configuration from the 'mode' device tree property.
816 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
817 configuration.
818
8192000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
820
821 * sim-main.h: Remove WITH_TARGET_* defines.
822 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
823
8242000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
825
826 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
827 1200 baud when cpu is in bootstrap mode.
828
829 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
830 write in the TCTN timer register.
831
832 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
833 by 4 to obtain the E clock frequency.
834 (sccr2_desc): Use M6811_TIE for TIE bit.
835 (m68hc11sio_info): Fix baud rate report.
836
837 * dv-m68hc11tim.c (to_realtime): Likewise.
838
839 * interp.c (sim_open): When building device tree, only provide
840 devices that do not exist yet.
841
842 * emulos.c: Fix compilation pb under Windows.
843
844 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
845 from the 'clock' property.
846
8472000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
848
849 * m68hc11_sim.h (*_REGNUM): Define.
850 (_sim_cpu): New member cpu_page0_reg table.
851 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
852 addresses of soft registers in .page0.
72f4393d 853 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
e0709f50
AC
854 to get/set soft registers.
855
8561999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
857
858 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
859 returning random values.
860
8611999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
862
863 * gencode.c: Fix "subb N,x" that used a instead of b.
864
8651999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
866
867 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
868
8691999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
870
871 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
872
8731999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
874
875 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
876 register region in the m68hc11cpu struct.
877 (m68hc11cpu_io_write): When the IO mapping addres changes,
878 detach the register region and re-attach it at the new address.
879 (m68hc11cpu_io_read_buffer): Renamed base_address into
880 attach_address.
881 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
882 to m68hc11cpu_io_write.
883
8841999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
885
886 * gencode.c: For sbc8, check the carry and increment the source
887 before trying to set the carry for the result.
888
8891999-05-24 John S. Kallal <kallal@voicenet.com>
72f4393d 890
e0709f50
AC
891 * interp.c (sim_get_info): Don't crash if the command line is 0.
892 Define prototype for sim_get_info() and init_system().
893 (sim_info): Correct call to sim_get_info().
72f4393d 894
e0709f50
AC
8951999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
896
897 * configure.in: Recognize m6811-*-*.
898 * configure: Regenerate.
899 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
900 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
901 Correct the computation of carry of 8 and 16-bits add and subtract.
902 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
903 overflow set in a different manner than add).
904
9051999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
906
907 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
908 trace message.
909 * interp.c (sim_open, sim_create_inferior): Initialize the
910 cpu_elf_start from the ELF header.
911 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
912 (cpu_restart): Use cpu_elf_start as the starting address when
913 the flag is set.
914 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
915 exits the simulator (exit status is in D).
916 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
917 cpu_elf_star to start execution at address specified in ELF file.
918
9191999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
920
921 * Makefile.in, config.in, configure, configure.in: New files.
922 * gencode.c: New file, generation of 68HC11 interpreter.
923 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
924 for interpreter.
925 * interrupts.c, interrupts.h: New files, management of interrupts.
72f4393d 926 * interp.c, sim-main.h,
e0709f50
AC
927 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
928 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
929 68HC11 (dv-pram.c is generic and could probably migrate to common).
930 * emulos.c: New file, basic emulation of some os.