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