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