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