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