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