]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
2e3d4f4d
MF
12016-01-06 Mike Frysinger <vapier@gentoo.org>
2
3 * interp.c (sim_open): Mark argv const.
4 (sim_create_inferior): Mark argv and env const.
5
9bbf6f91
MF
62016-01-04 Mike Frysinger <vapier@gentoo.org>
7
8 * configure: Regenerate.
9
77cf2ef5
MF
102016-01-03 Mike Frysinger <vapier@gentoo.org>
11
12 * interp.c (sim_open): Update sim_parse_args comment.
13
61971b86
MF
142016-01-03 Mike Frysinger <vapier@gentoo.org>
15
16 * sim-main.h (sim_state): Delete devices member.
17
0cb8d851
MF
182016-01-03 Mike Frysinger <vapier@gentoo.org>
19
20 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
21 * configure: Regenerate.
22
1ac72f06
MF
232016-01-02 Mike Frysinger <vapier@gentoo.org>
24
25 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
26 * configure: Regenerate.
27
8e26d677
MF
282015-12-30 Mike Frysinger <vapier@gentoo.org>
29
30 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
31 * configure: Regenerate.
32
eca4255a
MF
332015-12-30 Mike Frysinger <vapier@gentoo.org>
34
35 * imterp.c (sim_open): Delete current_alignment and
36 current_target_byte_order assignments.
37 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
38 * configure: Regenerate.
39
e1211e55
MF
402015-12-30 Mike Frysinger <vapier@gentoo.org>
41
42 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
43 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
44 (sim_store_register): Rename to ...
45 (m68hc11_reg_store): ... this. Delete local cpu var.
46 (sim_fetch_register): Rename to ...
47 (m68hc11_reg_fetch): ... this. Delete local cpu var.
48
5e744ef8
MF
492015-12-27 Mike Frysinger <vapier@gentoo.org>
50
51 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
52
1b393626
MF
532015-12-26 Mike Frysinger <vapier@gentoo.org>
54
55 * config.in, configure: Regenerate.
56
26936211
MF
572015-12-24 Mike Frysinger <vapier@gentoo.org>
58
59 * sim-main.h (SIM_HANDLES_LMA): Delete.
60
84e8e361
MF
612015-12-24 Mike Frysinger <vapier@gentoo.org>
62
63 * sim-main.h (WITH_WATCHPOINTS): Delete.
64
cdf850e9
MF
652015-11-17 Mike Frysinger <vapier@gentoo.org>
66
67 * sim-main.h (WITH_MODULO_MEMORY): Delete.
68
797eee42
MF
692015-11-15 Mike Frysinger <vapier@gentoo.org>
70
71 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
72
d2dfd242
MF
732015-11-14 Mike Frysinger <vapier@gentoo.org>
74
75 * Makefile.in (SIM_OBJS): Delete sim-load.o.
76
6e4f085c
MF
772015-11-14 Mike Frysinger <vapier@gentoo.org>
78
79 * interp.c (sim_close): Delete.
80
8d0978fb
MF
812015-06-23 Mike Frysinger <vapier@gentoo.org>
82
83 * configure: Regenerate.
84
a3487082
MF
852015-06-12 Mike Frysinger <vapier@gentoo.org>
86
87 * configure: Regenerate.
88
306f4178
MF
892015-06-12 Mike Frysinger <vapier@gentoo.org>
90
91 * configure: Regenerate.
92
09896bd2
MF
932015-06-11 Mike Frysinger <vapier@gentoo.org>
94
95 * interp.c (interrupt_names): Delete.
96
a84f8df0
MF
972015-06-11 Mike Frysinger <vapier@gentoo.org>
98
99 * Makefile.in (SIM_OBJS): Add sim-resume.o
100 * interp.c (has_stepped, sim_resume): Delete.
101
5d19c366
MF
1022015-06-11 Mike Frysinger <vapier@gentoo.org>
103
104 * interp.c (INLINE): Delete define.
105
0a13382c
NC
1062015-04-29 Nick Clifton <nickc@redhat.com>
107
108 PR 18273
109 * gencode.c (gen_fetch_operands): Remove unreachable code.
110
20bca71d
MF
1112015-04-18 Mike Frysinger <vapier@gentoo.org>
112
113 * sim-main.h (SIM_CPU): Delete.
114
7e83aa92
MF
1152015-04-18 Mike Frysinger <vapier@gentoo.org>
116
117 * sim-main.h (sim_cia): Delete.
118
034685f9
MF
1192015-04-17 Mike Frysinger <vapier@gentoo.org>
120
121 * sim-main.h (CIA_GET, CIA_SET): Delete.
122
78e9aa70
MF
1232015-04-15 Mike Frysinger <vapier@gentoo.org>
124
125 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
126 * sim-main.h (STATE_CPU): Delete.
127
bf12d44e
MF
1282015-04-13 Mike Frysinger <vapier@gentoo.org>
129
130 * configure: Regenerate.
131
bea3f671
MF
1322015-04-13 Mike Frysinger <vapier@gentoo.org>
133
134 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
135 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
136 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
137 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
138 (sim_pc_get): Delete.
139 * sim-main.h (SIM_CPU): Define.
140 (STATE_CPU): Drop &.
141 (struct sim_state): Change cpu to an array of pointers.
142
122bbfb5
MF
1432015-04-06 Mike Frysinger <vapier@gentoo.org>
144
145 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
146
2b6ca062
MF
1472015-03-31 Mike Frysinger <vapier@gentoo.org>
148
149 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
150 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
151 variable to restricted.
152 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
153
05f53ed6
MF
1542015-03-24 Mike Frysinger <vapier@gentoo.org>
155
156 * interp.c (sim_pc_get): New function.
157
523ba8f9
MF
1582015-03-24 Mike Frysinger <vapier@gentoo.org>
159
160 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
161 sim_size, sim_trace): Delete.
162 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
163
30452bbe
MF
1642015-03-24 Mike Frysinger <vapier@gentoo.org>
165
166 * configure: Regenerate.
167
64dd13df
MF
1682015-03-23 Mike Frysinger <vapier@gentoo.org>
169
170 * configure: Regenerate.
171
49cd1634
MF
1722015-03-23 Mike Frysinger <vapier@gentoo.org>
173
174 * configure: Regenerate.
175 * configure.ac (m68hc11_extra_objs): Delete.
176 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
177 (SIM_EXTRA_OBJS): Delete.
178
ae7d0cac
MF
1792015-03-16 Mike Frysinger <vapier@gentoo.org>
180
181 * config.in, configure: Regenerate.
182
465fb143
MF
1832015-03-14 Mike Frysinger <vapier@gentoo.org>
184
185 * Makefile.in (SIM_RUN_OBJS): Delete.
186
5cddc23a
MF
1872015-03-14 Mike Frysinger <vapier@gentoo.org>
188
189 * configure.ac (AC_CHECK_HEADERS): Delete.
190 * aclocal.m4, configure: Regenerate.
191
2974be62
AM
1922014-08-19 Alan Modra <amodra@gmail.com>
193
194 * configure: Regenerate.
195
faa743bb
RM
1962014-08-15 Roland McGrath <mcgrathr@google.com>
197
198 * configure: Regenerate.
199 * config.in: Regenerate.
200
1a8a700e
MF
2012014-03-04 Mike Frysinger <vapier@gentoo.org>
202
203 * configure: Regenerate.
204
bf3d9781
AM
2052013-09-23 Alan Modra <amodra@gmail.com>
206
207 * configure: Regenerate.
208
31e6ad7d
MF
2092013-06-03 Mike Frysinger <vapier@gentoo.org>
210
211 * aclocal.m4, configure: Regenerate.
212
d3685d60
TT
2132013-05-10 Freddie Chopin <freddie_chopin@op.pl>
214
215 * configure: Rebuild.
216
1517bd27
MF
2172013-03-26 Mike Frysinger <vapier@gentoo.org>
218
219 * configure: Regenerate.
220
256139f5
JS
2212013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
222
223 * configure.ac: Use $SIM_DV_SOCKSER_O.
224 * configure: Regenerated.
225
5f3ef9d0
JB
2262012-06-15 Joel Brobecker <brobecker@adacore.com>
227
228 * config.in, configure: Regenerate.
229
2232061b
MF
2302012-03-24 Mike Frysinger <vapier@gentoo.org>
231
232 * aclocal.m4, config.in, configure: Regenerate.
233
db2e4d67
MF
2342011-12-03 Mike Frysinger <vapier@gentoo.org>
235
236 * aclocal.m4: New file.
237 * configure: Regenerate.
238
4399a56b
MF
2392011-10-19 Mike Frysinger <vapier@gentoo.org>
240
241 * configure: Regenerate after common/acinclude.m4 update.
242
9c082ca8
MF
2432011-10-17 Mike Frysinger <vapier@gentoo.org>
244
245 * configure.ac: Change include to common/acinclude.m4.
246
6ffe910a
MF
2472011-10-17 Mike Frysinger <vapier@gentoo.org>
248
249 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
250 call. Replace common.m4 include with SIM_AC_COMMON.
251 * configure: Regenerate.
252
2419798b
MF
2532011-07-05 Mike Frysinger <vapier@gentoo.org>
254
255 * interp.c (sim_do_command): Delete.
256
3725885a
RW
2572010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
258
259 * configure: Regenerate.
260
d6416cdc
RW
2612009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
262
81ecdfbb
RW
263 * config.in: Regenerate.
264 * configure: Likewise.
265
d6416cdc
RW
266 * configure: Regenerate.
267
b5bd9624
HPN
2682008-07-11 Hans-Peter Nilsson <hp@axis.com>
269
270 * configure: Regenerate to track ../common/common.m4 changes.
271 * config.in: Ditto.
272
6efef468 2732008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
274 Daniel Jacobowitz <dan@codesourcery.com>
275 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
276
277 * configure: Regenerate.
278
b1bfc053
HPN
2792006-12-21 Hans-Peter Nilsson <hp@axis.com>
280
281 * config.in: Regenerate.
282
e85e3205
RE
2832006-06-13 Richard Earnshaw <rearnsha@arm.com>
284
285 * configure: Regenerated.
286
2f0122dc
DJ
2872006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
288
289 * configure: Regenerated.
290
20e95c23
DJ
2912006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
292
293 * configure: Regenerated.
294
b3a3ffef
HPN
2952006-03-29 Hans-Peter Nilsson <hp@axis.com>
296
297 * configure: Regenerate.
298
2b193c4a
MK
2992005-03-23 Mark Kettenis <kettenis@gnu.org>
300
301 * configure: Regenerate.
302
35695fd6
AC
3032005-01-14 Andrew Cagney <cagney@gnu.org>
304
305 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
306 explicit call to AC_CONFIG_HEADER.
307 * configure: Regenerate.
308
38f48d72
AC
3092005-01-11 Andrew Cagney <cagney@localhost.localdomain>
310
311 * configure: Regenerated to track ../common/aclocal.m4 changes.
312
b7026657
AC
3132005-01-07 Andrew Cagney <cagney@gnu.org>
314
315 * configure.ac: Rename configure.in, require autoconf 2.59.
316 * configure: Re-generate.
317
379832de
HPN
3182004-12-08 Hans-Peter Nilsson <hp@axis.com>
319
320 * configure: Regenerate for ../common/aclocal.m4 update.
321
84b11e2e
AM
3222004-06-15 Alan Modra <amodra@bigpond.net.au>
323
324 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
325 instead of bfd_get_section_size_before_reloc.
326
a685700c
SC
3272003-08-08 Stephane Carrez <stcarrez@nerim.fr>
328
329 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
330 control the translation.
331 (m68hc11tim_print_timer): Update cycle_to_string conversion.
332 (m68hc11tim_timer_event): Fix handling of output
333 compare register with its interrupts.
334 (m68hc11tim_io_write_buffer): Check output compare
335 after setting M6811_TMSK1.
336 (m68hc11tim_io_read_buffer): Fix compilation warning.
337 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
338 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
339 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
340 * interrupts.c (interrupts_info): Likewise.
341 (interrupts_reset): Recognize bootstrap mode.
342 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
343 (_sim_cpu): Add cpu_start_mode.
344 (cycle_to_string): Add flags member.
345 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
346 (cpu_options): Declare new option bootstrap.
347 (cpu_option_handler): Handle it.
348 (cpu_info): Update call to cycle_to_string.
349
77342e5e
SC
3502003-08-08 Stephane Carrez <stcarrez@nerim.fr>
351
352 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
353 the physical address in virtual address.
354 (struct _sim_cpu): Add memory bank members.
355 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
356 * interp.c (sim_hw_configure): Create memory bank according to memory
357 bank parameters.
358 (sim_get_bank_parameters): New function to obtain memory bank config
359 from the symbol table.
360 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
361 (sim_open): Call sim_prepare_for_program.
362 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
363 to check if address is within bank window.
364 (m68hc11cpu_io_read_buffer): Likewise.
365 (attach_m68hc11_regs): Map the memory bank according to memory bank
366 parameters.
367
53b3cd22
SC
3682003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
369
370 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
371
962e9d85
SC
3722003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
373 Gary Piercey <gpiercey@northstar-technical.com>
374
375 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
376 * sim-main.h (print_io_word): Declare.
377 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
378 (tflg1_desc): Likewise for TFLG1.
379 (m68hc11tim_info): Print input and output compare registers
380
9b9f7b3c
SC
3812003-03-02 Stephane Carrez <stcarrez@nerim.fr>
382
383 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
384 to 32 to support memory bank switching; temporarily use 32-bit for
385 WORD_BITSIZE to avoid a bug in sim-common.
386
00416c6e
SC
3872003-03-01 Stephane Carrez <stcarrez@nerim.fr>
388
389 * interp.c (sim_fetch_register): Only store a single byte for
390 1 byte registers.
391
6b4a8935
AC
3922003-02-27 Andrew Cagney <cagney@redhat.com>
393
394 * interp.c (sim_prepare_for_program, sim_open)
395 (sim_create_inferior): Rename _bfd to bfd.
396
099d1b50
SC
3972002-08-13 Stephane Carrez <stcarrez@nerim.fr>
398
399 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
400
31c7c532
SC
4012002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
402
72f4393d 403 * interp.c (sim_prepare_for_program): Look up the image for the
31c7c532
SC
404 reset vector and set cpu_use_elf_start to 1 if not found.
405 (sim_open): Do not set cpu_use_elf_start.
406
39762100
SC
4072002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
408
409 * interp.c (sim_hw_configure): Return 1 for success.
410 (sim_prepare_for_program): Use the sim_hw_configure exit code to
411 return SIM_RC_FAIL.
412
7230d809
SC
4132002-08-13 Stephane Carrez <stcarrez@nerim.fr>
414
415 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
416 bank window to some virtual address to read from extended memory.
417 (m68hc11cpu_io_write_buffer): Likewise for writing.
ca156d78 418 (attach_m68hc11_regs): When use_bank property is defined, attach
7230d809 419 to the 68HC12 16K memory bank window.
7230d809
SC
420 * interp.c (sim_hw_configure): Create memory region for banked
421 memory.
422
dcceded2
SC
4232002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
424
425 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
426 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
427 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
428
abea9e28
SC
4292002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
430
431 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
432 when IO mapping changed, not when internal RAM mapping is changed.
433
63f36def
SC
4342002-08-13 Stephane Carrez <stcarrez@nerim.fr>
435
436 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
437 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
438 (m6811_regs): Add page register.
439 (cpu_set_page, cpu_get_page): New macros.
440 (phys_to_virt): New function.
441 (cpu_get_indexed_operand_addr, cpu_return): Declare.
442 * gencode.c: Identify indirect addressing mode for call and fix daa.
72f4393d 443 (gen_function_entry): New param to tell if src8/dst8 locals are
63f36def
SC
444 necessary.
445 (gen_interpreter): Use it to avoid generation of unused variables.
446 * interp.c (sim_fetch_register): Allow to read page register; page
447 register, A, B and CCR are only 1 byte wide.
448 (sim_store_register): Likewise for writing.
449
c8cca39f
AC
4502002-06-16 Andrew Cagney <ac131313@redhat.com>
451
452 * configure: Regenerated to track ../common/aclocal.m4 changes.
453
3c25f8c7
AC
4542002-06-09 Andrew Cagney <cagney@redhat.com>
455
456 * Makefile.in (INCLUDE): Update path to callback.h.
457 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
458
86596dc8
SC
4592002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
460
461 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
462 (cpu_move16): Likewise.
463 (sim_memory_error): Use sim_io_printf.
464 (cpu_option_handler): Fix compilation warning.
72f4393d 465 * interp.c (sim_hw_configure): Fix compilation warning;
86596dc8
SC
466 remove m68hc12sio@2 device.
467 (sim_open): Likewise.
72f4393d 468 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
86596dc8
SC
469 flags when reset.
470 (cycle_to_string): Improve convertion of cpu cycle number.
471 (m68hc11tim_info): Print info about PACNT.
472 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
473 TCTL1 and TCTL2 registers.
474 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
475
827ec39a
SC
4762002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
477
72f4393d 478 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
827ec39a
SC
479 cpu struct.
480 (sim_hw_configure): Connect the capture input/output events.
481 * sim-main.h (_sim_cpu): New member hw_cpu.
482 (m68hc11cpu_set_oscillator): Declare.
483 (m68hc11cpu_clear_oscillator): Declare.
484 (m68hc11cpu_set_port): Declare.
485 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
486 (m68hc11cpu_ports): New input ports and output ports to reflect
487 the HC11 IOs.
488 (m68hc11_delete): Cleanup any running oscillator.
489 (attach_m68hc11_regs): Create the input oscillators.
490 (make_oscillator): New function.
491 (find_oscillator): New function.
492 (oscillator_handler): New function.
493 (reset_oscillators): New function.
494 (m68hc11cpu_port_event): Handle the new input ports.
495 (m68hc11cpu_set_oscillator): New function.
496 (m68hc11cpu_clear_oscillator): New function.
497 (get_frequency): New function.
498 (m68hc11_option_handler): New function.
499 (m68hc11cpu_set_port): New function.
500 (m68hc11cpu_io_write): Post the port output events.
501 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
502 the output port value.
503 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
504 by latching the TCNT value in the register.
505
5abb9efa
SC
5062002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
507
508 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
509 (cpu_frame_reg, cpu_print_frame): Remove.
510 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
511 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
512 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
513 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
514 * m68hc11_sim.c (cpu_find_frame): Remove.
515 (cpu_create_frame_list): Remove.
516 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
517 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
518 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
519 (cpu_update_frame): Likewise.
520 (cpu_return): Likewise.
521 (cpu_reset): Likewise.
72f4393d 522 (cpu_initialize): Likewise.
5abb9efa
SC
523 * interp.c (sim_do_command): Remove call to cpu_print_frame.
524
26128965
SC
5252002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
526
527 * interrupts.c (interrupts_reset): New function, setup interrupt
528 vector address according to cpu mode.
529 (interrupts_initialize): Move reset portion to the above.
530 (interrupt_names): New table to give a name to interrupts.
531 (idefs): Handle pulse accumulator interrupts.
532 (interrupts_info): Print the interrupt history.
533 (interrupt_option_handler): New function.
534 (interrupt_options): New table of options.
535 (interrupts_update_pending): Keep track of when interrupts are
536 raised and implement breakpoint-on-raise-interrupt.
537 (interrupts_process): Keep track of when interrupts are taken
538 and implement breakpoint-on-interrupt.
539 * interrupts.h (struct interrupt_history): Define.
540 (struct interrupt): Keep track of the interrupt history.
541 (interrupts_reset): Declare.
542 (interrupts_initialize): Update prototype.
543 * m68hc11_sim.c (cpu_reset): Reset interrupts.
544 (cpu_initialize): Cleanup.
545
eefde351
SC
5462001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
547
548 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
549 address.
550 (m68hc11eepr_port_event): Fix detach/attach logic.
551
00d0c012
SC
5522001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
553
554 * Makefile.in (SIM_OBJS): Remove sim-resume.o
555 * interp.c (sim_resume): New function from sim-resume.c, install
556 the stepping event after having processed the pending ticks.
557 (has_stepped): Likewise.
558 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
559
b51c7603
AC
5602001-07-10 Andrew Cagney <ac131313@redhat.com>
561
562 * Makefile.in (gencode): Provide explicit path to gencode.c.
563
81e09ed8
SC
5642001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
565
566 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
567 (m68hc12int.c): Generate using gencode -m6812.
568 (m68hc11int.c): Likewise with -m6811.
569
570 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
571 (m6811_page1_opcodes): Remove duplicate entries.
572 (m6811_page2_opcodes): Likewise.
573 (m6811_page3_opcodes): Likewise.
574 (m6811_page4_opcodes): Likewise.
575 (m6812_page1_opcodes): New table for 68HC12 instructions.
576 (m6812_page2_opcodes): Likewise.
577 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
578 (gen_save_result): Likewise.
579 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
580 (cmp_opcode): New function for opcode comparision.
581 (prepare_table): Sort the opcodes.
582 (gen_interpreter): Prepare all the tables and generate either
583 a 68HC11 or a 68HC12 simulator.
584 (main): New options -m6811 and -m6812.
585
586 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
587 (cpu_special): Simulation of some 68HC12 instructions.
588 (cpu_exg): New function.
589 (cpu_dbcc): Likewise.
590 (cpu_fetch_relbranch16): Likewise.
591 (cpu_push_all): Push according to 68HC11 or 68HC12.
592 (cpu_move16): Likewise.
593 (cpu_move8): Likewise.
594 (cpu_get_indexed_operand16): Likewise.
595 (cpu_get_indexed_operand8): Likewise.
596 (cpu_get_indexed_operand_addr): Likewise.
597 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
598 (cpu_reset): Setup INIT register according to architecture.
72f4393d 599
81e09ed8
SC
600 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
601 (_sim_cpu): Keep track of the cpu being simulated.
602 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
603 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
604 (cpu_m68hc11_pop_uint8): Likewise.
605 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
606 (cpu_m68hc12_pop_uintxx): Likewise.
607 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
608 (cpu_fetch_relbranch16): Likewise.
609 (cpu_interp_m6811): Rename of cpu_interp.
72f4393d 610 (cpu_interp_m6812): New function.
81e09ed8
SC
611 * interp.c (free_state): New function.
612 (dev_list_68hc12): New table.
613 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
614 (sim_hw_configure): New function.
615 (sim_prepare_for_program): New function.
616 (sim_open): Use above new functions.
617 (sim_close): Call free_state().
618 (sim_info): Print info according to cpu.
619 (sim_create_inferior): Use sim_prepare_for_program.
620 (sim_do_command): Configure the hardware after a change of the
621 architecture.
622
11115521
SC
6232001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
624
625 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
626 pending interrupts.
627 * interrupts.c (interrupts_process): Keep track of the last number
628 of masked insn cycles.
629 (interrupts_initialize): Clear last number of masked insn cycles.
630 (interrupts_info): Report them.
72f4393d
L
631 (interrupts_update_pending): Compute clear and set masks of
632 interrupts and clear the interrupt bits before setting them
11115521
SC
633 (due to SCI interrupt sharing).
634 * interrupts.h (struct interrupts): New members last_mask_cycles
635 and xirq_last_mask_cycles.
636
b93775f5
SC
6372000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
638
639 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
640 instead of a hard-coded value.
641 (m68hc11cpu_io_write_buffer): Likewise.
642 (dv_m68hc11_descriptor): Define a 68hc12 device.
643 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
644 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
645 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
646 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
647
639aa4f7
SC
6482000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
649
650 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
651 (m68hc11cpu_delete): Delete handler to detach the address space.
652
6e73e7ed
SC
6532000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
654
655 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
656 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
657 instead of free and malloc.
658
5f186447
SC
6592000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
660
661 * Makefile.in: Was missing from initial patch.
662
9830501b
SC
6632000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
664
665 * interp.c (sim_store_register): Remove soft register hack.
666 (sim_fetch_register): Likewise.
667 (sim_create_inferior): Likewise.
668 * sim-main.h: Likewise.
669
a8afa79a
SC
6702000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
671
672 * interrupts.c (interrupts_update_pending): Clear the mask of
673 pending interrupts here.
674 (interrupts_get_current): Don't clear the mask of pending interrupts.
675
2990a9f4
SC
6762000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
677
678 * sim-main.h: Define cycle_to_string.
72f4393d 679 * dv-m68hc11tim.c (cycle_to_string): New function to translate
2990a9f4
SC
680 the cpu cycle into some formatted time string.
681 (m68hc11tim_print_timer): Use it.
682 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
683 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
684 * interrupts.c (interrupts_info): Likewise.
685 * m68hc11_sim.c (cpu_info): Likewise.
686
401493c8
SC
6872000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
688
689 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
690 interrupt and compare events accurately. Take into account the
691 pending ticks not processed by the simulator yet (introduced a shift).
692 (m68hc11_port_event): Reset the timer interrupt delays.
693 (m68hc11tim_io_read_buffer): Be able to read several bytes.
694 (m68hc11tim_io_write_buffer): Likewise for write.
695 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
696
4d72d17a
SC
6972000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
698
699 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
700 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
701 (m68hc11spi_info): Clarify the status report
702 of the SPI when a byte is being sent.
703 (m68hc11spi_clock): Fix the spi send frame.
72f4393d 704
63348d04
SC
7052000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
706
707 * sim-main.h (m68hc11_map_level): Define level of address mappings.
708 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
709 whether the eeprom is currently mapped or not.
710 (m68hc11eepr_port_event): Use the flag to see if we must unmap
711 or map the eeprom. Update the flag to reflect the current state.
712 Use M6811_EEPROM_LEVEL when mapping the eeprom.
713 (m68hc11eepr_finish): Remove overlap hack.
714 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
715 config and control registers.
716 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
717 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
718 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
719 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
720 (attach_m68hc11spi_regs): Likewise.
721 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
722 (attach_m68hc11tim_regs): Likewise.
723 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
724 (attach_m68hc11sio_regs): Likewise.
725 * interp.c (sim_open): Likewise.
726 * dv-nvram.c (attach_nvram_regs): Likewise.
727
5d031c16
AC
728Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
729
730 * configure, config.in: Regenerate.
731
e0709f50
AC
7322000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
733
734 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
735 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
736 (dv_m6811_detach_address_callback): New function to detach a
737 device from an address space.
738 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
739 config register according to --cpu-config option.
740 * sim-main.h (_sim_cpu): Add cpu_config member.
741 * interp.c (sim_open): Delete specific simulator options.
742 * m68hc11_sim.c (cpu_option_handler): New options
743 --emulos and -cpu-config <val> to configure the simulator.
744 (cpu_initialize): Initialize cpu_config member.
745
7462000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
747
748 * emulos.c: Fix indentation and comments.
749 * gencode.c: Likewise.
750 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
751 (m68hc11tim_io_write_buffer): Write compare registers and
752 setup compare event.
753 * interp.c: Remove unused global variables.
754 * interrupts.c (idefs): New compare interrupts.
755 Fix indentation and comments.
756 * interrupts.h: Likewise.
757
7582000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
759
760 * dv-m68hc11sio.c: Fix indentation and comments.
761 Remove INT_PORT.
762 * dv-m68hc11.c: Fix indentation and comments.
763 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
764 * m68hc11_sim.c (cpu_reset): To here.
765 * dv-m68hc11eepr.c: Fix indentation and comments.
72f4393d 766
e0709f50
AC
7672000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
768
769 * dv-nvram.c: New file, rename from dv-pram.c.
770 * dv-pram.c: Delete file.
771 * sim-main.h: Incorporate m68hc11_sim.h.
772 * m68hc11_sim.h: Delete file.
773 * configure.in: Rename pram into nvram.
774 * interp.c (sim_open): Likewise in creation of device tree.
72f4393d 775
e0709f50
AC
7762000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
777
778 * interp.c (sim_open): Create the SPI device.
779 * dv-m68hc11spi.c: New file for SPI device simulation.
780 * configure.in (hw_extra_devices): Add SPI device.
781
7822000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
783
784 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
785 (interrupts_process): Separate IRQ and XIRQ accounting.
786 (interrupts_info): Report XIRQ accounting.
787 * interrupts.h (struct interrupts): Added accounting for XIRQ.
788
7892000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
790
791 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
792 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
72f4393d 793 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
e0709f50
AC
794 configuration from the 'mode' device tree property.
795 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
796 configuration.
797
7982000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
799
800 * sim-main.h: Remove WITH_TARGET_* defines.
801 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
802
8032000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
804
805 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
806 1200 baud when cpu is in bootstrap mode.
807
808 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
809 write in the TCTN timer register.
810
811 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
812 by 4 to obtain the E clock frequency.
813 (sccr2_desc): Use M6811_TIE for TIE bit.
814 (m68hc11sio_info): Fix baud rate report.
815
816 * dv-m68hc11tim.c (to_realtime): Likewise.
817
818 * interp.c (sim_open): When building device tree, only provide
819 devices that do not exist yet.
820
821 * emulos.c: Fix compilation pb under Windows.
822
823 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
824 from the 'clock' property.
825
8262000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
827
828 * m68hc11_sim.h (*_REGNUM): Define.
829 (_sim_cpu): New member cpu_page0_reg table.
830 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
831 addresses of soft registers in .page0.
72f4393d 832 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
e0709f50
AC
833 to get/set soft registers.
834
8351999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
836
837 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
838 returning random values.
839
8401999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
841
842 * gencode.c: Fix "subb N,x" that used a instead of b.
843
8441999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
845
846 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
847
8481999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
849
850 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
851
8521999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
853
854 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
855 register region in the m68hc11cpu struct.
856 (m68hc11cpu_io_write): When the IO mapping addres changes,
857 detach the register region and re-attach it at the new address.
858 (m68hc11cpu_io_read_buffer): Renamed base_address into
859 attach_address.
860 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
861 to m68hc11cpu_io_write.
862
8631999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
864
865 * gencode.c: For sbc8, check the carry and increment the source
866 before trying to set the carry for the result.
867
8681999-05-24 John S. Kallal <kallal@voicenet.com>
72f4393d 869
e0709f50
AC
870 * interp.c (sim_get_info): Don't crash if the command line is 0.
871 Define prototype for sim_get_info() and init_system().
872 (sim_info): Correct call to sim_get_info().
72f4393d 873
e0709f50
AC
8741999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
875
876 * configure.in: Recognize m6811-*-*.
877 * configure: Regenerate.
878 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
879 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
880 Correct the computation of carry of 8 and 16-bits add and subtract.
881 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
882 overflow set in a different manner than add).
883
8841999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
885
886 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
887 trace message.
888 * interp.c (sim_open, sim_create_inferior): Initialize the
889 cpu_elf_start from the ELF header.
890 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
891 (cpu_restart): Use cpu_elf_start as the starting address when
892 the flag is set.
893 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
894 exits the simulator (exit status is in D).
895 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
896 cpu_elf_star to start execution at address specified in ELF file.
897
8981999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
899
900 * Makefile.in, config.in, configure, configure.in: New files.
901 * gencode.c: New file, generation of 68HC11 interpreter.
902 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
903 for interpreter.
904 * interrupts.c, interrupts.h: New files, management of interrupts.
72f4393d 905 * interp.c, sim-main.h,
e0709f50
AC
906 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
907 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
908 68HC11 (dv-pram.c is generic and could probably migrate to common).
909 * emulos.c: New file, basic emulation of some os.