]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
sim: allow the assert configure option everywhere
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
35656e95
MF
12016-01-10 Mike Frysinger <vapier@gentoo.org>
2
3 * configure: Regenerate.
4
99d8e879
MF
52016-01-10 Mike Frysinger <vapier@gentoo.org>
6
7 * configure: Regenerate.
8
347fe5bb
MF
92016-01-10 Mike Frysinger <vapier@gentoo.org>
10
11 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
12 * configure: Regenerate.
13
22be3fbe
MF
142016-01-10 Mike Frysinger <vapier@gentoo.org>
15
16 * configure: Regenerate.
17
0dc73ef7
MF
182016-01-10 Mike Frysinger <vapier@gentoo.org>
19
20 * configure: Regenerate.
21
936df756
MF
222016-01-09 Mike Frysinger <vapier@gentoo.org>
23
24 * config.in, configure: Regenerate.
25
2e3d4f4d
MF
262016-01-06 Mike Frysinger <vapier@gentoo.org>
27
28 * interp.c (sim_open): Mark argv const.
29 (sim_create_inferior): Mark argv and env const.
30
9bbf6f91
MF
312016-01-04 Mike Frysinger <vapier@gentoo.org>
32
33 * configure: Regenerate.
34
77cf2ef5
MF
352016-01-03 Mike Frysinger <vapier@gentoo.org>
36
37 * interp.c (sim_open): Update sim_parse_args comment.
38
61971b86
MF
392016-01-03 Mike Frysinger <vapier@gentoo.org>
40
41 * sim-main.h (sim_state): Delete devices member.
42
0cb8d851
MF
432016-01-03 Mike Frysinger <vapier@gentoo.org>
44
45 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
46 * configure: Regenerate.
47
1ac72f06
MF
482016-01-02 Mike Frysinger <vapier@gentoo.org>
49
50 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
51 * configure: Regenerate.
52
8e26d677
MF
532015-12-30 Mike Frysinger <vapier@gentoo.org>
54
55 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
56 * configure: Regenerate.
57
eca4255a
MF
582015-12-30 Mike Frysinger <vapier@gentoo.org>
59
60 * imterp.c (sim_open): Delete current_alignment and
61 current_target_byte_order assignments.
62 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
63 * configure: Regenerate.
64
e1211e55
MF
652015-12-30 Mike Frysinger <vapier@gentoo.org>
66
67 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
68 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
69 (sim_store_register): Rename to ...
70 (m68hc11_reg_store): ... this. Delete local cpu var.
71 (sim_fetch_register): Rename to ...
72 (m68hc11_reg_fetch): ... this. Delete local cpu var.
73
5e744ef8
MF
742015-12-27 Mike Frysinger <vapier@gentoo.org>
75
76 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
77
1b393626
MF
782015-12-26 Mike Frysinger <vapier@gentoo.org>
79
80 * config.in, configure: Regenerate.
81
26936211
MF
822015-12-24 Mike Frysinger <vapier@gentoo.org>
83
84 * sim-main.h (SIM_HANDLES_LMA): Delete.
85
84e8e361
MF
862015-12-24 Mike Frysinger <vapier@gentoo.org>
87
88 * sim-main.h (WITH_WATCHPOINTS): Delete.
89
cdf850e9
MF
902015-11-17 Mike Frysinger <vapier@gentoo.org>
91
92 * sim-main.h (WITH_MODULO_MEMORY): Delete.
93
797eee42
MF
942015-11-15 Mike Frysinger <vapier@gentoo.org>
95
96 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
97
d2dfd242
MF
982015-11-14 Mike Frysinger <vapier@gentoo.org>
99
100 * Makefile.in (SIM_OBJS): Delete sim-load.o.
101
6e4f085c
MF
1022015-11-14 Mike Frysinger <vapier@gentoo.org>
103
104 * interp.c (sim_close): Delete.
105
8d0978fb
MF
1062015-06-23 Mike Frysinger <vapier@gentoo.org>
107
108 * configure: Regenerate.
109
a3487082
MF
1102015-06-12 Mike Frysinger <vapier@gentoo.org>
111
112 * configure: Regenerate.
113
306f4178
MF
1142015-06-12 Mike Frysinger <vapier@gentoo.org>
115
116 * configure: Regenerate.
117
09896bd2
MF
1182015-06-11 Mike Frysinger <vapier@gentoo.org>
119
120 * interp.c (interrupt_names): Delete.
121
a84f8df0
MF
1222015-06-11 Mike Frysinger <vapier@gentoo.org>
123
124 * Makefile.in (SIM_OBJS): Add sim-resume.o
125 * interp.c (has_stepped, sim_resume): Delete.
126
5d19c366
MF
1272015-06-11 Mike Frysinger <vapier@gentoo.org>
128
129 * interp.c (INLINE): Delete define.
130
0a13382c
NC
1312015-04-29 Nick Clifton <nickc@redhat.com>
132
133 PR 18273
134 * gencode.c (gen_fetch_operands): Remove unreachable code.
135
20bca71d
MF
1362015-04-18 Mike Frysinger <vapier@gentoo.org>
137
138 * sim-main.h (SIM_CPU): Delete.
139
7e83aa92
MF
1402015-04-18 Mike Frysinger <vapier@gentoo.org>
141
142 * sim-main.h (sim_cia): Delete.
143
034685f9
MF
1442015-04-17 Mike Frysinger <vapier@gentoo.org>
145
146 * sim-main.h (CIA_GET, CIA_SET): Delete.
147
78e9aa70
MF
1482015-04-15 Mike Frysinger <vapier@gentoo.org>
149
150 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
151 * sim-main.h (STATE_CPU): Delete.
152
bf12d44e
MF
1532015-04-13 Mike Frysinger <vapier@gentoo.org>
154
155 * configure: Regenerate.
156
bea3f671
MF
1572015-04-13 Mike Frysinger <vapier@gentoo.org>
158
159 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
160 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
161 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
162 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
163 (sim_pc_get): Delete.
164 * sim-main.h (SIM_CPU): Define.
165 (STATE_CPU): Drop &.
166 (struct sim_state): Change cpu to an array of pointers.
167
122bbfb5
MF
1682015-04-06 Mike Frysinger <vapier@gentoo.org>
169
170 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
171
2b6ca062
MF
1722015-03-31 Mike Frysinger <vapier@gentoo.org>
173
174 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
175 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
176 variable to restricted.
177 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
178
05f53ed6
MF
1792015-03-24 Mike Frysinger <vapier@gentoo.org>
180
181 * interp.c (sim_pc_get): New function.
182
523ba8f9
MF
1832015-03-24 Mike Frysinger <vapier@gentoo.org>
184
185 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
186 sim_size, sim_trace): Delete.
187 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
188
30452bbe
MF
1892015-03-24 Mike Frysinger <vapier@gentoo.org>
190
191 * configure: Regenerate.
192
64dd13df
MF
1932015-03-23 Mike Frysinger <vapier@gentoo.org>
194
195 * configure: Regenerate.
196
49cd1634
MF
1972015-03-23 Mike Frysinger <vapier@gentoo.org>
198
199 * configure: Regenerate.
200 * configure.ac (m68hc11_extra_objs): Delete.
201 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
202 (SIM_EXTRA_OBJS): Delete.
203
ae7d0cac
MF
2042015-03-16 Mike Frysinger <vapier@gentoo.org>
205
206 * config.in, configure: Regenerate.
207
465fb143
MF
2082015-03-14 Mike Frysinger <vapier@gentoo.org>
209
210 * Makefile.in (SIM_RUN_OBJS): Delete.
211
5cddc23a
MF
2122015-03-14 Mike Frysinger <vapier@gentoo.org>
213
214 * configure.ac (AC_CHECK_HEADERS): Delete.
215 * aclocal.m4, configure: Regenerate.
216
2974be62
AM
2172014-08-19 Alan Modra <amodra@gmail.com>
218
219 * configure: Regenerate.
220
faa743bb
RM
2212014-08-15 Roland McGrath <mcgrathr@google.com>
222
223 * configure: Regenerate.
224 * config.in: Regenerate.
225
1a8a700e
MF
2262014-03-04 Mike Frysinger <vapier@gentoo.org>
227
228 * configure: Regenerate.
229
bf3d9781
AM
2302013-09-23 Alan Modra <amodra@gmail.com>
231
232 * configure: Regenerate.
233
31e6ad7d
MF
2342013-06-03 Mike Frysinger <vapier@gentoo.org>
235
236 * aclocal.m4, configure: Regenerate.
237
d3685d60
TT
2382013-05-10 Freddie Chopin <freddie_chopin@op.pl>
239
240 * configure: Rebuild.
241
1517bd27
MF
2422013-03-26 Mike Frysinger <vapier@gentoo.org>
243
244 * configure: Regenerate.
245
256139f5
JS
2462013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
247
248 * configure.ac: Use $SIM_DV_SOCKSER_O.
249 * configure: Regenerated.
250
5f3ef9d0
JB
2512012-06-15 Joel Brobecker <brobecker@adacore.com>
252
253 * config.in, configure: Regenerate.
254
2232061b
MF
2552012-03-24 Mike Frysinger <vapier@gentoo.org>
256
257 * aclocal.m4, config.in, configure: Regenerate.
258
db2e4d67
MF
2592011-12-03 Mike Frysinger <vapier@gentoo.org>
260
261 * aclocal.m4: New file.
262 * configure: Regenerate.
263
4399a56b
MF
2642011-10-19 Mike Frysinger <vapier@gentoo.org>
265
266 * configure: Regenerate after common/acinclude.m4 update.
267
9c082ca8
MF
2682011-10-17 Mike Frysinger <vapier@gentoo.org>
269
270 * configure.ac: Change include to common/acinclude.m4.
271
6ffe910a
MF
2722011-10-17 Mike Frysinger <vapier@gentoo.org>
273
274 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
275 call. Replace common.m4 include with SIM_AC_COMMON.
276 * configure: Regenerate.
277
2419798b
MF
2782011-07-05 Mike Frysinger <vapier@gentoo.org>
279
280 * interp.c (sim_do_command): Delete.
281
3725885a
RW
2822010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
283
284 * configure: Regenerate.
285
d6416cdc
RW
2862009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
287
81ecdfbb
RW
288 * config.in: Regenerate.
289 * configure: Likewise.
290
d6416cdc
RW
291 * configure: Regenerate.
292
b5bd9624
HPN
2932008-07-11 Hans-Peter Nilsson <hp@axis.com>
294
295 * configure: Regenerate to track ../common/common.m4 changes.
296 * config.in: Ditto.
297
6efef468 2982008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
299 Daniel Jacobowitz <dan@codesourcery.com>
300 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
301
302 * configure: Regenerate.
303
b1bfc053
HPN
3042006-12-21 Hans-Peter Nilsson <hp@axis.com>
305
306 * config.in: Regenerate.
307
e85e3205
RE
3082006-06-13 Richard Earnshaw <rearnsha@arm.com>
309
310 * configure: Regenerated.
311
2f0122dc
DJ
3122006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
313
314 * configure: Regenerated.
315
20e95c23
DJ
3162006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
317
318 * configure: Regenerated.
319
b3a3ffef
HPN
3202006-03-29 Hans-Peter Nilsson <hp@axis.com>
321
322 * configure: Regenerate.
323
2b193c4a
MK
3242005-03-23 Mark Kettenis <kettenis@gnu.org>
325
326 * configure: Regenerate.
327
35695fd6
AC
3282005-01-14 Andrew Cagney <cagney@gnu.org>
329
330 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
331 explicit call to AC_CONFIG_HEADER.
332 * configure: Regenerate.
333
38f48d72
AC
3342005-01-11 Andrew Cagney <cagney@localhost.localdomain>
335
336 * configure: Regenerated to track ../common/aclocal.m4 changes.
337
b7026657
AC
3382005-01-07 Andrew Cagney <cagney@gnu.org>
339
340 * configure.ac: Rename configure.in, require autoconf 2.59.
341 * configure: Re-generate.
342
379832de
HPN
3432004-12-08 Hans-Peter Nilsson <hp@axis.com>
344
345 * configure: Regenerate for ../common/aclocal.m4 update.
346
84b11e2e
AM
3472004-06-15 Alan Modra <amodra@bigpond.net.au>
348
349 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
350 instead of bfd_get_section_size_before_reloc.
351
a685700c
SC
3522003-08-08 Stephane Carrez <stcarrez@nerim.fr>
353
354 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
355 control the translation.
356 (m68hc11tim_print_timer): Update cycle_to_string conversion.
357 (m68hc11tim_timer_event): Fix handling of output
358 compare register with its interrupts.
359 (m68hc11tim_io_write_buffer): Check output compare
360 after setting M6811_TMSK1.
361 (m68hc11tim_io_read_buffer): Fix compilation warning.
362 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
363 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
364 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
365 * interrupts.c (interrupts_info): Likewise.
366 (interrupts_reset): Recognize bootstrap mode.
367 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
368 (_sim_cpu): Add cpu_start_mode.
369 (cycle_to_string): Add flags member.
370 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
371 (cpu_options): Declare new option bootstrap.
372 (cpu_option_handler): Handle it.
373 (cpu_info): Update call to cycle_to_string.
374
77342e5e
SC
3752003-08-08 Stephane Carrez <stcarrez@nerim.fr>
376
377 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
378 the physical address in virtual address.
379 (struct _sim_cpu): Add memory bank members.
380 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
381 * interp.c (sim_hw_configure): Create memory bank according to memory
382 bank parameters.
383 (sim_get_bank_parameters): New function to obtain memory bank config
384 from the symbol table.
385 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
386 (sim_open): Call sim_prepare_for_program.
387 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
388 to check if address is within bank window.
389 (m68hc11cpu_io_read_buffer): Likewise.
390 (attach_m68hc11_regs): Map the memory bank according to memory bank
391 parameters.
392
53b3cd22
SC
3932003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
394
395 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
396
962e9d85
SC
3972003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
398 Gary Piercey <gpiercey@northstar-technical.com>
399
400 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
401 * sim-main.h (print_io_word): Declare.
402 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
403 (tflg1_desc): Likewise for TFLG1.
404 (m68hc11tim_info): Print input and output compare registers
405
9b9f7b3c
SC
4062003-03-02 Stephane Carrez <stcarrez@nerim.fr>
407
408 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
409 to 32 to support memory bank switching; temporarily use 32-bit for
410 WORD_BITSIZE to avoid a bug in sim-common.
411
00416c6e
SC
4122003-03-01 Stephane Carrez <stcarrez@nerim.fr>
413
414 * interp.c (sim_fetch_register): Only store a single byte for
415 1 byte registers.
416
6b4a8935
AC
4172003-02-27 Andrew Cagney <cagney@redhat.com>
418
419 * interp.c (sim_prepare_for_program, sim_open)
420 (sim_create_inferior): Rename _bfd to bfd.
421
099d1b50
SC
4222002-08-13 Stephane Carrez <stcarrez@nerim.fr>
423
424 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
425
31c7c532
SC
4262002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
427
72f4393d 428 * interp.c (sim_prepare_for_program): Look up the image for the
31c7c532
SC
429 reset vector and set cpu_use_elf_start to 1 if not found.
430 (sim_open): Do not set cpu_use_elf_start.
431
39762100
SC
4322002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
433
434 * interp.c (sim_hw_configure): Return 1 for success.
435 (sim_prepare_for_program): Use the sim_hw_configure exit code to
436 return SIM_RC_FAIL.
437
7230d809
SC
4382002-08-13 Stephane Carrez <stcarrez@nerim.fr>
439
440 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
441 bank window to some virtual address to read from extended memory.
442 (m68hc11cpu_io_write_buffer): Likewise for writing.
ca156d78 443 (attach_m68hc11_regs): When use_bank property is defined, attach
7230d809 444 to the 68HC12 16K memory bank window.
7230d809
SC
445 * interp.c (sim_hw_configure): Create memory region for banked
446 memory.
447
dcceded2
SC
4482002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
449
450 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
451 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
452 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
453
abea9e28
SC
4542002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
455
456 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
457 when IO mapping changed, not when internal RAM mapping is changed.
458
63f36def
SC
4592002-08-13 Stephane Carrez <stcarrez@nerim.fr>
460
461 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
462 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
463 (m6811_regs): Add page register.
464 (cpu_set_page, cpu_get_page): New macros.
465 (phys_to_virt): New function.
466 (cpu_get_indexed_operand_addr, cpu_return): Declare.
467 * gencode.c: Identify indirect addressing mode for call and fix daa.
72f4393d 468 (gen_function_entry): New param to tell if src8/dst8 locals are
63f36def
SC
469 necessary.
470 (gen_interpreter): Use it to avoid generation of unused variables.
471 * interp.c (sim_fetch_register): Allow to read page register; page
472 register, A, B and CCR are only 1 byte wide.
473 (sim_store_register): Likewise for writing.
474
c8cca39f
AC
4752002-06-16 Andrew Cagney <ac131313@redhat.com>
476
477 * configure: Regenerated to track ../common/aclocal.m4 changes.
478
3c25f8c7
AC
4792002-06-09 Andrew Cagney <cagney@redhat.com>
480
481 * Makefile.in (INCLUDE): Update path to callback.h.
482 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
483
86596dc8
SC
4842002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
485
486 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
487 (cpu_move16): Likewise.
488 (sim_memory_error): Use sim_io_printf.
489 (cpu_option_handler): Fix compilation warning.
72f4393d 490 * interp.c (sim_hw_configure): Fix compilation warning;
86596dc8
SC
491 remove m68hc12sio@2 device.
492 (sim_open): Likewise.
72f4393d 493 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
86596dc8
SC
494 flags when reset.
495 (cycle_to_string): Improve convertion of cpu cycle number.
496 (m68hc11tim_info): Print info about PACNT.
497 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
498 TCTL1 and TCTL2 registers.
499 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
500
827ec39a
SC
5012002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
502
72f4393d 503 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
827ec39a
SC
504 cpu struct.
505 (sim_hw_configure): Connect the capture input/output events.
506 * sim-main.h (_sim_cpu): New member hw_cpu.
507 (m68hc11cpu_set_oscillator): Declare.
508 (m68hc11cpu_clear_oscillator): Declare.
509 (m68hc11cpu_set_port): Declare.
510 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
511 (m68hc11cpu_ports): New input ports and output ports to reflect
512 the HC11 IOs.
513 (m68hc11_delete): Cleanup any running oscillator.
514 (attach_m68hc11_regs): Create the input oscillators.
515 (make_oscillator): New function.
516 (find_oscillator): New function.
517 (oscillator_handler): New function.
518 (reset_oscillators): New function.
519 (m68hc11cpu_port_event): Handle the new input ports.
520 (m68hc11cpu_set_oscillator): New function.
521 (m68hc11cpu_clear_oscillator): New function.
522 (get_frequency): New function.
523 (m68hc11_option_handler): New function.
524 (m68hc11cpu_set_port): New function.
525 (m68hc11cpu_io_write): Post the port output events.
526 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
527 the output port value.
528 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
529 by latching the TCNT value in the register.
530
5abb9efa
SC
5312002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
532
533 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
534 (cpu_frame_reg, cpu_print_frame): Remove.
535 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
536 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
537 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
538 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
539 * m68hc11_sim.c (cpu_find_frame): Remove.
540 (cpu_create_frame_list): Remove.
541 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
542 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
543 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
544 (cpu_update_frame): Likewise.
545 (cpu_return): Likewise.
546 (cpu_reset): Likewise.
72f4393d 547 (cpu_initialize): Likewise.
5abb9efa
SC
548 * interp.c (sim_do_command): Remove call to cpu_print_frame.
549
26128965
SC
5502002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
551
552 * interrupts.c (interrupts_reset): New function, setup interrupt
553 vector address according to cpu mode.
554 (interrupts_initialize): Move reset portion to the above.
555 (interrupt_names): New table to give a name to interrupts.
556 (idefs): Handle pulse accumulator interrupts.
557 (interrupts_info): Print the interrupt history.
558 (interrupt_option_handler): New function.
559 (interrupt_options): New table of options.
560 (interrupts_update_pending): Keep track of when interrupts are
561 raised and implement breakpoint-on-raise-interrupt.
562 (interrupts_process): Keep track of when interrupts are taken
563 and implement breakpoint-on-interrupt.
564 * interrupts.h (struct interrupt_history): Define.
565 (struct interrupt): Keep track of the interrupt history.
566 (interrupts_reset): Declare.
567 (interrupts_initialize): Update prototype.
568 * m68hc11_sim.c (cpu_reset): Reset interrupts.
569 (cpu_initialize): Cleanup.
570
eefde351
SC
5712001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
572
573 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
574 address.
575 (m68hc11eepr_port_event): Fix detach/attach logic.
576
00d0c012
SC
5772001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
578
579 * Makefile.in (SIM_OBJS): Remove sim-resume.o
580 * interp.c (sim_resume): New function from sim-resume.c, install
581 the stepping event after having processed the pending ticks.
582 (has_stepped): Likewise.
583 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
584
b51c7603
AC
5852001-07-10 Andrew Cagney <ac131313@redhat.com>
586
587 * Makefile.in (gencode): Provide explicit path to gencode.c.
588
81e09ed8
SC
5892001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
590
591 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
592 (m68hc12int.c): Generate using gencode -m6812.
593 (m68hc11int.c): Likewise with -m6811.
594
595 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
596 (m6811_page1_opcodes): Remove duplicate entries.
597 (m6811_page2_opcodes): Likewise.
598 (m6811_page3_opcodes): Likewise.
599 (m6811_page4_opcodes): Likewise.
600 (m6812_page1_opcodes): New table for 68HC12 instructions.
601 (m6812_page2_opcodes): Likewise.
602 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
603 (gen_save_result): Likewise.
604 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
605 (cmp_opcode): New function for opcode comparision.
606 (prepare_table): Sort the opcodes.
607 (gen_interpreter): Prepare all the tables and generate either
608 a 68HC11 or a 68HC12 simulator.
609 (main): New options -m6811 and -m6812.
610
611 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
612 (cpu_special): Simulation of some 68HC12 instructions.
613 (cpu_exg): New function.
614 (cpu_dbcc): Likewise.
615 (cpu_fetch_relbranch16): Likewise.
616 (cpu_push_all): Push according to 68HC11 or 68HC12.
617 (cpu_move16): Likewise.
618 (cpu_move8): Likewise.
619 (cpu_get_indexed_operand16): Likewise.
620 (cpu_get_indexed_operand8): Likewise.
621 (cpu_get_indexed_operand_addr): Likewise.
622 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
623 (cpu_reset): Setup INIT register according to architecture.
72f4393d 624
81e09ed8
SC
625 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
626 (_sim_cpu): Keep track of the cpu being simulated.
627 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
628 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
629 (cpu_m68hc11_pop_uint8): Likewise.
630 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
631 (cpu_m68hc12_pop_uintxx): Likewise.
632 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
633 (cpu_fetch_relbranch16): Likewise.
634 (cpu_interp_m6811): Rename of cpu_interp.
72f4393d 635 (cpu_interp_m6812): New function.
81e09ed8
SC
636 * interp.c (free_state): New function.
637 (dev_list_68hc12): New table.
638 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
639 (sim_hw_configure): New function.
640 (sim_prepare_for_program): New function.
641 (sim_open): Use above new functions.
642 (sim_close): Call free_state().
643 (sim_info): Print info according to cpu.
644 (sim_create_inferior): Use sim_prepare_for_program.
645 (sim_do_command): Configure the hardware after a change of the
646 architecture.
647
11115521
SC
6482001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
649
650 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
651 pending interrupts.
652 * interrupts.c (interrupts_process): Keep track of the last number
653 of masked insn cycles.
654 (interrupts_initialize): Clear last number of masked insn cycles.
655 (interrupts_info): Report them.
72f4393d
L
656 (interrupts_update_pending): Compute clear and set masks of
657 interrupts and clear the interrupt bits before setting them
11115521
SC
658 (due to SCI interrupt sharing).
659 * interrupts.h (struct interrupts): New members last_mask_cycles
660 and xirq_last_mask_cycles.
661
b93775f5
SC
6622000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
663
664 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
665 instead of a hard-coded value.
666 (m68hc11cpu_io_write_buffer): Likewise.
667 (dv_m68hc11_descriptor): Define a 68hc12 device.
668 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
669 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
670 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
671 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
672
639aa4f7
SC
6732000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
674
675 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
676 (m68hc11cpu_delete): Delete handler to detach the address space.
677
6e73e7ed
SC
6782000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
679
680 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
681 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
682 instead of free and malloc.
683
5f186447
SC
6842000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
685
686 * Makefile.in: Was missing from initial patch.
687
9830501b
SC
6882000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
689
690 * interp.c (sim_store_register): Remove soft register hack.
691 (sim_fetch_register): Likewise.
692 (sim_create_inferior): Likewise.
693 * sim-main.h: Likewise.
694
a8afa79a
SC
6952000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
696
697 * interrupts.c (interrupts_update_pending): Clear the mask of
698 pending interrupts here.
699 (interrupts_get_current): Don't clear the mask of pending interrupts.
700
2990a9f4
SC
7012000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
702
703 * sim-main.h: Define cycle_to_string.
72f4393d 704 * dv-m68hc11tim.c (cycle_to_string): New function to translate
2990a9f4
SC
705 the cpu cycle into some formatted time string.
706 (m68hc11tim_print_timer): Use it.
707 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
708 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
709 * interrupts.c (interrupts_info): Likewise.
710 * m68hc11_sim.c (cpu_info): Likewise.
711
401493c8
SC
7122000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
713
714 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
715 interrupt and compare events accurately. Take into account the
716 pending ticks not processed by the simulator yet (introduced a shift).
717 (m68hc11_port_event): Reset the timer interrupt delays.
718 (m68hc11tim_io_read_buffer): Be able to read several bytes.
719 (m68hc11tim_io_write_buffer): Likewise for write.
720 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
721
4d72d17a
SC
7222000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
723
724 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
725 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
726 (m68hc11spi_info): Clarify the status report
727 of the SPI when a byte is being sent.
728 (m68hc11spi_clock): Fix the spi send frame.
72f4393d 729
63348d04
SC
7302000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
731
732 * sim-main.h (m68hc11_map_level): Define level of address mappings.
733 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
734 whether the eeprom is currently mapped or not.
735 (m68hc11eepr_port_event): Use the flag to see if we must unmap
736 or map the eeprom. Update the flag to reflect the current state.
737 Use M6811_EEPROM_LEVEL when mapping the eeprom.
738 (m68hc11eepr_finish): Remove overlap hack.
739 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
740 config and control registers.
741 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
742 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
743 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
744 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
745 (attach_m68hc11spi_regs): Likewise.
746 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
747 (attach_m68hc11tim_regs): Likewise.
748 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
749 (attach_m68hc11sio_regs): Likewise.
750 * interp.c (sim_open): Likewise.
751 * dv-nvram.c (attach_nvram_regs): Likewise.
752
5d031c16
AC
753Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
754
755 * configure, config.in: Regenerate.
756
e0709f50
AC
7572000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
758
759 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
760 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
761 (dv_m6811_detach_address_callback): New function to detach a
762 device from an address space.
763 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
764 config register according to --cpu-config option.
765 * sim-main.h (_sim_cpu): Add cpu_config member.
766 * interp.c (sim_open): Delete specific simulator options.
767 * m68hc11_sim.c (cpu_option_handler): New options
768 --emulos and -cpu-config <val> to configure the simulator.
769 (cpu_initialize): Initialize cpu_config member.
770
7712000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
772
773 * emulos.c: Fix indentation and comments.
774 * gencode.c: Likewise.
775 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
776 (m68hc11tim_io_write_buffer): Write compare registers and
777 setup compare event.
778 * interp.c: Remove unused global variables.
779 * interrupts.c (idefs): New compare interrupts.
780 Fix indentation and comments.
781 * interrupts.h: Likewise.
782
7832000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
784
785 * dv-m68hc11sio.c: Fix indentation and comments.
786 Remove INT_PORT.
787 * dv-m68hc11.c: Fix indentation and comments.
788 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
789 * m68hc11_sim.c (cpu_reset): To here.
790 * dv-m68hc11eepr.c: Fix indentation and comments.
72f4393d 791
e0709f50
AC
7922000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
793
794 * dv-nvram.c: New file, rename from dv-pram.c.
795 * dv-pram.c: Delete file.
796 * sim-main.h: Incorporate m68hc11_sim.h.
797 * m68hc11_sim.h: Delete file.
798 * configure.in: Rename pram into nvram.
799 * interp.c (sim_open): Likewise in creation of device tree.
72f4393d 800
e0709f50
AC
8012000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
802
803 * interp.c (sim_open): Create the SPI device.
804 * dv-m68hc11spi.c: New file for SPI device simulation.
805 * configure.in (hw_extra_devices): Add SPI device.
806
8072000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
808
809 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
810 (interrupts_process): Separate IRQ and XIRQ accounting.
811 (interrupts_info): Report XIRQ accounting.
812 * interrupts.h (struct interrupts): Added accounting for XIRQ.
813
8142000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
815
816 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
817 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
72f4393d 818 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
e0709f50
AC
819 configuration from the 'mode' device tree property.
820 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
821 configuration.
822
8232000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
824
825 * sim-main.h: Remove WITH_TARGET_* defines.
826 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
827
8282000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
829
830 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
831 1200 baud when cpu is in bootstrap mode.
832
833 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
834 write in the TCTN timer register.
835
836 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
837 by 4 to obtain the E clock frequency.
838 (sccr2_desc): Use M6811_TIE for TIE bit.
839 (m68hc11sio_info): Fix baud rate report.
840
841 * dv-m68hc11tim.c (to_realtime): Likewise.
842
843 * interp.c (sim_open): When building device tree, only provide
844 devices that do not exist yet.
845
846 * emulos.c: Fix compilation pb under Windows.
847
848 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
849 from the 'clock' property.
850
8512000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
852
853 * m68hc11_sim.h (*_REGNUM): Define.
854 (_sim_cpu): New member cpu_page0_reg table.
855 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
856 addresses of soft registers in .page0.
72f4393d 857 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
e0709f50
AC
858 to get/set soft registers.
859
8601999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
861
862 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
863 returning random values.
864
8651999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
866
867 * gencode.c: Fix "subb N,x" that used a instead of b.
868
8691999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
870
871 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
872
8731999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
874
875 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
876
8771999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
878
879 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
880 register region in the m68hc11cpu struct.
881 (m68hc11cpu_io_write): When the IO mapping addres changes,
882 detach the register region and re-attach it at the new address.
883 (m68hc11cpu_io_read_buffer): Renamed base_address into
884 attach_address.
885 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
886 to m68hc11cpu_io_write.
887
8881999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
889
890 * gencode.c: For sbc8, check the carry and increment the source
891 before trying to set the carry for the result.
892
8931999-05-24 John S. Kallal <kallal@voicenet.com>
72f4393d 894
e0709f50
AC
895 * interp.c (sim_get_info): Don't crash if the command line is 0.
896 Define prototype for sim_get_info() and init_system().
897 (sim_info): Correct call to sim_get_info().
72f4393d 898
e0709f50
AC
8991999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
900
901 * configure.in: Recognize m6811-*-*.
902 * configure: Regenerate.
903 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
904 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
905 Correct the computation of carry of 8 and 16-bits add and subtract.
906 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
907 overflow set in a different manner than add).
908
9091999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
910
911 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
912 trace message.
913 * interp.c (sim_open, sim_create_inferior): Initialize the
914 cpu_elf_start from the ELF header.
915 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
916 (cpu_restart): Use cpu_elf_start as the starting address when
917 the flag is set.
918 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
919 exits the simulator (exit status is in D).
920 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
921 cpu_elf_star to start execution at address specified in ELF file.
922
9231999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
924
925 * Makefile.in, config.in, configure, configure.in: New files.
926 * gencode.c: New file, generation of 68HC11 interpreter.
927 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
928 for interpreter.
929 * interrupts.c, interrupts.h: New files, management of interrupts.
72f4393d 930 * interp.c, sim-main.h,
e0709f50
AC
931 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
932 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
933 68HC11 (dv-pram.c is generic and could probably migrate to common).
934 * emulos.c: New file, basic emulation of some os.