]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
sim: m68hc11: localize a few functions
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
b9e016f5
MF
12021-01-30 Mike Frysinger <vapier@gentoo.org>
2
3 * m68hc11_sim.c (cpu_set_sp): Add static markings.
4 (cpu_get_reg, cpu_get_src_reg, cpu_set_dst_reg,
5 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8): Likewise.
6
fb8d4e59
MF
72021-01-30 Mike Frysinger <vapier@gentoo.org>
8
9 * interp.c (sim_get_info, sim_board_reset): Pass %s to sim_hw_parse.
10
ee64caae
MF
112021-01-30 Mike Frysinger <vapier@gentoo.org>
12
13 * dv-m68hc11.c, m68hc11_sim.c: Include stdlib.h.
14
88f68ee2
MF
152021-01-30 Mike Frysinger <vapier@gentoo.org>
16
17 * configure.ac (SIM_AC_OPTION_HARDWARE): Inline variables.
18 * configure: Regenerate.
19
68ed2854
MF
202021-01-11 Mike Frysinger <vapier@gentoo.org>
21
22 * config.in, configure: Regenerate.
23
50df264d
MF
242021-01-09 Mike Frysinger <vapier@gentoo.org>
25
26 * configure: Regenerate.
27
bf470982
MF
282021-01-09 Mike Frysinger <vapier@gentoo.org>
29
30 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
31 * configure: Regenerate.
32
46f900c0
MF
332021-01-08 Mike Frysinger <vapier@gentoo.org>
34
35 * configure: Regenerate.
36
dfb856ba
MF
372021-01-04 Mike Frysinger <vapier@gentoo.org>
38
39 * configure: Regenerate.
40
5c887dd5
JB
412017-09-06 John Baldwin <jhb@FreeBSD.org>
42
43 * configure: Regenerate.
44
13a590ca
MF
452017-02-13 Mike Frysinger <vapier@gentoo.org>
46
47 * gencode.c: Include libiberty.h.
48 (TABLE_SIZE): Delete.
49 (find_opcode_pattern): Change TABLE_SIZE to ARRAY_SIZE.
50 (gen_interpreter): Likewise.
51 * interrupts.c (TableSize): Delete.
52 (interrupts_update_pending): Change TableSize to ARRAY_SIZE.
53
fa0843f5
MF
542016-08-16 Mike Frysinger <vapier@gentoo.org>
55
56 * sim-main.h (inline): Delete define.
57 (phys_to_virt): Change inline to STATIC_INLINE.
58 (memory_read8, memory_write8, memory_read16, memory_write16,
59 cpu_ccr_update_tst16, cpu_ccr_update_shift8, cpu_ccr_update_shift16,
60 cpu_ccr_update_add8, cpu_ccr_update_sub8, cpu_ccr_update_add16,
61 cpu_ccr_update_sub16, cpu_m68hc11_push_uint8, cpu_m68hc11_push_uint16,
62 cpu_m68hc11_pop_uint8, cpu_m68hc11_pop_uint16, cpu_m68hc12_push_uint8,
63 cpu_m68hc12_push_uint16, cpu_m68hc12_pop_uint8,
64 cpu_m68hc12_pop_uint16, cpu_fetch8, cpu_fetch16): Likewise.
65
5357150c
MF
662016-08-15 Mike Frysinger <vapier@gentoo.org>
67
68 * interp.c (sim_get_bank_parameters): Delete abfd arg.
69 Replace all symbol lookup code with calls to trace_sym_value.
70 (sim_prepare_for_program): Update sim_get_bank_parameters call.
71
6f64fd48
MF
722016-08-13 Mike Frysinger <vapier@gentoo.org>
73
74 * dv-m68hc11.c (m68hc11cpu_port_event): Adjust cpu prototype style.
75 * dv-m68hc11spi.c (m68hc11spi_port_event): Likewise.
76 * dv-m68hc11tim.c (m68hc11tim_print_timer): Likewise.
77 * emulos.c (emul_bench): Likewise.
78 (emul_write): Likewise. Also rename state to cpu.
79 (emul_os): Rename proc to cpu.
80 * gencode.c: Rename proc to cpu.
81 * interrupts.c (interrupts_initialize): Likewise.
82 * interrupts.h (interrupts): Adjust cpu type.
83 (interrupts_initialize): Likewise.
84 * m68hc11_sim.c (cpu_get_reg): Adjust cpu prototype style.
85 (cpu_get_src_reg, cpu_set_dst_reg, cpu_set_reg,
86 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8,
87 cpu_get_indexed_operand16, cpu_dbcc, cpu_exg): Likewise.
88 (cpu_ccr_update_tst8): Rename proc to cpu.
89 * sim-main.h: Rename PROC and proc to cpu.
90
527aaa4a
MF
912016-08-13 Mike Frysinger <vapier@gentoo.org>
92
93 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Drop cast with
94 return value of hw_malloc.
95 * dv-m68hc11sio.c (m68hc11sio_rx_poll): Mark static.
96 (m68hc11sio_tx_poll): Likewise.
97 * dv-m68hc11spi.c (m68hc11spi_clock): Likewise.
98 * dv-m68hc11tim.c (m68hc11tim_timer_event): Likewise.
99 * dv-nvram.c (attach_nvram_regs): Drop cast with
100 return value of hw_malloc.
101 * emulos.c (emul_bench): Mark static.
102 (emul_write): Likewise.
103 (emul_exit): Likewise.
104 * gencode.c: Include stdio.h.
105 (gen_function_entry): Unify two print lines.
106 (cmp_opcode): Mark args const.
107
ce39bd38
MF
1082016-01-10 Mike Frysinger <vapier@gentoo.org>
109
110 * config.in, configure: Regenerate.
111
35656e95
MF
1122016-01-10 Mike Frysinger <vapier@gentoo.org>
113
114 * configure: Regenerate.
115
16f7876d
MF
1162016-01-10 Mike Frysinger <vapier@gentoo.org>
117
118 * configure: Regenerate.
119
e19418e0
MF
1202016-01-10 Mike Frysinger <vapier@gentoo.org>
121
122 * configure: Regenerate.
123
99d8e879
MF
1242016-01-10 Mike Frysinger <vapier@gentoo.org>
125
126 * configure: Regenerate.
127
347fe5bb
MF
1282016-01-10 Mike Frysinger <vapier@gentoo.org>
129
130 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
131 * configure: Regenerate.
132
22be3fbe
MF
1332016-01-10 Mike Frysinger <vapier@gentoo.org>
134
135 * configure: Regenerate.
136
0dc73ef7
MF
1372016-01-10 Mike Frysinger <vapier@gentoo.org>
138
139 * configure: Regenerate.
140
936df756
MF
1412016-01-09 Mike Frysinger <vapier@gentoo.org>
142
143 * config.in, configure: Regenerate.
144
2e3d4f4d
MF
1452016-01-06 Mike Frysinger <vapier@gentoo.org>
146
147 * interp.c (sim_open): Mark argv const.
148 (sim_create_inferior): Mark argv and env const.
149
9bbf6f91
MF
1502016-01-04 Mike Frysinger <vapier@gentoo.org>
151
152 * configure: Regenerate.
153
77cf2ef5
MF
1542016-01-03 Mike Frysinger <vapier@gentoo.org>
155
156 * interp.c (sim_open): Update sim_parse_args comment.
157
61971b86
MF
1582016-01-03 Mike Frysinger <vapier@gentoo.org>
159
160 * sim-main.h (sim_state): Delete devices member.
161
0cb8d851
MF
1622016-01-03 Mike Frysinger <vapier@gentoo.org>
163
164 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
165 * configure: Regenerate.
166
1ac72f06
MF
1672016-01-02 Mike Frysinger <vapier@gentoo.org>
168
169 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
170 * configure: Regenerate.
171
8e26d677
MF
1722015-12-30 Mike Frysinger <vapier@gentoo.org>
173
174 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
175 * configure: Regenerate.
176
eca4255a
MF
1772015-12-30 Mike Frysinger <vapier@gentoo.org>
178
179 * imterp.c (sim_open): Delete current_alignment and
180 current_target_byte_order assignments.
181 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
182 * configure: Regenerate.
183
e1211e55
MF
1842015-12-30 Mike Frysinger <vapier@gentoo.org>
185
186 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
187 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
188 (sim_store_register): Rename to ...
189 (m68hc11_reg_store): ... this. Delete local cpu var.
190 (sim_fetch_register): Rename to ...
191 (m68hc11_reg_fetch): ... this. Delete local cpu var.
192
5e744ef8
MF
1932015-12-27 Mike Frysinger <vapier@gentoo.org>
194
195 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
196
1b393626
MF
1972015-12-26 Mike Frysinger <vapier@gentoo.org>
198
199 * config.in, configure: Regenerate.
200
26936211
MF
2012015-12-24 Mike Frysinger <vapier@gentoo.org>
202
203 * sim-main.h (SIM_HANDLES_LMA): Delete.
204
84e8e361
MF
2052015-12-24 Mike Frysinger <vapier@gentoo.org>
206
207 * sim-main.h (WITH_WATCHPOINTS): Delete.
208
cdf850e9
MF
2092015-11-17 Mike Frysinger <vapier@gentoo.org>
210
211 * sim-main.h (WITH_MODULO_MEMORY): Delete.
212
797eee42
MF
2132015-11-15 Mike Frysinger <vapier@gentoo.org>
214
215 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
216
d2dfd242
MF
2172015-11-14 Mike Frysinger <vapier@gentoo.org>
218
219 * Makefile.in (SIM_OBJS): Delete sim-load.o.
220
6e4f085c
MF
2212015-11-14 Mike Frysinger <vapier@gentoo.org>
222
223 * interp.c (sim_close): Delete.
224
8d0978fb
MF
2252015-06-23 Mike Frysinger <vapier@gentoo.org>
226
227 * configure: Regenerate.
228
a3487082
MF
2292015-06-12 Mike Frysinger <vapier@gentoo.org>
230
231 * configure: Regenerate.
232
306f4178
MF
2332015-06-12 Mike Frysinger <vapier@gentoo.org>
234
235 * configure: Regenerate.
236
09896bd2
MF
2372015-06-11 Mike Frysinger <vapier@gentoo.org>
238
239 * interp.c (interrupt_names): Delete.
240
a84f8df0
MF
2412015-06-11 Mike Frysinger <vapier@gentoo.org>
242
243 * Makefile.in (SIM_OBJS): Add sim-resume.o
244 * interp.c (has_stepped, sim_resume): Delete.
245
5d19c366
MF
2462015-06-11 Mike Frysinger <vapier@gentoo.org>
247
248 * interp.c (INLINE): Delete define.
249
0a13382c
NC
2502015-04-29 Nick Clifton <nickc@redhat.com>
251
252 PR 18273
253 * gencode.c (gen_fetch_operands): Remove unreachable code.
254
20bca71d
MF
2552015-04-18 Mike Frysinger <vapier@gentoo.org>
256
257 * sim-main.h (SIM_CPU): Delete.
258
7e83aa92
MF
2592015-04-18 Mike Frysinger <vapier@gentoo.org>
260
261 * sim-main.h (sim_cia): Delete.
262
034685f9
MF
2632015-04-17 Mike Frysinger <vapier@gentoo.org>
264
265 * sim-main.h (CIA_GET, CIA_SET): Delete.
266
78e9aa70
MF
2672015-04-15 Mike Frysinger <vapier@gentoo.org>
268
269 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
270 * sim-main.h (STATE_CPU): Delete.
271
bf12d44e
MF
2722015-04-13 Mike Frysinger <vapier@gentoo.org>
273
274 * configure: Regenerate.
275
bea3f671
MF
2762015-04-13 Mike Frysinger <vapier@gentoo.org>
277
278 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
279 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
280 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
281 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
282 (sim_pc_get): Delete.
283 * sim-main.h (SIM_CPU): Define.
284 (STATE_CPU): Drop &.
285 (struct sim_state): Change cpu to an array of pointers.
286
122bbfb5
MF
2872015-04-06 Mike Frysinger <vapier@gentoo.org>
288
289 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
290
2b6ca062
MF
2912015-03-31 Mike Frysinger <vapier@gentoo.org>
292
293 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
294 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
295 variable to restricted.
296 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
297
05f53ed6
MF
2982015-03-24 Mike Frysinger <vapier@gentoo.org>
299
300 * interp.c (sim_pc_get): New function.
301
523ba8f9
MF
3022015-03-24 Mike Frysinger <vapier@gentoo.org>
303
304 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
305 sim_size, sim_trace): Delete.
306 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
307
30452bbe
MF
3082015-03-24 Mike Frysinger <vapier@gentoo.org>
309
310 * configure: Regenerate.
311
64dd13df
MF
3122015-03-23 Mike Frysinger <vapier@gentoo.org>
313
314 * configure: Regenerate.
315
49cd1634
MF
3162015-03-23 Mike Frysinger <vapier@gentoo.org>
317
318 * configure: Regenerate.
319 * configure.ac (m68hc11_extra_objs): Delete.
320 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
321 (SIM_EXTRA_OBJS): Delete.
322
ae7d0cac
MF
3232015-03-16 Mike Frysinger <vapier@gentoo.org>
324
325 * config.in, configure: Regenerate.
326
465fb143
MF
3272015-03-14 Mike Frysinger <vapier@gentoo.org>
328
329 * Makefile.in (SIM_RUN_OBJS): Delete.
330
5cddc23a
MF
3312015-03-14 Mike Frysinger <vapier@gentoo.org>
332
333 * configure.ac (AC_CHECK_HEADERS): Delete.
334 * aclocal.m4, configure: Regenerate.
335
2974be62
AM
3362014-08-19 Alan Modra <amodra@gmail.com>
337
338 * configure: Regenerate.
339
faa743bb
RM
3402014-08-15 Roland McGrath <mcgrathr@google.com>
341
342 * configure: Regenerate.
343 * config.in: Regenerate.
344
1a8a700e
MF
3452014-03-04 Mike Frysinger <vapier@gentoo.org>
346
347 * configure: Regenerate.
348
bf3d9781
AM
3492013-09-23 Alan Modra <amodra@gmail.com>
350
351 * configure: Regenerate.
352
31e6ad7d
MF
3532013-06-03 Mike Frysinger <vapier@gentoo.org>
354
355 * aclocal.m4, configure: Regenerate.
356
d3685d60
TT
3572013-05-10 Freddie Chopin <freddie_chopin@op.pl>
358
359 * configure: Rebuild.
360
1517bd27
MF
3612013-03-26 Mike Frysinger <vapier@gentoo.org>
362
363 * configure: Regenerate.
364
256139f5
JS
3652013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
366
367 * configure.ac: Use $SIM_DV_SOCKSER_O.
368 * configure: Regenerated.
369
5f3ef9d0
JB
3702012-06-15 Joel Brobecker <brobecker@adacore.com>
371
372 * config.in, configure: Regenerate.
373
2232061b
MF
3742012-03-24 Mike Frysinger <vapier@gentoo.org>
375
376 * aclocal.m4, config.in, configure: Regenerate.
377
db2e4d67
MF
3782011-12-03 Mike Frysinger <vapier@gentoo.org>
379
380 * aclocal.m4: New file.
381 * configure: Regenerate.
382
4399a56b
MF
3832011-10-19 Mike Frysinger <vapier@gentoo.org>
384
385 * configure: Regenerate after common/acinclude.m4 update.
386
9c082ca8
MF
3872011-10-17 Mike Frysinger <vapier@gentoo.org>
388
389 * configure.ac: Change include to common/acinclude.m4.
390
6ffe910a
MF
3912011-10-17 Mike Frysinger <vapier@gentoo.org>
392
393 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
394 call. Replace common.m4 include with SIM_AC_COMMON.
395 * configure: Regenerate.
396
2419798b
MF
3972011-07-05 Mike Frysinger <vapier@gentoo.org>
398
399 * interp.c (sim_do_command): Delete.
400
3725885a
RW
4012010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
402
403 * configure: Regenerate.
404
d6416cdc
RW
4052009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
406
81ecdfbb
RW
407 * config.in: Regenerate.
408 * configure: Likewise.
409
d6416cdc
RW
410 * configure: Regenerate.
411
b5bd9624
HPN
4122008-07-11 Hans-Peter Nilsson <hp@axis.com>
413
414 * configure: Regenerate to track ../common/common.m4 changes.
415 * config.in: Ditto.
416
6efef468 4172008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
418 Daniel Jacobowitz <dan@codesourcery.com>
419 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
420
421 * configure: Regenerate.
422
b1bfc053
HPN
4232006-12-21 Hans-Peter Nilsson <hp@axis.com>
424
425 * config.in: Regenerate.
426
e85e3205
RE
4272006-06-13 Richard Earnshaw <rearnsha@arm.com>
428
429 * configure: Regenerated.
430
2f0122dc
DJ
4312006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
432
433 * configure: Regenerated.
434
20e95c23
DJ
4352006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
436
437 * configure: Regenerated.
438
b3a3ffef
HPN
4392006-03-29 Hans-Peter Nilsson <hp@axis.com>
440
441 * configure: Regenerate.
442
2b193c4a
MK
4432005-03-23 Mark Kettenis <kettenis@gnu.org>
444
445 * configure: Regenerate.
446
35695fd6
AC
4472005-01-14 Andrew Cagney <cagney@gnu.org>
448
449 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
450 explicit call to AC_CONFIG_HEADER.
451 * configure: Regenerate.
452
38f48d72
AC
4532005-01-11 Andrew Cagney <cagney@localhost.localdomain>
454
455 * configure: Regenerated to track ../common/aclocal.m4 changes.
456
b7026657
AC
4572005-01-07 Andrew Cagney <cagney@gnu.org>
458
459 * configure.ac: Rename configure.in, require autoconf 2.59.
460 * configure: Re-generate.
461
379832de
HPN
4622004-12-08 Hans-Peter Nilsson <hp@axis.com>
463
464 * configure: Regenerate for ../common/aclocal.m4 update.
465
84b11e2e
AM
4662004-06-15 Alan Modra <amodra@bigpond.net.au>
467
468 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
469 instead of bfd_get_section_size_before_reloc.
470
a685700c
SC
4712003-08-08 Stephane Carrez <stcarrez@nerim.fr>
472
473 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
474 control the translation.
475 (m68hc11tim_print_timer): Update cycle_to_string conversion.
476 (m68hc11tim_timer_event): Fix handling of output
477 compare register with its interrupts.
478 (m68hc11tim_io_write_buffer): Check output compare
479 after setting M6811_TMSK1.
480 (m68hc11tim_io_read_buffer): Fix compilation warning.
481 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
482 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
483 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
484 * interrupts.c (interrupts_info): Likewise.
485 (interrupts_reset): Recognize bootstrap mode.
486 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
487 (_sim_cpu): Add cpu_start_mode.
488 (cycle_to_string): Add flags member.
489 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
490 (cpu_options): Declare new option bootstrap.
491 (cpu_option_handler): Handle it.
492 (cpu_info): Update call to cycle_to_string.
493
77342e5e
SC
4942003-08-08 Stephane Carrez <stcarrez@nerim.fr>
495
496 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
497 the physical address in virtual address.
498 (struct _sim_cpu): Add memory bank members.
499 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
500 * interp.c (sim_hw_configure): Create memory bank according to memory
501 bank parameters.
502 (sim_get_bank_parameters): New function to obtain memory bank config
503 from the symbol table.
504 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
505 (sim_open): Call sim_prepare_for_program.
506 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
507 to check if address is within bank window.
508 (m68hc11cpu_io_read_buffer): Likewise.
509 (attach_m68hc11_regs): Map the memory bank according to memory bank
510 parameters.
511
53b3cd22
SC
5122003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
513
514 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
515
962e9d85
SC
5162003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
517 Gary Piercey <gpiercey@northstar-technical.com>
518
519 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
520 * sim-main.h (print_io_word): Declare.
521 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
522 (tflg1_desc): Likewise for TFLG1.
523 (m68hc11tim_info): Print input and output compare registers
524
9b9f7b3c
SC
5252003-03-02 Stephane Carrez <stcarrez@nerim.fr>
526
527 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
528 to 32 to support memory bank switching; temporarily use 32-bit for
529 WORD_BITSIZE to avoid a bug in sim-common.
530
00416c6e
SC
5312003-03-01 Stephane Carrez <stcarrez@nerim.fr>
532
533 * interp.c (sim_fetch_register): Only store a single byte for
534 1 byte registers.
535
6b4a8935
AC
5362003-02-27 Andrew Cagney <cagney@redhat.com>
537
538 * interp.c (sim_prepare_for_program, sim_open)
539 (sim_create_inferior): Rename _bfd to bfd.
540
099d1b50
SC
5412002-08-13 Stephane Carrez <stcarrez@nerim.fr>
542
543 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
544
31c7c532
SC
5452002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
546
72f4393d 547 * interp.c (sim_prepare_for_program): Look up the image for the
31c7c532
SC
548 reset vector and set cpu_use_elf_start to 1 if not found.
549 (sim_open): Do not set cpu_use_elf_start.
550
39762100
SC
5512002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
552
553 * interp.c (sim_hw_configure): Return 1 for success.
554 (sim_prepare_for_program): Use the sim_hw_configure exit code to
555 return SIM_RC_FAIL.
556
7230d809
SC
5572002-08-13 Stephane Carrez <stcarrez@nerim.fr>
558
559 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
560 bank window to some virtual address to read from extended memory.
561 (m68hc11cpu_io_write_buffer): Likewise for writing.
ca156d78 562 (attach_m68hc11_regs): When use_bank property is defined, attach
7230d809 563 to the 68HC12 16K memory bank window.
7230d809
SC
564 * interp.c (sim_hw_configure): Create memory region for banked
565 memory.
566
dcceded2
SC
5672002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
568
569 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
570 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
571 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
572
abea9e28
SC
5732002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
574
575 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
576 when IO mapping changed, not when internal RAM mapping is changed.
577
63f36def
SC
5782002-08-13 Stephane Carrez <stcarrez@nerim.fr>
579
580 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
581 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
582 (m6811_regs): Add page register.
583 (cpu_set_page, cpu_get_page): New macros.
584 (phys_to_virt): New function.
585 (cpu_get_indexed_operand_addr, cpu_return): Declare.
586 * gencode.c: Identify indirect addressing mode for call and fix daa.
72f4393d 587 (gen_function_entry): New param to tell if src8/dst8 locals are
63f36def
SC
588 necessary.
589 (gen_interpreter): Use it to avoid generation of unused variables.
590 * interp.c (sim_fetch_register): Allow to read page register; page
591 register, A, B and CCR are only 1 byte wide.
592 (sim_store_register): Likewise for writing.
593
c8cca39f
AC
5942002-06-16 Andrew Cagney <ac131313@redhat.com>
595
596 * configure: Regenerated to track ../common/aclocal.m4 changes.
597
3c25f8c7
AC
5982002-06-09 Andrew Cagney <cagney@redhat.com>
599
600 * Makefile.in (INCLUDE): Update path to callback.h.
601 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
602
86596dc8
SC
6032002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
604
605 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
606 (cpu_move16): Likewise.
607 (sim_memory_error): Use sim_io_printf.
608 (cpu_option_handler): Fix compilation warning.
72f4393d 609 * interp.c (sim_hw_configure): Fix compilation warning;
86596dc8
SC
610 remove m68hc12sio@2 device.
611 (sim_open): Likewise.
72f4393d 612 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
86596dc8
SC
613 flags when reset.
614 (cycle_to_string): Improve convertion of cpu cycle number.
615 (m68hc11tim_info): Print info about PACNT.
616 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
617 TCTL1 and TCTL2 registers.
618 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
619
827ec39a
SC
6202002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
621
72f4393d 622 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
827ec39a
SC
623 cpu struct.
624 (sim_hw_configure): Connect the capture input/output events.
625 * sim-main.h (_sim_cpu): New member hw_cpu.
626 (m68hc11cpu_set_oscillator): Declare.
627 (m68hc11cpu_clear_oscillator): Declare.
628 (m68hc11cpu_set_port): Declare.
629 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
630 (m68hc11cpu_ports): New input ports and output ports to reflect
631 the HC11 IOs.
632 (m68hc11_delete): Cleanup any running oscillator.
633 (attach_m68hc11_regs): Create the input oscillators.
634 (make_oscillator): New function.
635 (find_oscillator): New function.
636 (oscillator_handler): New function.
637 (reset_oscillators): New function.
638 (m68hc11cpu_port_event): Handle the new input ports.
639 (m68hc11cpu_set_oscillator): New function.
640 (m68hc11cpu_clear_oscillator): New function.
641 (get_frequency): New function.
642 (m68hc11_option_handler): New function.
643 (m68hc11cpu_set_port): New function.
644 (m68hc11cpu_io_write): Post the port output events.
645 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
646 the output port value.
647 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
648 by latching the TCNT value in the register.
649
5abb9efa
SC
6502002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
651
652 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
653 (cpu_frame_reg, cpu_print_frame): Remove.
654 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
655 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
656 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
657 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
658 * m68hc11_sim.c (cpu_find_frame): Remove.
659 (cpu_create_frame_list): Remove.
660 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
661 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
662 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
663 (cpu_update_frame): Likewise.
664 (cpu_return): Likewise.
665 (cpu_reset): Likewise.
72f4393d 666 (cpu_initialize): Likewise.
5abb9efa
SC
667 * interp.c (sim_do_command): Remove call to cpu_print_frame.
668
26128965
SC
6692002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
670
671 * interrupts.c (interrupts_reset): New function, setup interrupt
672 vector address according to cpu mode.
673 (interrupts_initialize): Move reset portion to the above.
674 (interrupt_names): New table to give a name to interrupts.
675 (idefs): Handle pulse accumulator interrupts.
676 (interrupts_info): Print the interrupt history.
677 (interrupt_option_handler): New function.
678 (interrupt_options): New table of options.
679 (interrupts_update_pending): Keep track of when interrupts are
680 raised and implement breakpoint-on-raise-interrupt.
681 (interrupts_process): Keep track of when interrupts are taken
682 and implement breakpoint-on-interrupt.
683 * interrupts.h (struct interrupt_history): Define.
684 (struct interrupt): Keep track of the interrupt history.
685 (interrupts_reset): Declare.
686 (interrupts_initialize): Update prototype.
687 * m68hc11_sim.c (cpu_reset): Reset interrupts.
688 (cpu_initialize): Cleanup.
689
eefde351
SC
6902001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
691
692 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
693 address.
694 (m68hc11eepr_port_event): Fix detach/attach logic.
695
00d0c012
SC
6962001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
697
698 * Makefile.in (SIM_OBJS): Remove sim-resume.o
699 * interp.c (sim_resume): New function from sim-resume.c, install
700 the stepping event after having processed the pending ticks.
701 (has_stepped): Likewise.
702 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
703
b51c7603
AC
7042001-07-10 Andrew Cagney <ac131313@redhat.com>
705
706 * Makefile.in (gencode): Provide explicit path to gencode.c.
707
81e09ed8
SC
7082001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
709
710 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
711 (m68hc12int.c): Generate using gencode -m6812.
712 (m68hc11int.c): Likewise with -m6811.
713
714 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
715 (m6811_page1_opcodes): Remove duplicate entries.
716 (m6811_page2_opcodes): Likewise.
717 (m6811_page3_opcodes): Likewise.
718 (m6811_page4_opcodes): Likewise.
719 (m6812_page1_opcodes): New table for 68HC12 instructions.
720 (m6812_page2_opcodes): Likewise.
721 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
722 (gen_save_result): Likewise.
723 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
724 (cmp_opcode): New function for opcode comparision.
725 (prepare_table): Sort the opcodes.
726 (gen_interpreter): Prepare all the tables and generate either
727 a 68HC11 or a 68HC12 simulator.
728 (main): New options -m6811 and -m6812.
729
730 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
731 (cpu_special): Simulation of some 68HC12 instructions.
732 (cpu_exg): New function.
733 (cpu_dbcc): Likewise.
734 (cpu_fetch_relbranch16): Likewise.
735 (cpu_push_all): Push according to 68HC11 or 68HC12.
736 (cpu_move16): Likewise.
737 (cpu_move8): Likewise.
738 (cpu_get_indexed_operand16): Likewise.
739 (cpu_get_indexed_operand8): Likewise.
740 (cpu_get_indexed_operand_addr): Likewise.
741 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
742 (cpu_reset): Setup INIT register according to architecture.
72f4393d 743
81e09ed8
SC
744 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
745 (_sim_cpu): Keep track of the cpu being simulated.
746 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
747 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
748 (cpu_m68hc11_pop_uint8): Likewise.
749 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
750 (cpu_m68hc12_pop_uintxx): Likewise.
751 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
752 (cpu_fetch_relbranch16): Likewise.
753 (cpu_interp_m6811): Rename of cpu_interp.
72f4393d 754 (cpu_interp_m6812): New function.
81e09ed8
SC
755 * interp.c (free_state): New function.
756 (dev_list_68hc12): New table.
757 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
758 (sim_hw_configure): New function.
759 (sim_prepare_for_program): New function.
760 (sim_open): Use above new functions.
761 (sim_close): Call free_state().
762 (sim_info): Print info according to cpu.
763 (sim_create_inferior): Use sim_prepare_for_program.
764 (sim_do_command): Configure the hardware after a change of the
765 architecture.
766
11115521
SC
7672001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
768
769 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
770 pending interrupts.
771 * interrupts.c (interrupts_process): Keep track of the last number
772 of masked insn cycles.
773 (interrupts_initialize): Clear last number of masked insn cycles.
774 (interrupts_info): Report them.
72f4393d
L
775 (interrupts_update_pending): Compute clear and set masks of
776 interrupts and clear the interrupt bits before setting them
11115521
SC
777 (due to SCI interrupt sharing).
778 * interrupts.h (struct interrupts): New members last_mask_cycles
779 and xirq_last_mask_cycles.
780
b93775f5
SC
7812000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
782
783 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
784 instead of a hard-coded value.
785 (m68hc11cpu_io_write_buffer): Likewise.
786 (dv_m68hc11_descriptor): Define a 68hc12 device.
787 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
788 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
789 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
790 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
791
639aa4f7
SC
7922000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
793
794 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
795 (m68hc11cpu_delete): Delete handler to detach the address space.
796
6e73e7ed
SC
7972000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
798
799 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
800 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
801 instead of free and malloc.
802
5f186447
SC
8032000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
804
805 * Makefile.in: Was missing from initial patch.
806
9830501b
SC
8072000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
808
809 * interp.c (sim_store_register): Remove soft register hack.
810 (sim_fetch_register): Likewise.
811 (sim_create_inferior): Likewise.
812 * sim-main.h: Likewise.
813
a8afa79a
SC
8142000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
815
816 * interrupts.c (interrupts_update_pending): Clear the mask of
817 pending interrupts here.
818 (interrupts_get_current): Don't clear the mask of pending interrupts.
819
2990a9f4
SC
8202000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
821
822 * sim-main.h: Define cycle_to_string.
72f4393d 823 * dv-m68hc11tim.c (cycle_to_string): New function to translate
2990a9f4
SC
824 the cpu cycle into some formatted time string.
825 (m68hc11tim_print_timer): Use it.
826 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
827 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
828 * interrupts.c (interrupts_info): Likewise.
829 * m68hc11_sim.c (cpu_info): Likewise.
830
401493c8
SC
8312000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
832
833 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
834 interrupt and compare events accurately. Take into account the
835 pending ticks not processed by the simulator yet (introduced a shift).
836 (m68hc11_port_event): Reset the timer interrupt delays.
837 (m68hc11tim_io_read_buffer): Be able to read several bytes.
838 (m68hc11tim_io_write_buffer): Likewise for write.
839 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
840
4d72d17a
SC
8412000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
842
843 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
844 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
845 (m68hc11spi_info): Clarify the status report
846 of the SPI when a byte is being sent.
847 (m68hc11spi_clock): Fix the spi send frame.
72f4393d 848
63348d04
SC
8492000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
850
851 * sim-main.h (m68hc11_map_level): Define level of address mappings.
852 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
853 whether the eeprom is currently mapped or not.
854 (m68hc11eepr_port_event): Use the flag to see if we must unmap
855 or map the eeprom. Update the flag to reflect the current state.
856 Use M6811_EEPROM_LEVEL when mapping the eeprom.
857 (m68hc11eepr_finish): Remove overlap hack.
858 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
859 config and control registers.
860 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
861 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
862 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
863 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
864 (attach_m68hc11spi_regs): Likewise.
865 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
866 (attach_m68hc11tim_regs): Likewise.
867 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
868 (attach_m68hc11sio_regs): Likewise.
869 * interp.c (sim_open): Likewise.
870 * dv-nvram.c (attach_nvram_regs): Likewise.
871
5d031c16
AC
872Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
873
874 * configure, config.in: Regenerate.
875
e0709f50
AC
8762000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
877
878 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
879 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
880 (dv_m6811_detach_address_callback): New function to detach a
881 device from an address space.
882 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
883 config register according to --cpu-config option.
884 * sim-main.h (_sim_cpu): Add cpu_config member.
885 * interp.c (sim_open): Delete specific simulator options.
886 * m68hc11_sim.c (cpu_option_handler): New options
887 --emulos and -cpu-config <val> to configure the simulator.
888 (cpu_initialize): Initialize cpu_config member.
889
8902000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
891
892 * emulos.c: Fix indentation and comments.
893 * gencode.c: Likewise.
894 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
895 (m68hc11tim_io_write_buffer): Write compare registers and
896 setup compare event.
897 * interp.c: Remove unused global variables.
898 * interrupts.c (idefs): New compare interrupts.
899 Fix indentation and comments.
900 * interrupts.h: Likewise.
901
9022000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
903
904 * dv-m68hc11sio.c: Fix indentation and comments.
905 Remove INT_PORT.
906 * dv-m68hc11.c: Fix indentation and comments.
907 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
908 * m68hc11_sim.c (cpu_reset): To here.
909 * dv-m68hc11eepr.c: Fix indentation and comments.
72f4393d 910
e0709f50
AC
9112000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
912
913 * dv-nvram.c: New file, rename from dv-pram.c.
914 * dv-pram.c: Delete file.
915 * sim-main.h: Incorporate m68hc11_sim.h.
916 * m68hc11_sim.h: Delete file.
917 * configure.in: Rename pram into nvram.
918 * interp.c (sim_open): Likewise in creation of device tree.
72f4393d 919
e0709f50
AC
9202000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
921
922 * interp.c (sim_open): Create the SPI device.
923 * dv-m68hc11spi.c: New file for SPI device simulation.
924 * configure.in (hw_extra_devices): Add SPI device.
925
9262000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
927
928 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
929 (interrupts_process): Separate IRQ and XIRQ accounting.
930 (interrupts_info): Report XIRQ accounting.
931 * interrupts.h (struct interrupts): Added accounting for XIRQ.
932
9332000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
934
935 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
936 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
72f4393d 937 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
e0709f50
AC
938 configuration from the 'mode' device tree property.
939 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
940 configuration.
941
9422000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
943
944 * sim-main.h: Remove WITH_TARGET_* defines.
945 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
946
9472000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
948
949 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
950 1200 baud when cpu is in bootstrap mode.
951
952 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
953 write in the TCTN timer register.
954
955 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
956 by 4 to obtain the E clock frequency.
957 (sccr2_desc): Use M6811_TIE for TIE bit.
958 (m68hc11sio_info): Fix baud rate report.
959
960 * dv-m68hc11tim.c (to_realtime): Likewise.
961
962 * interp.c (sim_open): When building device tree, only provide
963 devices that do not exist yet.
964
965 * emulos.c: Fix compilation pb under Windows.
966
967 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
968 from the 'clock' property.
969
9702000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
971
972 * m68hc11_sim.h (*_REGNUM): Define.
973 (_sim_cpu): New member cpu_page0_reg table.
974 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
975 addresses of soft registers in .page0.
72f4393d 976 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
e0709f50
AC
977 to get/set soft registers.
978
9791999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
980
981 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
982 returning random values.
983
9841999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
985
986 * gencode.c: Fix "subb N,x" that used a instead of b.
987
9881999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
989
990 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
991
9921999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
993
994 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
995
9961999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
997
998 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
999 register region in the m68hc11cpu struct.
1000 (m68hc11cpu_io_write): When the IO mapping addres changes,
1001 detach the register region and re-attach it at the new address.
1002 (m68hc11cpu_io_read_buffer): Renamed base_address into
1003 attach_address.
1004 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
1005 to m68hc11cpu_io_write.
1006
10071999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
1008
1009 * gencode.c: For sbc8, check the carry and increment the source
1010 before trying to set the carry for the result.
1011
10121999-05-24 John S. Kallal <kallal@voicenet.com>
72f4393d 1013
e0709f50
AC
1014 * interp.c (sim_get_info): Don't crash if the command line is 0.
1015 Define prototype for sim_get_info() and init_system().
1016 (sim_info): Correct call to sim_get_info().
72f4393d 1017
e0709f50
AC
10181999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
1019
1020 * configure.in: Recognize m6811-*-*.
1021 * configure: Regenerate.
1022 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
1023 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
1024 Correct the computation of carry of 8 and 16-bits add and subtract.
1025 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
1026 overflow set in a different manner than add).
1027
10281999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
1029
1030 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
1031 trace message.
1032 * interp.c (sim_open, sim_create_inferior): Initialize the
1033 cpu_elf_start from the ELF header.
1034 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
1035 (cpu_restart): Use cpu_elf_start as the starting address when
1036 the flag is set.
1037 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
1038 exits the simulator (exit status is in D).
1039 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
1040 cpu_elf_star to start execution at address specified in ELF file.
1041
10421999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
1043
1044 * Makefile.in, config.in, configure, configure.in: New files.
1045 * gencode.c: New file, generation of 68HC11 interpreter.
1046 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
1047 for interpreter.
1048 * interrupts.c, interrupts.h: New files, management of interrupts.
72f4393d 1049 * interp.c, sim-main.h,
e0709f50
AC
1050 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
1051 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
1052 68HC11 (dv-pram.c is generic and could probably migrate to common).
1053 * emulos.c: New file, basic emulation of some os.