sim: mn10300: delete unused memory code
[deliverable/binutils-gdb.git] / sim / m68hc11 / ChangeLog
1 2015-06-11 Mike Frysinger <vapier@gentoo.org>
2
3 * interp.c (INLINE): Delete define.
4
5 2015-04-29 Nick Clifton <nickc@redhat.com>
6
7 PR 18273
8 * gencode.c (gen_fetch_operands): Remove unreachable code.
9
10 2015-04-18 Mike Frysinger <vapier@gentoo.org>
11
12 * sim-main.h (SIM_CPU): Delete.
13
14 2015-04-18 Mike Frysinger <vapier@gentoo.org>
15
16 * sim-main.h (sim_cia): Delete.
17
18 2015-04-17 Mike Frysinger <vapier@gentoo.org>
19
20 * sim-main.h (CIA_GET, CIA_SET): Delete.
21
22 2015-04-15 Mike Frysinger <vapier@gentoo.org>
23
24 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
25 * sim-main.h (STATE_CPU): Delete.
26
27 2015-04-13 Mike Frysinger <vapier@gentoo.org>
28
29 * configure: Regenerate.
30
31 2015-04-13 Mike Frysinger <vapier@gentoo.org>
32
33 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
34 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
35 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
36 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
37 (sim_pc_get): Delete.
38 * sim-main.h (SIM_CPU): Define.
39 (STATE_CPU): Drop &.
40 (struct sim_state): Change cpu to an array of pointers.
41
42 2015-04-06 Mike Frysinger <vapier@gentoo.org>
43
44 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
45
46 2015-03-31 Mike Frysinger <vapier@gentoo.org>
47
48 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
49 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
50 variable to restricted.
51 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
52
53 2015-03-24 Mike Frysinger <vapier@gentoo.org>
54
55 * interp.c (sim_pc_get): New function.
56
57 2015-03-24 Mike Frysinger <vapier@gentoo.org>
58
59 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
60 sim_size, sim_trace): Delete.
61 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
62
63 2015-03-24 Mike Frysinger <vapier@gentoo.org>
64
65 * configure: Regenerate.
66
67 2015-03-23 Mike Frysinger <vapier@gentoo.org>
68
69 * configure: Regenerate.
70
71 2015-03-23 Mike Frysinger <vapier@gentoo.org>
72
73 * configure: Regenerate.
74 * configure.ac (m68hc11_extra_objs): Delete.
75 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
76 (SIM_EXTRA_OBJS): Delete.
77
78 2015-03-16 Mike Frysinger <vapier@gentoo.org>
79
80 * config.in, configure: Regenerate.
81
82 2015-03-14 Mike Frysinger <vapier@gentoo.org>
83
84 * Makefile.in (SIM_RUN_OBJS): Delete.
85
86 2015-03-14 Mike Frysinger <vapier@gentoo.org>
87
88 * configure.ac (AC_CHECK_HEADERS): Delete.
89 * aclocal.m4, configure: Regenerate.
90
91 2014-08-19 Alan Modra <amodra@gmail.com>
92
93 * configure: Regenerate.
94
95 2014-08-15 Roland McGrath <mcgrathr@google.com>
96
97 * configure: Regenerate.
98 * config.in: Regenerate.
99
100 2014-03-04 Mike Frysinger <vapier@gentoo.org>
101
102 * configure: Regenerate.
103
104 2013-09-23 Alan Modra <amodra@gmail.com>
105
106 * configure: Regenerate.
107
108 2013-06-03 Mike Frysinger <vapier@gentoo.org>
109
110 * aclocal.m4, configure: Regenerate.
111
112 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
113
114 * configure: Rebuild.
115
116 2013-03-26 Mike Frysinger <vapier@gentoo.org>
117
118 * configure: Regenerate.
119
120 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
121
122 * configure.ac: Use $SIM_DV_SOCKSER_O.
123 * configure: Regenerated.
124
125 2012-06-15 Joel Brobecker <brobecker@adacore.com>
126
127 * config.in, configure: Regenerate.
128
129 2012-03-24 Mike Frysinger <vapier@gentoo.org>
130
131 * aclocal.m4, config.in, configure: Regenerate.
132
133 2011-12-03 Mike Frysinger <vapier@gentoo.org>
134
135 * aclocal.m4: New file.
136 * configure: Regenerate.
137
138 2011-10-19 Mike Frysinger <vapier@gentoo.org>
139
140 * configure: Regenerate after common/acinclude.m4 update.
141
142 2011-10-17 Mike Frysinger <vapier@gentoo.org>
143
144 * configure.ac: Change include to common/acinclude.m4.
145
146 2011-10-17 Mike Frysinger <vapier@gentoo.org>
147
148 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
149 call. Replace common.m4 include with SIM_AC_COMMON.
150 * configure: Regenerate.
151
152 2011-07-05 Mike Frysinger <vapier@gentoo.org>
153
154 * interp.c (sim_do_command): Delete.
155
156 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
157
158 * configure: Regenerate.
159
160 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
161
162 * config.in: Regenerate.
163 * configure: Likewise.
164
165 * configure: Regenerate.
166
167 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
168
169 * configure: Regenerate to track ../common/common.m4 changes.
170 * config.in: Ditto.
171
172 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
173 Daniel Jacobowitz <dan@codesourcery.com>
174 Joseph Myers <joseph@codesourcery.com>
175
176 * configure: Regenerate.
177
178 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
179
180 * config.in: Regenerate.
181
182 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
183
184 * configure: Regenerated.
185
186 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
187
188 * configure: Regenerated.
189
190 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
191
192 * configure: Regenerated.
193
194 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
195
196 * configure: Regenerate.
197
198 2005-03-23 Mark Kettenis <kettenis@gnu.org>
199
200 * configure: Regenerate.
201
202 2005-01-14 Andrew Cagney <cagney@gnu.org>
203
204 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
205 explicit call to AC_CONFIG_HEADER.
206 * configure: Regenerate.
207
208 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
209
210 * configure: Regenerated to track ../common/aclocal.m4 changes.
211
212 2005-01-07 Andrew Cagney <cagney@gnu.org>
213
214 * configure.ac: Rename configure.in, require autoconf 2.59.
215 * configure: Re-generate.
216
217 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
218
219 * configure: Regenerate for ../common/aclocal.m4 update.
220
221 2004-06-15 Alan Modra <amodra@bigpond.net.au>
222
223 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
224 instead of bfd_get_section_size_before_reloc.
225
226 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>
227
228 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
229 control the translation.
230 (m68hc11tim_print_timer): Update cycle_to_string conversion.
231 (m68hc11tim_timer_event): Fix handling of output
232 compare register with its interrupts.
233 (m68hc11tim_io_write_buffer): Check output compare
234 after setting M6811_TMSK1.
235 (m68hc11tim_io_read_buffer): Fix compilation warning.
236 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
237 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
238 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
239 * interrupts.c (interrupts_info): Likewise.
240 (interrupts_reset): Recognize bootstrap mode.
241 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
242 (_sim_cpu): Add cpu_start_mode.
243 (cycle_to_string): Add flags member.
244 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
245 (cpu_options): Declare new option bootstrap.
246 (cpu_option_handler): Handle it.
247 (cpu_info): Update call to cycle_to_string.
248
249 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>
250
251 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
252 the physical address in virtual address.
253 (struct _sim_cpu): Add memory bank members.
254 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
255 * interp.c (sim_hw_configure): Create memory bank according to memory
256 bank parameters.
257 (sim_get_bank_parameters): New function to obtain memory bank config
258 from the symbol table.
259 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
260 (sim_open): Call sim_prepare_for_program.
261 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
262 to check if address is within bank window.
263 (m68hc11cpu_io_read_buffer): Likewise.
264 (attach_m68hc11_regs): Map the memory bank according to memory bank
265 parameters.
266
267 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
268
269 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
270
271 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
272 Gary Piercey <gpiercey@northstar-technical.com>
273
274 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
275 * sim-main.h (print_io_word): Declare.
276 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
277 (tflg1_desc): Likewise for TFLG1.
278 (m68hc11tim_info): Print input and output compare registers
279
280 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
281
282 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
283 to 32 to support memory bank switching; temporarily use 32-bit for
284 WORD_BITSIZE to avoid a bug in sim-common.
285
286 2003-03-01 Stephane Carrez <stcarrez@nerim.fr>
287
288 * interp.c (sim_fetch_register): Only store a single byte for
289 1 byte registers.
290
291 2003-02-27 Andrew Cagney <cagney@redhat.com>
292
293 * interp.c (sim_prepare_for_program, sim_open)
294 (sim_create_inferior): Rename _bfd to bfd.
295
296 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
297
298 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
299
300 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
301
302 * interp.c (sim_prepare_for_program): Look up the image for the
303 reset vector and set cpu_use_elf_start to 1 if not found.
304 (sim_open): Do not set cpu_use_elf_start.
305
306 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
307
308 * interp.c (sim_hw_configure): Return 1 for success.
309 (sim_prepare_for_program): Use the sim_hw_configure exit code to
310 return SIM_RC_FAIL.
311
312 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
313
314 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
315 bank window to some virtual address to read from extended memory.
316 (m68hc11cpu_io_write_buffer): Likewise for writing.
317 (attach_m68hc11_regs): When use_bank property is defined, attach
318 to the 68HC12 16K memory bank window.
319 * interp.c (sim_hw_configure): Create memory region for banked
320 memory.
321
322 2002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
323
324 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
325 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
326 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
327
328 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
329
330 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
331 when IO mapping changed, not when internal RAM mapping is changed.
332
333 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
334
335 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
336 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
337 (m6811_regs): Add page register.
338 (cpu_set_page, cpu_get_page): New macros.
339 (phys_to_virt): New function.
340 (cpu_get_indexed_operand_addr, cpu_return): Declare.
341 * gencode.c: Identify indirect addressing mode for call and fix daa.
342 (gen_function_entry): New param to tell if src8/dst8 locals are
343 necessary.
344 (gen_interpreter): Use it to avoid generation of unused variables.
345 * interp.c (sim_fetch_register): Allow to read page register; page
346 register, A, B and CCR are only 1 byte wide.
347 (sim_store_register): Likewise for writing.
348
349 2002-06-16 Andrew Cagney <ac131313@redhat.com>
350
351 * configure: Regenerated to track ../common/aclocal.m4 changes.
352
353 2002-06-09 Andrew Cagney <cagney@redhat.com>
354
355 * Makefile.in (INCLUDE): Update path to callback.h.
356 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
357
358 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
359
360 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
361 (cpu_move16): Likewise.
362 (sim_memory_error): Use sim_io_printf.
363 (cpu_option_handler): Fix compilation warning.
364 * interp.c (sim_hw_configure): Fix compilation warning;
365 remove m68hc12sio@2 device.
366 (sim_open): Likewise.
367 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
368 flags when reset.
369 (cycle_to_string): Improve convertion of cpu cycle number.
370 (m68hc11tim_info): Print info about PACNT.
371 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
372 TCTL1 and TCTL2 registers.
373 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
374
375 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
376
377 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
378 cpu struct.
379 (sim_hw_configure): Connect the capture input/output events.
380 * sim-main.h (_sim_cpu): New member hw_cpu.
381 (m68hc11cpu_set_oscillator): Declare.
382 (m68hc11cpu_clear_oscillator): Declare.
383 (m68hc11cpu_set_port): Declare.
384 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
385 (m68hc11cpu_ports): New input ports and output ports to reflect
386 the HC11 IOs.
387 (m68hc11_delete): Cleanup any running oscillator.
388 (attach_m68hc11_regs): Create the input oscillators.
389 (make_oscillator): New function.
390 (find_oscillator): New function.
391 (oscillator_handler): New function.
392 (reset_oscillators): New function.
393 (m68hc11cpu_port_event): Handle the new input ports.
394 (m68hc11cpu_set_oscillator): New function.
395 (m68hc11cpu_clear_oscillator): New function.
396 (get_frequency): New function.
397 (m68hc11_option_handler): New function.
398 (m68hc11cpu_set_port): New function.
399 (m68hc11cpu_io_write): Post the port output events.
400 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
401 the output port value.
402 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
403 by latching the TCNT value in the register.
404
405 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
406
407 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
408 (cpu_frame_reg, cpu_print_frame): Remove.
409 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
410 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
411 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
412 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
413 * m68hc11_sim.c (cpu_find_frame): Remove.
414 (cpu_create_frame_list): Remove.
415 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
416 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
417 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
418 (cpu_update_frame): Likewise.
419 (cpu_return): Likewise.
420 (cpu_reset): Likewise.
421 (cpu_initialize): Likewise.
422 * interp.c (sim_do_command): Remove call to cpu_print_frame.
423
424 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
425
426 * interrupts.c (interrupts_reset): New function, setup interrupt
427 vector address according to cpu mode.
428 (interrupts_initialize): Move reset portion to the above.
429 (interrupt_names): New table to give a name to interrupts.
430 (idefs): Handle pulse accumulator interrupts.
431 (interrupts_info): Print the interrupt history.
432 (interrupt_option_handler): New function.
433 (interrupt_options): New table of options.
434 (interrupts_update_pending): Keep track of when interrupts are
435 raised and implement breakpoint-on-raise-interrupt.
436 (interrupts_process): Keep track of when interrupts are taken
437 and implement breakpoint-on-interrupt.
438 * interrupts.h (struct interrupt_history): Define.
439 (struct interrupt): Keep track of the interrupt history.
440 (interrupts_reset): Declare.
441 (interrupts_initialize): Update prototype.
442 * m68hc11_sim.c (cpu_reset): Reset interrupts.
443 (cpu_initialize): Cleanup.
444
445 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
446
447 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
448 address.
449 (m68hc11eepr_port_event): Fix detach/attach logic.
450
451 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
452
453 * Makefile.in (SIM_OBJS): Remove sim-resume.o
454 * interp.c (sim_resume): New function from sim-resume.c, install
455 the stepping event after having processed the pending ticks.
456 (has_stepped): Likewise.
457 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
458
459 2001-07-10 Andrew Cagney <ac131313@redhat.com>
460
461 * Makefile.in (gencode): Provide explicit path to gencode.c.
462
463 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
464
465 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
466 (m68hc12int.c): Generate using gencode -m6812.
467 (m68hc11int.c): Likewise with -m6811.
468
469 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
470 (m6811_page1_opcodes): Remove duplicate entries.
471 (m6811_page2_opcodes): Likewise.
472 (m6811_page3_opcodes): Likewise.
473 (m6811_page4_opcodes): Likewise.
474 (m6812_page1_opcodes): New table for 68HC12 instructions.
475 (m6812_page2_opcodes): Likewise.
476 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
477 (gen_save_result): Likewise.
478 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
479 (cmp_opcode): New function for opcode comparision.
480 (prepare_table): Sort the opcodes.
481 (gen_interpreter): Prepare all the tables and generate either
482 a 68HC11 or a 68HC12 simulator.
483 (main): New options -m6811 and -m6812.
484
485 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
486 (cpu_special): Simulation of some 68HC12 instructions.
487 (cpu_exg): New function.
488 (cpu_dbcc): Likewise.
489 (cpu_fetch_relbranch16): Likewise.
490 (cpu_push_all): Push according to 68HC11 or 68HC12.
491 (cpu_move16): Likewise.
492 (cpu_move8): Likewise.
493 (cpu_get_indexed_operand16): Likewise.
494 (cpu_get_indexed_operand8): Likewise.
495 (cpu_get_indexed_operand_addr): Likewise.
496 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
497 (cpu_reset): Setup INIT register according to architecture.
498
499 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
500 (_sim_cpu): Keep track of the cpu being simulated.
501 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
502 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
503 (cpu_m68hc11_pop_uint8): Likewise.
504 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
505 (cpu_m68hc12_pop_uintxx): Likewise.
506 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
507 (cpu_fetch_relbranch16): Likewise.
508 (cpu_interp_m6811): Rename of cpu_interp.
509 (cpu_interp_m6812): New function.
510 * interp.c (free_state): New function.
511 (dev_list_68hc12): New table.
512 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
513 (sim_hw_configure): New function.
514 (sim_prepare_for_program): New function.
515 (sim_open): Use above new functions.
516 (sim_close): Call free_state().
517 (sim_info): Print info according to cpu.
518 (sim_create_inferior): Use sim_prepare_for_program.
519 (sim_do_command): Configure the hardware after a change of the
520 architecture.
521
522 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
523
524 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
525 pending interrupts.
526 * interrupts.c (interrupts_process): Keep track of the last number
527 of masked insn cycles.
528 (interrupts_initialize): Clear last number of masked insn cycles.
529 (interrupts_info): Report them.
530 (interrupts_update_pending): Compute clear and set masks of
531 interrupts and clear the interrupt bits before setting them
532 (due to SCI interrupt sharing).
533 * interrupts.h (struct interrupts): New members last_mask_cycles
534 and xirq_last_mask_cycles.
535
536 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
537
538 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
539 instead of a hard-coded value.
540 (m68hc11cpu_io_write_buffer): Likewise.
541 (dv_m68hc11_descriptor): Define a 68hc12 device.
542 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
543 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
544 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
545 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
546
547 2000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
548
549 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
550 (m68hc11cpu_delete): Delete handler to detach the address space.
551
552 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
553
554 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
555 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
556 instead of free and malloc.
557
558 2000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
559
560 * Makefile.in: Was missing from initial patch.
561
562 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
563
564 * interp.c (sim_store_register): Remove soft register hack.
565 (sim_fetch_register): Likewise.
566 (sim_create_inferior): Likewise.
567 * sim-main.h: Likewise.
568
569 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
570
571 * interrupts.c (interrupts_update_pending): Clear the mask of
572 pending interrupts here.
573 (interrupts_get_current): Don't clear the mask of pending interrupts.
574
575 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
576
577 * sim-main.h: Define cycle_to_string.
578 * dv-m68hc11tim.c (cycle_to_string): New function to translate
579 the cpu cycle into some formatted time string.
580 (m68hc11tim_print_timer): Use it.
581 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
582 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
583 * interrupts.c (interrupts_info): Likewise.
584 * m68hc11_sim.c (cpu_info): Likewise.
585
586 2000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
587
588 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
589 interrupt and compare events accurately. Take into account the
590 pending ticks not processed by the simulator yet (introduced a shift).
591 (m68hc11_port_event): Reset the timer interrupt delays.
592 (m68hc11tim_io_read_buffer): Be able to read several bytes.
593 (m68hc11tim_io_write_buffer): Likewise for write.
594 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
595
596 2000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
597
598 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
599 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
600 (m68hc11spi_info): Clarify the status report
601 of the SPI when a byte is being sent.
602 (m68hc11spi_clock): Fix the spi send frame.
603
604 2000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
605
606 * sim-main.h (m68hc11_map_level): Define level of address mappings.
607 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
608 whether the eeprom is currently mapped or not.
609 (m68hc11eepr_port_event): Use the flag to see if we must unmap
610 or map the eeprom. Update the flag to reflect the current state.
611 Use M6811_EEPROM_LEVEL when mapping the eeprom.
612 (m68hc11eepr_finish): Remove overlap hack.
613 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
614 config and control registers.
615 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
616 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
617 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
618 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
619 (attach_m68hc11spi_regs): Likewise.
620 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
621 (attach_m68hc11tim_regs): Likewise.
622 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
623 (attach_m68hc11sio_regs): Likewise.
624 * interp.c (sim_open): Likewise.
625 * dv-nvram.c (attach_nvram_regs): Likewise.
626
627 Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
628
629 * configure, config.in: Regenerate.
630
631 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
632
633 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
634 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
635 (dv_m6811_detach_address_callback): New function to detach a
636 device from an address space.
637 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
638 config register according to --cpu-config option.
639 * sim-main.h (_sim_cpu): Add cpu_config member.
640 * interp.c (sim_open): Delete specific simulator options.
641 * m68hc11_sim.c (cpu_option_handler): New options
642 --emulos and -cpu-config <val> to configure the simulator.
643 (cpu_initialize): Initialize cpu_config member.
644
645 2000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
646
647 * emulos.c: Fix indentation and comments.
648 * gencode.c: Likewise.
649 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
650 (m68hc11tim_io_write_buffer): Write compare registers and
651 setup compare event.
652 * interp.c: Remove unused global variables.
653 * interrupts.c (idefs): New compare interrupts.
654 Fix indentation and comments.
655 * interrupts.h: Likewise.
656
657 2000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
658
659 * dv-m68hc11sio.c: Fix indentation and comments.
660 Remove INT_PORT.
661 * dv-m68hc11.c: Fix indentation and comments.
662 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
663 * m68hc11_sim.c (cpu_reset): To here.
664 * dv-m68hc11eepr.c: Fix indentation and comments.
665
666 2000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
667
668 * dv-nvram.c: New file, rename from dv-pram.c.
669 * dv-pram.c: Delete file.
670 * sim-main.h: Incorporate m68hc11_sim.h.
671 * m68hc11_sim.h: Delete file.
672 * configure.in: Rename pram into nvram.
673 * interp.c (sim_open): Likewise in creation of device tree.
674
675 2000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
676
677 * interp.c (sim_open): Create the SPI device.
678 * dv-m68hc11spi.c: New file for SPI device simulation.
679 * configure.in (hw_extra_devices): Add SPI device.
680
681 2000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
682
683 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
684 (interrupts_process): Separate IRQ and XIRQ accounting.
685 (interrupts_info): Report XIRQ accounting.
686 * interrupts.h (struct interrupts): Added accounting for XIRQ.
687
688 2000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
689
690 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
691 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
692 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
693 configuration from the 'mode' device tree property.
694 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
695 configuration.
696
697 2000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
698
699 * sim-main.h: Remove WITH_TARGET_* defines.
700 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
701
702 2000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
703
704 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
705 1200 baud when cpu is in bootstrap mode.
706
707 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
708 write in the TCTN timer register.
709
710 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
711 by 4 to obtain the E clock frequency.
712 (sccr2_desc): Use M6811_TIE for TIE bit.
713 (m68hc11sio_info): Fix baud rate report.
714
715 * dv-m68hc11tim.c (to_realtime): Likewise.
716
717 * interp.c (sim_open): When building device tree, only provide
718 devices that do not exist yet.
719
720 * emulos.c: Fix compilation pb under Windows.
721
722 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
723 from the 'clock' property.
724
725 2000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
726
727 * m68hc11_sim.h (*_REGNUM): Define.
728 (_sim_cpu): New member cpu_page0_reg table.
729 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
730 addresses of soft registers in .page0.
731 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
732 to get/set soft registers.
733
734 1999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
735
736 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
737 returning random values.
738
739 1999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
740
741 * gencode.c: Fix "subb N,x" that used a instead of b.
742
743 1999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
744
745 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
746
747 1999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
748
749 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
750
751 1999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
752
753 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
754 register region in the m68hc11cpu struct.
755 (m68hc11cpu_io_write): When the IO mapping addres changes,
756 detach the register region and re-attach it at the new address.
757 (m68hc11cpu_io_read_buffer): Renamed base_address into
758 attach_address.
759 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
760 to m68hc11cpu_io_write.
761
762 1999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
763
764 * gencode.c: For sbc8, check the carry and increment the source
765 before trying to set the carry for the result.
766
767 1999-05-24 John S. Kallal <kallal@voicenet.com>
768
769 * interp.c (sim_get_info): Don't crash if the command line is 0.
770 Define prototype for sim_get_info() and init_system().
771 (sim_info): Correct call to sim_get_info().
772
773 1999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
774
775 * configure.in: Recognize m6811-*-*.
776 * configure: Regenerate.
777 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
778 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
779 Correct the computation of carry of 8 and 16-bits add and subtract.
780 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
781 overflow set in a different manner than add).
782
783 1999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
784
785 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
786 trace message.
787 * interp.c (sim_open, sim_create_inferior): Initialize the
788 cpu_elf_start from the ELF header.
789 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
790 (cpu_restart): Use cpu_elf_start as the starting address when
791 the flag is set.
792 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
793 exits the simulator (exit status is in D).
794 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
795 cpu_elf_star to start execution at address specified in ELF file.
796
797 1999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
798
799 * Makefile.in, config.in, configure, configure.in: New files.
800 * gencode.c: New file, generation of 68HC11 interpreter.
801 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
802 for interpreter.
803 * interrupts.c, interrupts.h: New files, management of interrupts.
804 * interp.c, sim-main.h,
805 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
806 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
807 68HC11 (dv-pram.c is generic and could probably migrate to common).
808 * emulos.c: New file, basic emulation of some os.
This page took 0.052879 seconds and 4 git commands to generate.