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