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