]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/m68hc11/ChangeLog
sim: drop --enable-sim-cflags option
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
1 2016-01-10 Mike Frysinger <vapier@gentoo.org>
2
3 * configure: Regenerate.
4
5 2016-01-09 Mike Frysinger <vapier@gentoo.org>
6
7 * config.in, configure: Regenerate.
8
9 2016-01-06 Mike Frysinger <vapier@gentoo.org>
10
11 * interp.c (sim_open): Mark argv const.
12 (sim_create_inferior): Mark argv and env const.
13
14 2016-01-04 Mike Frysinger <vapier@gentoo.org>
15
16 * configure: Regenerate.
17
18 2016-01-03 Mike Frysinger <vapier@gentoo.org>
19
20 * interp.c (sim_open): Update sim_parse_args comment.
21
22 2016-01-03 Mike Frysinger <vapier@gentoo.org>
23
24 * sim-main.h (sim_state): Delete devices member.
25
26 2016-01-03 Mike Frysinger <vapier@gentoo.org>
27
28 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
29 * configure: Regenerate.
30
31 2016-01-02 Mike Frysinger <vapier@gentoo.org>
32
33 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
34 * configure: Regenerate.
35
36 2015-12-30 Mike Frysinger <vapier@gentoo.org>
37
38 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
39 * configure: Regenerate.
40
41 2015-12-30 Mike Frysinger <vapier@gentoo.org>
42
43 * imterp.c (sim_open): Delete current_alignment and
44 current_target_byte_order assignments.
45 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
46 * configure: Regenerate.
47
48 2015-12-30 Mike Frysinger <vapier@gentoo.org>
49
50 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
51 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
52 (sim_store_register): Rename to ...
53 (m68hc11_reg_store): ... this. Delete local cpu var.
54 (sim_fetch_register): Rename to ...
55 (m68hc11_reg_fetch): ... this. Delete local cpu var.
56
57 2015-12-27 Mike Frysinger <vapier@gentoo.org>
58
59 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
60
61 2015-12-26 Mike Frysinger <vapier@gentoo.org>
62
63 * config.in, configure: Regenerate.
64
65 2015-12-24 Mike Frysinger <vapier@gentoo.org>
66
67 * sim-main.h (SIM_HANDLES_LMA): Delete.
68
69 2015-12-24 Mike Frysinger <vapier@gentoo.org>
70
71 * sim-main.h (WITH_WATCHPOINTS): Delete.
72
73 2015-11-17 Mike Frysinger <vapier@gentoo.org>
74
75 * sim-main.h (WITH_MODULO_MEMORY): Delete.
76
77 2015-11-15 Mike Frysinger <vapier@gentoo.org>
78
79 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
80
81 2015-11-14 Mike Frysinger <vapier@gentoo.org>
82
83 * Makefile.in (SIM_OBJS): Delete sim-load.o.
84
85 2015-11-14 Mike Frysinger <vapier@gentoo.org>
86
87 * interp.c (sim_close): Delete.
88
89 2015-06-23 Mike Frysinger <vapier@gentoo.org>
90
91 * configure: Regenerate.
92
93 2015-06-12 Mike Frysinger <vapier@gentoo.org>
94
95 * configure: Regenerate.
96
97 2015-06-12 Mike Frysinger <vapier@gentoo.org>
98
99 * configure: Regenerate.
100
101 2015-06-11 Mike Frysinger <vapier@gentoo.org>
102
103 * interp.c (interrupt_names): Delete.
104
105 2015-06-11 Mike Frysinger <vapier@gentoo.org>
106
107 * Makefile.in (SIM_OBJS): Add sim-resume.o
108 * interp.c (has_stepped, sim_resume): Delete.
109
110 2015-06-11 Mike Frysinger <vapier@gentoo.org>
111
112 * interp.c (INLINE): Delete define.
113
114 2015-04-29 Nick Clifton <nickc@redhat.com>
115
116 PR 18273
117 * gencode.c (gen_fetch_operands): Remove unreachable code.
118
119 2015-04-18 Mike Frysinger <vapier@gentoo.org>
120
121 * sim-main.h (SIM_CPU): Delete.
122
123 2015-04-18 Mike Frysinger <vapier@gentoo.org>
124
125 * sim-main.h (sim_cia): Delete.
126
127 2015-04-17 Mike Frysinger <vapier@gentoo.org>
128
129 * sim-main.h (CIA_GET, CIA_SET): Delete.
130
131 2015-04-15 Mike Frysinger <vapier@gentoo.org>
132
133 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
134 * sim-main.h (STATE_CPU): Delete.
135
136 2015-04-13 Mike Frysinger <vapier@gentoo.org>
137
138 * configure: Regenerate.
139
140 2015-04-13 Mike Frysinger <vapier@gentoo.org>
141
142 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
143 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
144 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
145 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
146 (sim_pc_get): Delete.
147 * sim-main.h (SIM_CPU): Define.
148 (STATE_CPU): Drop &.
149 (struct sim_state): Change cpu to an array of pointers.
150
151 2015-04-06 Mike Frysinger <vapier@gentoo.org>
152
153 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
154
155 2015-03-31 Mike Frysinger <vapier@gentoo.org>
156
157 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
158 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
159 variable to restricted.
160 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
161
162 2015-03-24 Mike Frysinger <vapier@gentoo.org>
163
164 * interp.c (sim_pc_get): New function.
165
166 2015-03-24 Mike Frysinger <vapier@gentoo.org>
167
168 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
169 sim_size, sim_trace): Delete.
170 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
171
172 2015-03-24 Mike Frysinger <vapier@gentoo.org>
173
174 * configure: Regenerate.
175
176 2015-03-23 Mike Frysinger <vapier@gentoo.org>
177
178 * configure: Regenerate.
179
180 2015-03-23 Mike Frysinger <vapier@gentoo.org>
181
182 * configure: Regenerate.
183 * configure.ac (m68hc11_extra_objs): Delete.
184 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
185 (SIM_EXTRA_OBJS): Delete.
186
187 2015-03-16 Mike Frysinger <vapier@gentoo.org>
188
189 * config.in, configure: Regenerate.
190
191 2015-03-14 Mike Frysinger <vapier@gentoo.org>
192
193 * Makefile.in (SIM_RUN_OBJS): Delete.
194
195 2015-03-14 Mike Frysinger <vapier@gentoo.org>
196
197 * configure.ac (AC_CHECK_HEADERS): Delete.
198 * aclocal.m4, configure: Regenerate.
199
200 2014-08-19 Alan Modra <amodra@gmail.com>
201
202 * configure: Regenerate.
203
204 2014-08-15 Roland McGrath <mcgrathr@google.com>
205
206 * configure: Regenerate.
207 * config.in: Regenerate.
208
209 2014-03-04 Mike Frysinger <vapier@gentoo.org>
210
211 * configure: Regenerate.
212
213 2013-09-23 Alan Modra <amodra@gmail.com>
214
215 * configure: Regenerate.
216
217 2013-06-03 Mike Frysinger <vapier@gentoo.org>
218
219 * aclocal.m4, configure: Regenerate.
220
221 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
222
223 * configure: Rebuild.
224
225 2013-03-26 Mike Frysinger <vapier@gentoo.org>
226
227 * configure: Regenerate.
228
229 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
230
231 * configure.ac: Use $SIM_DV_SOCKSER_O.
232 * configure: Regenerated.
233
234 2012-06-15 Joel Brobecker <brobecker@adacore.com>
235
236 * config.in, configure: Regenerate.
237
238 2012-03-24 Mike Frysinger <vapier@gentoo.org>
239
240 * aclocal.m4, config.in, configure: Regenerate.
241
242 2011-12-03 Mike Frysinger <vapier@gentoo.org>
243
244 * aclocal.m4: New file.
245 * configure: Regenerate.
246
247 2011-10-19 Mike Frysinger <vapier@gentoo.org>
248
249 * configure: Regenerate after common/acinclude.m4 update.
250
251 2011-10-17 Mike Frysinger <vapier@gentoo.org>
252
253 * configure.ac: Change include to common/acinclude.m4.
254
255 2011-10-17 Mike Frysinger <vapier@gentoo.org>
256
257 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
258 call. Replace common.m4 include with SIM_AC_COMMON.
259 * configure: Regenerate.
260
261 2011-07-05 Mike Frysinger <vapier@gentoo.org>
262
263 * interp.c (sim_do_command): Delete.
264
265 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
266
267 * configure: Regenerate.
268
269 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
270
271 * config.in: Regenerate.
272 * configure: Likewise.
273
274 * configure: Regenerate.
275
276 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
277
278 * configure: Regenerate to track ../common/common.m4 changes.
279 * config.in: Ditto.
280
281 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
282 Daniel Jacobowitz <dan@codesourcery.com>
283 Joseph Myers <joseph@codesourcery.com>
284
285 * configure: Regenerate.
286
287 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
288
289 * config.in: Regenerate.
290
291 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
292
293 * configure: Regenerated.
294
295 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
296
297 * configure: Regenerated.
298
299 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
300
301 * configure: Regenerated.
302
303 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
304
305 * configure: Regenerate.
306
307 2005-03-23 Mark Kettenis <kettenis@gnu.org>
308
309 * configure: Regenerate.
310
311 2005-01-14 Andrew Cagney <cagney@gnu.org>
312
313 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
314 explicit call to AC_CONFIG_HEADER.
315 * configure: Regenerate.
316
317 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
318
319 * configure: Regenerated to track ../common/aclocal.m4 changes.
320
321 2005-01-07 Andrew Cagney <cagney@gnu.org>
322
323 * configure.ac: Rename configure.in, require autoconf 2.59.
324 * configure: Re-generate.
325
326 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
327
328 * configure: Regenerate for ../common/aclocal.m4 update.
329
330 2004-06-15 Alan Modra <amodra@bigpond.net.au>
331
332 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
333 instead of bfd_get_section_size_before_reloc.
334
335 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>
336
337 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
338 control the translation.
339 (m68hc11tim_print_timer): Update cycle_to_string conversion.
340 (m68hc11tim_timer_event): Fix handling of output
341 compare register with its interrupts.
342 (m68hc11tim_io_write_buffer): Check output compare
343 after setting M6811_TMSK1.
344 (m68hc11tim_io_read_buffer): Fix compilation warning.
345 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
346 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
347 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
348 * interrupts.c (interrupts_info): Likewise.
349 (interrupts_reset): Recognize bootstrap mode.
350 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
351 (_sim_cpu): Add cpu_start_mode.
352 (cycle_to_string): Add flags member.
353 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
354 (cpu_options): Declare new option bootstrap.
355 (cpu_option_handler): Handle it.
356 (cpu_info): Update call to cycle_to_string.
357
358 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>
359
360 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
361 the physical address in virtual address.
362 (struct _sim_cpu): Add memory bank members.
363 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
364 * interp.c (sim_hw_configure): Create memory bank according to memory
365 bank parameters.
366 (sim_get_bank_parameters): New function to obtain memory bank config
367 from the symbol table.
368 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
369 (sim_open): Call sim_prepare_for_program.
370 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
371 to check if address is within bank window.
372 (m68hc11cpu_io_read_buffer): Likewise.
373 (attach_m68hc11_regs): Map the memory bank according to memory bank
374 parameters.
375
376 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
377
378 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
379
380 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
381 Gary Piercey <gpiercey@northstar-technical.com>
382
383 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
384 * sim-main.h (print_io_word): Declare.
385 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
386 (tflg1_desc): Likewise for TFLG1.
387 (m68hc11tim_info): Print input and output compare registers
388
389 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
390
391 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
392 to 32 to support memory bank switching; temporarily use 32-bit for
393 WORD_BITSIZE to avoid a bug in sim-common.
394
395 2003-03-01 Stephane Carrez <stcarrez@nerim.fr>
396
397 * interp.c (sim_fetch_register): Only store a single byte for
398 1 byte registers.
399
400 2003-02-27 Andrew Cagney <cagney@redhat.com>
401
402 * interp.c (sim_prepare_for_program, sim_open)
403 (sim_create_inferior): Rename _bfd to bfd.
404
405 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
406
407 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
408
409 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
410
411 * interp.c (sim_prepare_for_program): Look up the image for the
412 reset vector and set cpu_use_elf_start to 1 if not found.
413 (sim_open): Do not set cpu_use_elf_start.
414
415 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
416
417 * interp.c (sim_hw_configure): Return 1 for success.
418 (sim_prepare_for_program): Use the sim_hw_configure exit code to
419 return SIM_RC_FAIL.
420
421 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
422
423 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
424 bank window to some virtual address to read from extended memory.
425 (m68hc11cpu_io_write_buffer): Likewise for writing.
426 (attach_m68hc11_regs): When use_bank property is defined, attach
427 to the 68HC12 16K memory bank window.
428 * interp.c (sim_hw_configure): Create memory region for banked
429 memory.
430
431 2002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
432
433 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
434 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
435 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
436
437 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
438
439 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
440 when IO mapping changed, not when internal RAM mapping is changed.
441
442 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
443
444 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
445 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
446 (m6811_regs): Add page register.
447 (cpu_set_page, cpu_get_page): New macros.
448 (phys_to_virt): New function.
449 (cpu_get_indexed_operand_addr, cpu_return): Declare.
450 * gencode.c: Identify indirect addressing mode for call and fix daa.
451 (gen_function_entry): New param to tell if src8/dst8 locals are
452 necessary.
453 (gen_interpreter): Use it to avoid generation of unused variables.
454 * interp.c (sim_fetch_register): Allow to read page register; page
455 register, A, B and CCR are only 1 byte wide.
456 (sim_store_register): Likewise for writing.
457
458 2002-06-16 Andrew Cagney <ac131313@redhat.com>
459
460 * configure: Regenerated to track ../common/aclocal.m4 changes.
461
462 2002-06-09 Andrew Cagney <cagney@redhat.com>
463
464 * Makefile.in (INCLUDE): Update path to callback.h.
465 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
466
467 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
468
469 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
470 (cpu_move16): Likewise.
471 (sim_memory_error): Use sim_io_printf.
472 (cpu_option_handler): Fix compilation warning.
473 * interp.c (sim_hw_configure): Fix compilation warning;
474 remove m68hc12sio@2 device.
475 (sim_open): Likewise.
476 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
477 flags when reset.
478 (cycle_to_string): Improve convertion of cpu cycle number.
479 (m68hc11tim_info): Print info about PACNT.
480 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
481 TCTL1 and TCTL2 registers.
482 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
483
484 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
485
486 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
487 cpu struct.
488 (sim_hw_configure): Connect the capture input/output events.
489 * sim-main.h (_sim_cpu): New member hw_cpu.
490 (m68hc11cpu_set_oscillator): Declare.
491 (m68hc11cpu_clear_oscillator): Declare.
492 (m68hc11cpu_set_port): Declare.
493 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
494 (m68hc11cpu_ports): New input ports and output ports to reflect
495 the HC11 IOs.
496 (m68hc11_delete): Cleanup any running oscillator.
497 (attach_m68hc11_regs): Create the input oscillators.
498 (make_oscillator): New function.
499 (find_oscillator): New function.
500 (oscillator_handler): New function.
501 (reset_oscillators): New function.
502 (m68hc11cpu_port_event): Handle the new input ports.
503 (m68hc11cpu_set_oscillator): New function.
504 (m68hc11cpu_clear_oscillator): New function.
505 (get_frequency): New function.
506 (m68hc11_option_handler): New function.
507 (m68hc11cpu_set_port): New function.
508 (m68hc11cpu_io_write): Post the port output events.
509 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
510 the output port value.
511 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
512 by latching the TCNT value in the register.
513
514 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
515
516 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
517 (cpu_frame_reg, cpu_print_frame): Remove.
518 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
519 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
520 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
521 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
522 * m68hc11_sim.c (cpu_find_frame): Remove.
523 (cpu_create_frame_list): Remove.
524 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
525 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
526 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
527 (cpu_update_frame): Likewise.
528 (cpu_return): Likewise.
529 (cpu_reset): Likewise.
530 (cpu_initialize): Likewise.
531 * interp.c (sim_do_command): Remove call to cpu_print_frame.
532
533 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
534
535 * interrupts.c (interrupts_reset): New function, setup interrupt
536 vector address according to cpu mode.
537 (interrupts_initialize): Move reset portion to the above.
538 (interrupt_names): New table to give a name to interrupts.
539 (idefs): Handle pulse accumulator interrupts.
540 (interrupts_info): Print the interrupt history.
541 (interrupt_option_handler): New function.
542 (interrupt_options): New table of options.
543 (interrupts_update_pending): Keep track of when interrupts are
544 raised and implement breakpoint-on-raise-interrupt.
545 (interrupts_process): Keep track of when interrupts are taken
546 and implement breakpoint-on-interrupt.
547 * interrupts.h (struct interrupt_history): Define.
548 (struct interrupt): Keep track of the interrupt history.
549 (interrupts_reset): Declare.
550 (interrupts_initialize): Update prototype.
551 * m68hc11_sim.c (cpu_reset): Reset interrupts.
552 (cpu_initialize): Cleanup.
553
554 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
555
556 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
557 address.
558 (m68hc11eepr_port_event): Fix detach/attach logic.
559
560 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
561
562 * Makefile.in (SIM_OBJS): Remove sim-resume.o
563 * interp.c (sim_resume): New function from sim-resume.c, install
564 the stepping event after having processed the pending ticks.
565 (has_stepped): Likewise.
566 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
567
568 2001-07-10 Andrew Cagney <ac131313@redhat.com>
569
570 * Makefile.in (gencode): Provide explicit path to gencode.c.
571
572 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
573
574 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
575 (m68hc12int.c): Generate using gencode -m6812.
576 (m68hc11int.c): Likewise with -m6811.
577
578 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
579 (m6811_page1_opcodes): Remove duplicate entries.
580 (m6811_page2_opcodes): Likewise.
581 (m6811_page3_opcodes): Likewise.
582 (m6811_page4_opcodes): Likewise.
583 (m6812_page1_opcodes): New table for 68HC12 instructions.
584 (m6812_page2_opcodes): Likewise.
585 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
586 (gen_save_result): Likewise.
587 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
588 (cmp_opcode): New function for opcode comparision.
589 (prepare_table): Sort the opcodes.
590 (gen_interpreter): Prepare all the tables and generate either
591 a 68HC11 or a 68HC12 simulator.
592 (main): New options -m6811 and -m6812.
593
594 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
595 (cpu_special): Simulation of some 68HC12 instructions.
596 (cpu_exg): New function.
597 (cpu_dbcc): Likewise.
598 (cpu_fetch_relbranch16): Likewise.
599 (cpu_push_all): Push according to 68HC11 or 68HC12.
600 (cpu_move16): Likewise.
601 (cpu_move8): Likewise.
602 (cpu_get_indexed_operand16): Likewise.
603 (cpu_get_indexed_operand8): Likewise.
604 (cpu_get_indexed_operand_addr): Likewise.
605 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
606 (cpu_reset): Setup INIT register according to architecture.
607
608 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
609 (_sim_cpu): Keep track of the cpu being simulated.
610 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
611 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
612 (cpu_m68hc11_pop_uint8): Likewise.
613 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
614 (cpu_m68hc12_pop_uintxx): Likewise.
615 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
616 (cpu_fetch_relbranch16): Likewise.
617 (cpu_interp_m6811): Rename of cpu_interp.
618 (cpu_interp_m6812): New function.
619 * interp.c (free_state): New function.
620 (dev_list_68hc12): New table.
621 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
622 (sim_hw_configure): New function.
623 (sim_prepare_for_program): New function.
624 (sim_open): Use above new functions.
625 (sim_close): Call free_state().
626 (sim_info): Print info according to cpu.
627 (sim_create_inferior): Use sim_prepare_for_program.
628 (sim_do_command): Configure the hardware after a change of the
629 architecture.
630
631 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
632
633 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
634 pending interrupts.
635 * interrupts.c (interrupts_process): Keep track of the last number
636 of masked insn cycles.
637 (interrupts_initialize): Clear last number of masked insn cycles.
638 (interrupts_info): Report them.
639 (interrupts_update_pending): Compute clear and set masks of
640 interrupts and clear the interrupt bits before setting them
641 (due to SCI interrupt sharing).
642 * interrupts.h (struct interrupts): New members last_mask_cycles
643 and xirq_last_mask_cycles.
644
645 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
646
647 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
648 instead of a hard-coded value.
649 (m68hc11cpu_io_write_buffer): Likewise.
650 (dv_m68hc11_descriptor): Define a 68hc12 device.
651 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
652 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
653 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
654 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
655
656 2000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
657
658 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
659 (m68hc11cpu_delete): Delete handler to detach the address space.
660
661 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
662
663 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
664 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
665 instead of free and malloc.
666
667 2000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
668
669 * Makefile.in: Was missing from initial patch.
670
671 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
672
673 * interp.c (sim_store_register): Remove soft register hack.
674 (sim_fetch_register): Likewise.
675 (sim_create_inferior): Likewise.
676 * sim-main.h: Likewise.
677
678 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
679
680 * interrupts.c (interrupts_update_pending): Clear the mask of
681 pending interrupts here.
682 (interrupts_get_current): Don't clear the mask of pending interrupts.
683
684 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
685
686 * sim-main.h: Define cycle_to_string.
687 * dv-m68hc11tim.c (cycle_to_string): New function to translate
688 the cpu cycle into some formatted time string.
689 (m68hc11tim_print_timer): Use it.
690 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
691 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
692 * interrupts.c (interrupts_info): Likewise.
693 * m68hc11_sim.c (cpu_info): Likewise.
694
695 2000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
696
697 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
698 interrupt and compare events accurately. Take into account the
699 pending ticks not processed by the simulator yet (introduced a shift).
700 (m68hc11_port_event): Reset the timer interrupt delays.
701 (m68hc11tim_io_read_buffer): Be able to read several bytes.
702 (m68hc11tim_io_write_buffer): Likewise for write.
703 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
704
705 2000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
706
707 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
708 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
709 (m68hc11spi_info): Clarify the status report
710 of the SPI when a byte is being sent.
711 (m68hc11spi_clock): Fix the spi send frame.
712
713 2000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
714
715 * sim-main.h (m68hc11_map_level): Define level of address mappings.
716 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
717 whether the eeprom is currently mapped or not.
718 (m68hc11eepr_port_event): Use the flag to see if we must unmap
719 or map the eeprom. Update the flag to reflect the current state.
720 Use M6811_EEPROM_LEVEL when mapping the eeprom.
721 (m68hc11eepr_finish): Remove overlap hack.
722 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
723 config and control registers.
724 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
725 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
726 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
727 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
728 (attach_m68hc11spi_regs): Likewise.
729 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
730 (attach_m68hc11tim_regs): Likewise.
731 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
732 (attach_m68hc11sio_regs): Likewise.
733 * interp.c (sim_open): Likewise.
734 * dv-nvram.c (attach_nvram_regs): Likewise.
735
736 Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
737
738 * configure, config.in: Regenerate.
739
740 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
741
742 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
743 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
744 (dv_m6811_detach_address_callback): New function to detach a
745 device from an address space.
746 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
747 config register according to --cpu-config option.
748 * sim-main.h (_sim_cpu): Add cpu_config member.
749 * interp.c (sim_open): Delete specific simulator options.
750 * m68hc11_sim.c (cpu_option_handler): New options
751 --emulos and -cpu-config <val> to configure the simulator.
752 (cpu_initialize): Initialize cpu_config member.
753
754 2000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
755
756 * emulos.c: Fix indentation and comments.
757 * gencode.c: Likewise.
758 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
759 (m68hc11tim_io_write_buffer): Write compare registers and
760 setup compare event.
761 * interp.c: Remove unused global variables.
762 * interrupts.c (idefs): New compare interrupts.
763 Fix indentation and comments.
764 * interrupts.h: Likewise.
765
766 2000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
767
768 * dv-m68hc11sio.c: Fix indentation and comments.
769 Remove INT_PORT.
770 * dv-m68hc11.c: Fix indentation and comments.
771 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
772 * m68hc11_sim.c (cpu_reset): To here.
773 * dv-m68hc11eepr.c: Fix indentation and comments.
774
775 2000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
776
777 * dv-nvram.c: New file, rename from dv-pram.c.
778 * dv-pram.c: Delete file.
779 * sim-main.h: Incorporate m68hc11_sim.h.
780 * m68hc11_sim.h: Delete file.
781 * configure.in: Rename pram into nvram.
782 * interp.c (sim_open): Likewise in creation of device tree.
783
784 2000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
785
786 * interp.c (sim_open): Create the SPI device.
787 * dv-m68hc11spi.c: New file for SPI device simulation.
788 * configure.in (hw_extra_devices): Add SPI device.
789
790 2000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
791
792 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
793 (interrupts_process): Separate IRQ and XIRQ accounting.
794 (interrupts_info): Report XIRQ accounting.
795 * interrupts.h (struct interrupts): Added accounting for XIRQ.
796
797 2000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
798
799 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
800 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
801 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
802 configuration from the 'mode' device tree property.
803 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
804 configuration.
805
806 2000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
807
808 * sim-main.h: Remove WITH_TARGET_* defines.
809 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
810
811 2000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
812
813 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
814 1200 baud when cpu is in bootstrap mode.
815
816 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
817 write in the TCTN timer register.
818
819 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
820 by 4 to obtain the E clock frequency.
821 (sccr2_desc): Use M6811_TIE for TIE bit.
822 (m68hc11sio_info): Fix baud rate report.
823
824 * dv-m68hc11tim.c (to_realtime): Likewise.
825
826 * interp.c (sim_open): When building device tree, only provide
827 devices that do not exist yet.
828
829 * emulos.c: Fix compilation pb under Windows.
830
831 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
832 from the 'clock' property.
833
834 2000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
835
836 * m68hc11_sim.h (*_REGNUM): Define.
837 (_sim_cpu): New member cpu_page0_reg table.
838 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
839 addresses of soft registers in .page0.
840 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
841 to get/set soft registers.
842
843 1999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
844
845 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
846 returning random values.
847
848 1999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
849
850 * gencode.c: Fix "subb N,x" that used a instead of b.
851
852 1999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
853
854 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
855
856 1999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
857
858 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
859
860 1999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
861
862 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
863 register region in the m68hc11cpu struct.
864 (m68hc11cpu_io_write): When the IO mapping addres changes,
865 detach the register region and re-attach it at the new address.
866 (m68hc11cpu_io_read_buffer): Renamed base_address into
867 attach_address.
868 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
869 to m68hc11cpu_io_write.
870
871 1999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
872
873 * gencode.c: For sbc8, check the carry and increment the source
874 before trying to set the carry for the result.
875
876 1999-05-24 John S. Kallal <kallal@voicenet.com>
877
878 * interp.c (sim_get_info): Don't crash if the command line is 0.
879 Define prototype for sim_get_info() and init_system().
880 (sim_info): Correct call to sim_get_info().
881
882 1999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
883
884 * configure.in: Recognize m6811-*-*.
885 * configure: Regenerate.
886 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
887 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
888 Correct the computation of carry of 8 and 16-bits add and subtract.
889 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
890 overflow set in a different manner than add).
891
892 1999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
893
894 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
895 trace message.
896 * interp.c (sim_open, sim_create_inferior): Initialize the
897 cpu_elf_start from the ELF header.
898 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
899 (cpu_restart): Use cpu_elf_start as the starting address when
900 the flag is set.
901 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
902 exits the simulator (exit status is in D).
903 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
904 cpu_elf_star to start execution at address specified in ELF file.
905
906 1999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
907
908 * Makefile.in, config.in, configure, configure.in: New files.
909 * gencode.c: New file, generation of 68HC11 interpreter.
910 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
911 for interpreter.
912 * interrupts.c, interrupts.h: New files, management of interrupts.
913 * interp.c, sim-main.h,
914 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
915 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
916 68HC11 (dv-pram.c is generic and could probably migrate to common).
917 * emulos.c: New file, basic emulation of some os.