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