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