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