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