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