]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
05f53ed6
MF
12015-03-24 Mike Frysinger <vapier@gentoo.org>
2
3 * interp.c (sim_pc_get): New function.
4
523ba8f9
MF
52015-03-24 Mike Frysinger <vapier@gentoo.org>
6
7 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
8 sim_size, sim_trace): Delete.
9 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
10
30452bbe
MF
112015-03-24 Mike Frysinger <vapier@gentoo.org>
12
13 * configure: Regenerate.
14
64dd13df
MF
152015-03-23 Mike Frysinger <vapier@gentoo.org>
16
17 * configure: Regenerate.
18
49cd1634
MF
192015-03-23 Mike Frysinger <vapier@gentoo.org>
20
21 * configure: Regenerate.
22 * configure.ac (m68hc11_extra_objs): Delete.
23 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
24 (SIM_EXTRA_OBJS): Delete.
25
ae7d0cac
MF
262015-03-16 Mike Frysinger <vapier@gentoo.org>
27
28 * config.in, configure: Regenerate.
29
465fb143
MF
302015-03-14 Mike Frysinger <vapier@gentoo.org>
31
32 * Makefile.in (SIM_RUN_OBJS): Delete.
33
5cddc23a
MF
342015-03-14 Mike Frysinger <vapier@gentoo.org>
35
36 * configure.ac (AC_CHECK_HEADERS): Delete.
37 * aclocal.m4, configure: Regenerate.
38
2974be62
AM
392014-08-19 Alan Modra <amodra@gmail.com>
40
41 * configure: Regenerate.
42
faa743bb
RM
432014-08-15 Roland McGrath <mcgrathr@google.com>
44
45 * configure: Regenerate.
46 * config.in: Regenerate.
47
1a8a700e
MF
482014-03-04 Mike Frysinger <vapier@gentoo.org>
49
50 * configure: Regenerate.
51
bf3d9781
AM
522013-09-23 Alan Modra <amodra@gmail.com>
53
54 * configure: Regenerate.
55
31e6ad7d
MF
562013-06-03 Mike Frysinger <vapier@gentoo.org>
57
58 * aclocal.m4, configure: Regenerate.
59
d3685d60
TT
602013-05-10 Freddie Chopin <freddie_chopin@op.pl>
61
62 * configure: Rebuild.
63
1517bd27
MF
642013-03-26 Mike Frysinger <vapier@gentoo.org>
65
66 * configure: Regenerate.
67
256139f5
JS
682013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
69
70 * configure.ac: Use $SIM_DV_SOCKSER_O.
71 * configure: Regenerated.
72
5f3ef9d0
JB
732012-06-15 Joel Brobecker <brobecker@adacore.com>
74
75 * config.in, configure: Regenerate.
76
2232061b
MF
772012-03-24 Mike Frysinger <vapier@gentoo.org>
78
79 * aclocal.m4, config.in, configure: Regenerate.
80
db2e4d67
MF
812011-12-03 Mike Frysinger <vapier@gentoo.org>
82
83 * aclocal.m4: New file.
84 * configure: Regenerate.
85
4399a56b
MF
862011-10-19 Mike Frysinger <vapier@gentoo.org>
87
88 * configure: Regenerate after common/acinclude.m4 update.
89
9c082ca8
MF
902011-10-17 Mike Frysinger <vapier@gentoo.org>
91
92 * configure.ac: Change include to common/acinclude.m4.
93
6ffe910a
MF
942011-10-17 Mike Frysinger <vapier@gentoo.org>
95
96 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
97 call. Replace common.m4 include with SIM_AC_COMMON.
98 * configure: Regenerate.
99
2419798b
MF
1002011-07-05 Mike Frysinger <vapier@gentoo.org>
101
102 * interp.c (sim_do_command): Delete.
103
3725885a
RW
1042010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
105
106 * configure: Regenerate.
107
d6416cdc
RW
1082009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
109
81ecdfbb
RW
110 * config.in: Regenerate.
111 * configure: Likewise.
112
d6416cdc
RW
113 * configure: Regenerate.
114
b5bd9624
HPN
1152008-07-11 Hans-Peter Nilsson <hp@axis.com>
116
117 * configure: Regenerate to track ../common/common.m4 changes.
118 * config.in: Ditto.
119
6efef468
JM
1202008-06-06 Vladimir Prus <vladimir@codesourcery.com>
121 Daniel Jacobowitz <dan@codesourcery.com>
122 Joseph Myers <joseph@codesourcery.com>
123
124 * configure: Regenerate.
125
b1bfc053
HPN
1262006-12-21 Hans-Peter Nilsson <hp@axis.com>
127
128 * config.in: Regenerate.
129
e85e3205
RE
1302006-06-13 Richard Earnshaw <rearnsha@arm.com>
131
132 * configure: Regenerated.
133
2f0122dc
DJ
1342006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
135
136 * configure: Regenerated.
137
20e95c23
DJ
1382006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
139
140 * configure: Regenerated.
141
b3a3ffef
HPN
1422006-03-29 Hans-Peter Nilsson <hp@axis.com>
143
144 * configure: Regenerate.
145
2b193c4a
MK
1462005-03-23 Mark Kettenis <kettenis@gnu.org>
147
148 * configure: Regenerate.
149
35695fd6
AC
1502005-01-14 Andrew Cagney <cagney@gnu.org>
151
152 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
153 explicit call to AC_CONFIG_HEADER.
154 * configure: Regenerate.
155
38f48d72
AC
1562005-01-11 Andrew Cagney <cagney@localhost.localdomain>
157
158 * configure: Regenerated to track ../common/aclocal.m4 changes.
159
b7026657
AC
1602005-01-07 Andrew Cagney <cagney@gnu.org>
161
162 * configure.ac: Rename configure.in, require autoconf 2.59.
163 * configure: Re-generate.
164
379832de
HPN
1652004-12-08 Hans-Peter Nilsson <hp@axis.com>
166
167 * configure: Regenerate for ../common/aclocal.m4 update.
168
84b11e2e
AM
1692004-06-15 Alan Modra <amodra@bigpond.net.au>
170
171 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
172 instead of bfd_get_section_size_before_reloc.
173
a685700c
SC
1742003-08-08 Stephane Carrez <stcarrez@nerim.fr>
175
176 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
177 control the translation.
178 (m68hc11tim_print_timer): Update cycle_to_string conversion.
179 (m68hc11tim_timer_event): Fix handling of output
180 compare register with its interrupts.
181 (m68hc11tim_io_write_buffer): Check output compare
182 after setting M6811_TMSK1.
183 (m68hc11tim_io_read_buffer): Fix compilation warning.
184 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
185 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
186 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
187 * interrupts.c (interrupts_info): Likewise.
188 (interrupts_reset): Recognize bootstrap mode.
189 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
190 (_sim_cpu): Add cpu_start_mode.
191 (cycle_to_string): Add flags member.
192 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
193 (cpu_options): Declare new option bootstrap.
194 (cpu_option_handler): Handle it.
195 (cpu_info): Update call to cycle_to_string.
196
77342e5e
SC
1972003-08-08 Stephane Carrez <stcarrez@nerim.fr>
198
199 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
200 the physical address in virtual address.
201 (struct _sim_cpu): Add memory bank members.
202 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
203 * interp.c (sim_hw_configure): Create memory bank according to memory
204 bank parameters.
205 (sim_get_bank_parameters): New function to obtain memory bank config
206 from the symbol table.
207 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
208 (sim_open): Call sim_prepare_for_program.
209 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
210 to check if address is within bank window.
211 (m68hc11cpu_io_read_buffer): Likewise.
212 (attach_m68hc11_regs): Map the memory bank according to memory bank
213 parameters.
214
53b3cd22
SC
2152003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
216
217 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
218
962e9d85
SC
2192003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
220 Gary Piercey <gpiercey@northstar-technical.com>
221
222 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
223 * sim-main.h (print_io_word): Declare.
224 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
225 (tflg1_desc): Likewise for TFLG1.
226 (m68hc11tim_info): Print input and output compare registers
227
9b9f7b3c
SC
2282003-03-02 Stephane Carrez <stcarrez@nerim.fr>
229
230 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
231 to 32 to support memory bank switching; temporarily use 32-bit for
232 WORD_BITSIZE to avoid a bug in sim-common.
233
00416c6e
SC
2342003-03-01 Stephane Carrez <stcarrez@nerim.fr>
235
236 * interp.c (sim_fetch_register): Only store a single byte for
237 1 byte registers.
238
6b4a8935
AC
2392003-02-27 Andrew Cagney <cagney@redhat.com>
240
241 * interp.c (sim_prepare_for_program, sim_open)
242 (sim_create_inferior): Rename _bfd to bfd.
243
099d1b50
SC
2442002-08-13 Stephane Carrez <stcarrez@nerim.fr>
245
246 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
247
31c7c532
SC
2482002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
249
250 * interp.c (sim_prepare_for_program): Look up the image for the
251 reset vector and set cpu_use_elf_start to 1 if not found.
252 (sim_open): Do not set cpu_use_elf_start.
253
39762100
SC
2542002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
255
256 * interp.c (sim_hw_configure): Return 1 for success.
257 (sim_prepare_for_program): Use the sim_hw_configure exit code to
258 return SIM_RC_FAIL.
259
7230d809
SC
2602002-08-13 Stephane Carrez <stcarrez@nerim.fr>
261
262 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
263 bank window to some virtual address to read from extended memory.
264 (m68hc11cpu_io_write_buffer): Likewise for writing.
ca156d78 265 (attach_m68hc11_regs): When use_bank property is defined, attach
7230d809 266 to the 68HC12 16K memory bank window.
7230d809
SC
267 * interp.c (sim_hw_configure): Create memory region for banked
268 memory.
269
dcceded2
SC
2702002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
271
272 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
273 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
274 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
275
abea9e28
SC
2762002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
277
278 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
279 when IO mapping changed, not when internal RAM mapping is changed.
280
63f36def
SC
2812002-08-13 Stephane Carrez <stcarrez@nerim.fr>
282
283 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
284 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
285 (m6811_regs): Add page register.
286 (cpu_set_page, cpu_get_page): New macros.
287 (phys_to_virt): New function.
288 (cpu_get_indexed_operand_addr, cpu_return): Declare.
289 * gencode.c: Identify indirect addressing mode for call and fix daa.
290 (gen_function_entry): New param to tell if src8/dst8 locals are
291 necessary.
292 (gen_interpreter): Use it to avoid generation of unused variables.
293 * interp.c (sim_fetch_register): Allow to read page register; page
294 register, A, B and CCR are only 1 byte wide.
295 (sim_store_register): Likewise for writing.
296
c8cca39f
AC
2972002-06-16 Andrew Cagney <ac131313@redhat.com>
298
299 * configure: Regenerated to track ../common/aclocal.m4 changes.
300
3c25f8c7
AC
3012002-06-09 Andrew Cagney <cagney@redhat.com>
302
303 * Makefile.in (INCLUDE): Update path to callback.h.
304 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
305
86596dc8
SC
3062002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
307
308 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
309 (cpu_move16): Likewise.
310 (sim_memory_error): Use sim_io_printf.
311 (cpu_option_handler): Fix compilation warning.
312 * interp.c (sim_hw_configure): Fix compilation warning;
313 remove m68hc12sio@2 device.
314 (sim_open): Likewise.
315 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
316 flags when reset.
317 (cycle_to_string): Improve convertion of cpu cycle number.
318 (m68hc11tim_info): Print info about PACNT.
319 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
320 TCTL1 and TCTL2 registers.
321 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
322
827ec39a
SC
3232002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
324
325 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
326 cpu struct.
327 (sim_hw_configure): Connect the capture input/output events.
328 * sim-main.h (_sim_cpu): New member hw_cpu.
329 (m68hc11cpu_set_oscillator): Declare.
330 (m68hc11cpu_clear_oscillator): Declare.
331 (m68hc11cpu_set_port): Declare.
332 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
333 (m68hc11cpu_ports): New input ports and output ports to reflect
334 the HC11 IOs.
335 (m68hc11_delete): Cleanup any running oscillator.
336 (attach_m68hc11_regs): Create the input oscillators.
337 (make_oscillator): New function.
338 (find_oscillator): New function.
339 (oscillator_handler): New function.
340 (reset_oscillators): New function.
341 (m68hc11cpu_port_event): Handle the new input ports.
342 (m68hc11cpu_set_oscillator): New function.
343 (m68hc11cpu_clear_oscillator): New function.
344 (get_frequency): New function.
345 (m68hc11_option_handler): New function.
346 (m68hc11cpu_set_port): New function.
347 (m68hc11cpu_io_write): Post the port output events.
348 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
349 the output port value.
350 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
351 by latching the TCNT value in the register.
352
5abb9efa
SC
3532002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
354
355 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
356 (cpu_frame_reg, cpu_print_frame): Remove.
357 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
358 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
359 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
360 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
361 * m68hc11_sim.c (cpu_find_frame): Remove.
362 (cpu_create_frame_list): Remove.
363 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
364 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
365 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
366 (cpu_update_frame): Likewise.
367 (cpu_return): Likewise.
368 (cpu_reset): Likewise.
369 (cpu_initialize): Likewise.
370 * interp.c (sim_do_command): Remove call to cpu_print_frame.
371
26128965
SC
3722002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
373
374 * interrupts.c (interrupts_reset): New function, setup interrupt
375 vector address according to cpu mode.
376 (interrupts_initialize): Move reset portion to the above.
377 (interrupt_names): New table to give a name to interrupts.
378 (idefs): Handle pulse accumulator interrupts.
379 (interrupts_info): Print the interrupt history.
380 (interrupt_option_handler): New function.
381 (interrupt_options): New table of options.
382 (interrupts_update_pending): Keep track of when interrupts are
383 raised and implement breakpoint-on-raise-interrupt.
384 (interrupts_process): Keep track of when interrupts are taken
385 and implement breakpoint-on-interrupt.
386 * interrupts.h (struct interrupt_history): Define.
387 (struct interrupt): Keep track of the interrupt history.
388 (interrupts_reset): Declare.
389 (interrupts_initialize): Update prototype.
390 * m68hc11_sim.c (cpu_reset): Reset interrupts.
391 (cpu_initialize): Cleanup.
392
eefde351
SC
3932001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
394
395 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
396 address.
397 (m68hc11eepr_port_event): Fix detach/attach logic.
398
00d0c012
SC
3992001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
400
401 * Makefile.in (SIM_OBJS): Remove sim-resume.o
402 * interp.c (sim_resume): New function from sim-resume.c, install
403 the stepping event after having processed the pending ticks.
404 (has_stepped): Likewise.
405 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
406
b51c7603
AC
4072001-07-10 Andrew Cagney <ac131313@redhat.com>
408
409 * Makefile.in (gencode): Provide explicit path to gencode.c.
410
81e09ed8
SC
4112001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
412
413 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
414 (m68hc12int.c): Generate using gencode -m6812.
415 (m68hc11int.c): Likewise with -m6811.
416
417 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
418 (m6811_page1_opcodes): Remove duplicate entries.
419 (m6811_page2_opcodes): Likewise.
420 (m6811_page3_opcodes): Likewise.
421 (m6811_page4_opcodes): Likewise.
422 (m6812_page1_opcodes): New table for 68HC12 instructions.
423 (m6812_page2_opcodes): Likewise.
424 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
425 (gen_save_result): Likewise.
426 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
427 (cmp_opcode): New function for opcode comparision.
428 (prepare_table): Sort the opcodes.
429 (gen_interpreter): Prepare all the tables and generate either
430 a 68HC11 or a 68HC12 simulator.
431 (main): New options -m6811 and -m6812.
432
433 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
434 (cpu_special): Simulation of some 68HC12 instructions.
435 (cpu_exg): New function.
436 (cpu_dbcc): Likewise.
437 (cpu_fetch_relbranch16): Likewise.
438 (cpu_push_all): Push according to 68HC11 or 68HC12.
439 (cpu_move16): Likewise.
440 (cpu_move8): Likewise.
441 (cpu_get_indexed_operand16): Likewise.
442 (cpu_get_indexed_operand8): Likewise.
443 (cpu_get_indexed_operand_addr): Likewise.
444 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
445 (cpu_reset): Setup INIT register according to architecture.
446
447 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
448 (_sim_cpu): Keep track of the cpu being simulated.
449 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
450 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
451 (cpu_m68hc11_pop_uint8): Likewise.
452 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
453 (cpu_m68hc12_pop_uintxx): Likewise.
454 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
455 (cpu_fetch_relbranch16): Likewise.
456 (cpu_interp_m6811): Rename of cpu_interp.
457 (cpu_interp_m6812): New function.
458 * interp.c (free_state): New function.
459 (dev_list_68hc12): New table.
460 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
461 (sim_hw_configure): New function.
462 (sim_prepare_for_program): New function.
463 (sim_open): Use above new functions.
464 (sim_close): Call free_state().
465 (sim_info): Print info according to cpu.
466 (sim_create_inferior): Use sim_prepare_for_program.
467 (sim_do_command): Configure the hardware after a change of the
468 architecture.
469
11115521
SC
4702001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
471
472 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
473 pending interrupts.
474 * interrupts.c (interrupts_process): Keep track of the last number
475 of masked insn cycles.
476 (interrupts_initialize): Clear last number of masked insn cycles.
477 (interrupts_info): Report them.
478 (interrupts_update_pending): Compute clear and set masks of
479 interrupts and clear the interrupt bits before setting them
480 (due to SCI interrupt sharing).
481 * interrupts.h (struct interrupts): New members last_mask_cycles
482 and xirq_last_mask_cycles.
483
b93775f5
SC
4842000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
485
486 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
487 instead of a hard-coded value.
488 (m68hc11cpu_io_write_buffer): Likewise.
489 (dv_m68hc11_descriptor): Define a 68hc12 device.
490 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
491 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
492 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
493 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
494
639aa4f7
SC
4952000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
496
497 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
498 (m68hc11cpu_delete): Delete handler to detach the address space.
499
6e73e7ed
SC
5002000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
501
502 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
503 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
504 instead of free and malloc.
505
5f186447
SC
5062000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
507
508 * Makefile.in: Was missing from initial patch.
509
9830501b
SC
5102000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
511
512 * interp.c (sim_store_register): Remove soft register hack.
513 (sim_fetch_register): Likewise.
514 (sim_create_inferior): Likewise.
515 * sim-main.h: Likewise.
516
a8afa79a
SC
5172000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
518
519 * interrupts.c (interrupts_update_pending): Clear the mask of
520 pending interrupts here.
521 (interrupts_get_current): Don't clear the mask of pending interrupts.
522
2990a9f4
SC
5232000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
524
525 * sim-main.h: Define cycle_to_string.
526 * dv-m68hc11tim.c (cycle_to_string): New function to translate
527 the cpu cycle into some formatted time string.
528 (m68hc11tim_print_timer): Use it.
529 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
530 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
531 * interrupts.c (interrupts_info): Likewise.
532 * m68hc11_sim.c (cpu_info): Likewise.
533
401493c8
SC
5342000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
535
536 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
537 interrupt and compare events accurately. Take into account the
538 pending ticks not processed by the simulator yet (introduced a shift).
539 (m68hc11_port_event): Reset the timer interrupt delays.
540 (m68hc11tim_io_read_buffer): Be able to read several bytes.
541 (m68hc11tim_io_write_buffer): Likewise for write.
542 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
543
4d72d17a
SC
5442000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
545
546 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
547 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
548 (m68hc11spi_info): Clarify the status report
549 of the SPI when a byte is being sent.
550 (m68hc11spi_clock): Fix the spi send frame.
551
63348d04
SC
5522000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
553
554 * sim-main.h (m68hc11_map_level): Define level of address mappings.
555 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
556 whether the eeprom is currently mapped or not.
557 (m68hc11eepr_port_event): Use the flag to see if we must unmap
558 or map the eeprom. Update the flag to reflect the current state.
559 Use M6811_EEPROM_LEVEL when mapping the eeprom.
560 (m68hc11eepr_finish): Remove overlap hack.
561 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
562 config and control registers.
563 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
564 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
565 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
566 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
567 (attach_m68hc11spi_regs): Likewise.
568 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
569 (attach_m68hc11tim_regs): Likewise.
570 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
571 (attach_m68hc11sio_regs): Likewise.
572 * interp.c (sim_open): Likewise.
573 * dv-nvram.c (attach_nvram_regs): Likewise.
574
5d031c16
AC
575Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
576
577 * configure, config.in: Regenerate.
578
e0709f50
AC
5792000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
580
581 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
582 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
583 (dv_m6811_detach_address_callback): New function to detach a
584 device from an address space.
585 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
586 config register according to --cpu-config option.
587 * sim-main.h (_sim_cpu): Add cpu_config member.
588 * interp.c (sim_open): Delete specific simulator options.
589 * m68hc11_sim.c (cpu_option_handler): New options
590 --emulos and -cpu-config <val> to configure the simulator.
591 (cpu_initialize): Initialize cpu_config member.
592
5932000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
594
595 * emulos.c: Fix indentation and comments.
596 * gencode.c: Likewise.
597 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
598 (m68hc11tim_io_write_buffer): Write compare registers and
599 setup compare event.
600 * interp.c: Remove unused global variables.
601 * interrupts.c (idefs): New compare interrupts.
602 Fix indentation and comments.
603 * interrupts.h: Likewise.
604
6052000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
606
607 * dv-m68hc11sio.c: Fix indentation and comments.
608 Remove INT_PORT.
609 * dv-m68hc11.c: Fix indentation and comments.
610 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
611 * m68hc11_sim.c (cpu_reset): To here.
612 * dv-m68hc11eepr.c: Fix indentation and comments.
613
6142000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
615
616 * dv-nvram.c: New file, rename from dv-pram.c.
617 * dv-pram.c: Delete file.
618 * sim-main.h: Incorporate m68hc11_sim.h.
619 * m68hc11_sim.h: Delete file.
620 * configure.in: Rename pram into nvram.
621 * interp.c (sim_open): Likewise in creation of device tree.
622
6232000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
624
625 * interp.c (sim_open): Create the SPI device.
626 * dv-m68hc11spi.c: New file for SPI device simulation.
627 * configure.in (hw_extra_devices): Add SPI device.
628
6292000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
630
631 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
632 (interrupts_process): Separate IRQ and XIRQ accounting.
633 (interrupts_info): Report XIRQ accounting.
634 * interrupts.h (struct interrupts): Added accounting for XIRQ.
635
6362000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
637
638 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
639 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
640 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
641 configuration from the 'mode' device tree property.
642 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
643 configuration.
644
6452000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
646
647 * sim-main.h: Remove WITH_TARGET_* defines.
648 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
649
6502000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
651
652 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
653 1200 baud when cpu is in bootstrap mode.
654
655 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
656 write in the TCTN timer register.
657
658 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
659 by 4 to obtain the E clock frequency.
660 (sccr2_desc): Use M6811_TIE for TIE bit.
661 (m68hc11sio_info): Fix baud rate report.
662
663 * dv-m68hc11tim.c (to_realtime): Likewise.
664
665 * interp.c (sim_open): When building device tree, only provide
666 devices that do not exist yet.
667
668 * emulos.c: Fix compilation pb under Windows.
669
670 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
671 from the 'clock' property.
672
6732000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
674
675 * m68hc11_sim.h (*_REGNUM): Define.
676 (_sim_cpu): New member cpu_page0_reg table.
677 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
678 addresses of soft registers in .page0.
679 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
680 to get/set soft registers.
681
6821999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
683
684 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
685 returning random values.
686
6871999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
688
689 * gencode.c: Fix "subb N,x" that used a instead of b.
690
6911999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
692
693 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
694
6951999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
696
697 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
698
6991999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
700
701 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
702 register region in the m68hc11cpu struct.
703 (m68hc11cpu_io_write): When the IO mapping addres changes,
704 detach the register region and re-attach it at the new address.
705 (m68hc11cpu_io_read_buffer): Renamed base_address into
706 attach_address.
707 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
708 to m68hc11cpu_io_write.
709
7101999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
711
712 * gencode.c: For sbc8, check the carry and increment the source
713 before trying to set the carry for the result.
714
7151999-05-24 John S. Kallal <kallal@voicenet.com>
716
717 * interp.c (sim_get_info): Don't crash if the command line is 0.
718 Define prototype for sim_get_info() and init_system().
719 (sim_info): Correct call to sim_get_info().
720
7211999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
722
723 * configure.in: Recognize m6811-*-*.
724 * configure: Regenerate.
725 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
726 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
727 Correct the computation of carry of 8 and 16-bits add and subtract.
728 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
729 overflow set in a different manner than add).
730
7311999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
732
733 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
734 trace message.
735 * interp.c (sim_open, sim_create_inferior): Initialize the
736 cpu_elf_start from the ELF header.
737 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
738 (cpu_restart): Use cpu_elf_start as the starting address when
739 the flag is set.
740 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
741 exits the simulator (exit status is in D).
742 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
743 cpu_elf_star to start execution at address specified in ELF file.
744
7451999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
746
747 * Makefile.in, config.in, configure, configure.in: New files.
748 * gencode.c: New file, generation of 68HC11 interpreter.
749 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
750 for interpreter.
751 * interrupts.c, interrupts.h: New files, management of interrupts.
752 * interp.c, sim-main.h,
753 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
754 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
755 68HC11 (dv-pram.c is generic and could probably migrate to common).
756 * emulos.c: New file, basic emulation of some os.