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