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