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