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