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