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