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