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