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