]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
Power10 bignum operands
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
c2783492
MF
12021-04-02 Mike Frysinger <vapier@gentoo.org>
2
3 * aclocal.m4, configure: Regenerate.
4
c6c7769d
MF
52021-03-13 Mike Frysinger <vapier@gentoo.org>
6
7 * Makefile.in (gencode.o): New rule.
8 (gencode): Call LINK_FOR_BUILD.
9
ebe9564b
MF
102021-02-28 Mike Frysinger <vapier@gentoo.org>
11
12 * configure: Regenerate.
13
760b3e8b
MF
142021-02-21 Mike Frysinger <vapier@gentoo.org>
15
16 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
17 * aclocal.m4, configure: Regenerate.
18
136da8cd
MF
192021-02-13 Mike Frysinger <vapier@gentoo.org>
20
21 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
22 * aclocal.m4, configure: Regenerate.
23
aa09469f
MF
242021-02-06 Mike Frysinger <vapier@gentoo.org>
25
26 * configure: Regenerate.
27
683b8d96
MF
282021-01-30 Mike Frysinger <vapier@gentoo.org>
29
30 * dv-m68hc11tim.c (cycle_to_string): Change llu to PRIi64.
31
b9e016f5
MF
322021-01-30 Mike Frysinger <vapier@gentoo.org>
33
34 * m68hc11_sim.c (cpu_set_sp): Add static markings.
35 (cpu_get_reg, cpu_get_src_reg, cpu_set_dst_reg,
36 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8): Likewise.
37
fb8d4e59
MF
382021-01-30 Mike Frysinger <vapier@gentoo.org>
39
40 * interp.c (sim_get_info, sim_board_reset): Pass %s to sim_hw_parse.
41
ee64caae
MF
422021-01-30 Mike Frysinger <vapier@gentoo.org>
43
44 * dv-m68hc11.c, m68hc11_sim.c: Include stdlib.h.
45
88f68ee2
MF
462021-01-30 Mike Frysinger <vapier@gentoo.org>
47
48 * configure.ac (SIM_AC_OPTION_HARDWARE): Inline variables.
49 * configure: Regenerate.
50
68ed2854
MF
512021-01-11 Mike Frysinger <vapier@gentoo.org>
52
53 * config.in, configure: Regenerate.
54
50df264d
MF
552021-01-09 Mike Frysinger <vapier@gentoo.org>
56
57 * configure: Regenerate.
58
bf470982
MF
592021-01-09 Mike Frysinger <vapier@gentoo.org>
60
61 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
62 * configure: Regenerate.
63
46f900c0
MF
642021-01-08 Mike Frysinger <vapier@gentoo.org>
65
66 * configure: Regenerate.
67
dfb856ba
MF
682021-01-04 Mike Frysinger <vapier@gentoo.org>
69
70 * configure: Regenerate.
71
5c887dd5
JB
722017-09-06 John Baldwin <jhb@FreeBSD.org>
73
74 * configure: Regenerate.
75
13a590ca
MF
762017-02-13 Mike Frysinger <vapier@gentoo.org>
77
78 * gencode.c: Include libiberty.h.
79 (TABLE_SIZE): Delete.
80 (find_opcode_pattern): Change TABLE_SIZE to ARRAY_SIZE.
81 (gen_interpreter): Likewise.
82 * interrupts.c (TableSize): Delete.
83 (interrupts_update_pending): Change TableSize to ARRAY_SIZE.
84
fa0843f5
MF
852016-08-16 Mike Frysinger <vapier@gentoo.org>
86
87 * sim-main.h (inline): Delete define.
88 (phys_to_virt): Change inline to STATIC_INLINE.
89 (memory_read8, memory_write8, memory_read16, memory_write16,
90 cpu_ccr_update_tst16, cpu_ccr_update_shift8, cpu_ccr_update_shift16,
91 cpu_ccr_update_add8, cpu_ccr_update_sub8, cpu_ccr_update_add16,
92 cpu_ccr_update_sub16, cpu_m68hc11_push_uint8, cpu_m68hc11_push_uint16,
93 cpu_m68hc11_pop_uint8, cpu_m68hc11_pop_uint16, cpu_m68hc12_push_uint8,
94 cpu_m68hc12_push_uint16, cpu_m68hc12_pop_uint8,
95 cpu_m68hc12_pop_uint16, cpu_fetch8, cpu_fetch16): Likewise.
96
5357150c
MF
972016-08-15 Mike Frysinger <vapier@gentoo.org>
98
99 * interp.c (sim_get_bank_parameters): Delete abfd arg.
100 Replace all symbol lookup code with calls to trace_sym_value.
101 (sim_prepare_for_program): Update sim_get_bank_parameters call.
102
6f64fd48
MF
1032016-08-13 Mike Frysinger <vapier@gentoo.org>
104
105 * dv-m68hc11.c (m68hc11cpu_port_event): Adjust cpu prototype style.
106 * dv-m68hc11spi.c (m68hc11spi_port_event): Likewise.
107 * dv-m68hc11tim.c (m68hc11tim_print_timer): Likewise.
108 * emulos.c (emul_bench): Likewise.
109 (emul_write): Likewise. Also rename state to cpu.
110 (emul_os): Rename proc to cpu.
111 * gencode.c: Rename proc to cpu.
112 * interrupts.c (interrupts_initialize): Likewise.
113 * interrupts.h (interrupts): Adjust cpu type.
114 (interrupts_initialize): Likewise.
115 * m68hc11_sim.c (cpu_get_reg): Adjust cpu prototype style.
116 (cpu_get_src_reg, cpu_set_dst_reg, cpu_set_reg,
117 cpu_get_indexed_operand_addr, cpu_get_indexed_operand8,
118 cpu_get_indexed_operand16, cpu_dbcc, cpu_exg): Likewise.
119 (cpu_ccr_update_tst8): Rename proc to cpu.
120 * sim-main.h: Rename PROC and proc to cpu.
121
527aaa4a
MF
1222016-08-13 Mike Frysinger <vapier@gentoo.org>
123
124 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Drop cast with
125 return value of hw_malloc.
126 * dv-m68hc11sio.c (m68hc11sio_rx_poll): Mark static.
127 (m68hc11sio_tx_poll): Likewise.
128 * dv-m68hc11spi.c (m68hc11spi_clock): Likewise.
129 * dv-m68hc11tim.c (m68hc11tim_timer_event): Likewise.
130 * dv-nvram.c (attach_nvram_regs): Drop cast with
131 return value of hw_malloc.
132 * emulos.c (emul_bench): Mark static.
133 (emul_write): Likewise.
134 (emul_exit): Likewise.
135 * gencode.c: Include stdio.h.
136 (gen_function_entry): Unify two print lines.
137 (cmp_opcode): Mark args const.
138
ce39bd38
MF
1392016-01-10 Mike Frysinger <vapier@gentoo.org>
140
141 * config.in, configure: Regenerate.
142
35656e95
MF
1432016-01-10 Mike Frysinger <vapier@gentoo.org>
144
145 * configure: Regenerate.
146
16f7876d
MF
1472016-01-10 Mike Frysinger <vapier@gentoo.org>
148
149 * configure: Regenerate.
150
e19418e0
MF
1512016-01-10 Mike Frysinger <vapier@gentoo.org>
152
153 * configure: Regenerate.
154
99d8e879
MF
1552016-01-10 Mike Frysinger <vapier@gentoo.org>
156
157 * configure: Regenerate.
158
347fe5bb
MF
1592016-01-10 Mike Frysinger <vapier@gentoo.org>
160
161 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
162 * configure: Regenerate.
163
22be3fbe
MF
1642016-01-10 Mike Frysinger <vapier@gentoo.org>
165
166 * configure: Regenerate.
167
0dc73ef7
MF
1682016-01-10 Mike Frysinger <vapier@gentoo.org>
169
170 * configure: Regenerate.
171
936df756
MF
1722016-01-09 Mike Frysinger <vapier@gentoo.org>
173
174 * config.in, configure: Regenerate.
175
2e3d4f4d
MF
1762016-01-06 Mike Frysinger <vapier@gentoo.org>
177
178 * interp.c (sim_open): Mark argv const.
179 (sim_create_inferior): Mark argv and env const.
180
9bbf6f91
MF
1812016-01-04 Mike Frysinger <vapier@gentoo.org>
182
183 * configure: Regenerate.
184
77cf2ef5
MF
1852016-01-03 Mike Frysinger <vapier@gentoo.org>
186
187 * interp.c (sim_open): Update sim_parse_args comment.
188
61971b86
MF
1892016-01-03 Mike Frysinger <vapier@gentoo.org>
190
191 * sim-main.h (sim_state): Delete devices member.
192
0cb8d851
MF
1932016-01-03 Mike Frysinger <vapier@gentoo.org>
194
195 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
196 * configure: Regenerate.
197
1ac72f06
MF
1982016-01-02 Mike Frysinger <vapier@gentoo.org>
199
200 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
201 * configure: Regenerate.
202
8e26d677
MF
2032015-12-30 Mike Frysinger <vapier@gentoo.org>
204
205 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
206 * configure: Regenerate.
207
eca4255a
MF
2082015-12-30 Mike Frysinger <vapier@gentoo.org>
209
210 * imterp.c (sim_open): Delete current_alignment and
211 current_target_byte_order assignments.
212 * configure.ac: Call SIM_AC_OPTION_ENDIAN.
213 * configure: Regenerate.
214
e1211e55
MF
2152015-12-30 Mike Frysinger <vapier@gentoo.org>
216
217 * wrapper.c (m68hc11_reg_store, m68hc11_reg_fetch): Define.
218 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
219 (sim_store_register): Rename to ...
220 (m68hc11_reg_store): ... this. Delete local cpu var.
221 (sim_fetch_register): Rename to ...
222 (m68hc11_reg_fetch): ... this. Delete local cpu var.
223
5e744ef8
MF
2242015-12-27 Mike Frysinger <vapier@gentoo.org>
225
226 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
227
1b393626
MF
2282015-12-26 Mike Frysinger <vapier@gentoo.org>
229
230 * config.in, configure: Regenerate.
231
26936211
MF
2322015-12-24 Mike Frysinger <vapier@gentoo.org>
233
234 * sim-main.h (SIM_HANDLES_LMA): Delete.
235
84e8e361
MF
2362015-12-24 Mike Frysinger <vapier@gentoo.org>
237
238 * sim-main.h (WITH_WATCHPOINTS): Delete.
239
cdf850e9
MF
2402015-11-17 Mike Frysinger <vapier@gentoo.org>
241
242 * sim-main.h (WITH_MODULO_MEMORY): Delete.
243
797eee42
MF
2442015-11-15 Mike Frysinger <vapier@gentoo.org>
245
246 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
247
d2dfd242
MF
2482015-11-14 Mike Frysinger <vapier@gentoo.org>
249
250 * Makefile.in (SIM_OBJS): Delete sim-load.o.
251
6e4f085c
MF
2522015-11-14 Mike Frysinger <vapier@gentoo.org>
253
254 * interp.c (sim_close): Delete.
255
8d0978fb
MF
2562015-06-23 Mike Frysinger <vapier@gentoo.org>
257
258 * configure: Regenerate.
259
a3487082
MF
2602015-06-12 Mike Frysinger <vapier@gentoo.org>
261
262 * configure: Regenerate.
263
306f4178
MF
2642015-06-12 Mike Frysinger <vapier@gentoo.org>
265
266 * configure: Regenerate.
267
09896bd2
MF
2682015-06-11 Mike Frysinger <vapier@gentoo.org>
269
270 * interp.c (interrupt_names): Delete.
271
a84f8df0
MF
2722015-06-11 Mike Frysinger <vapier@gentoo.org>
273
274 * Makefile.in (SIM_OBJS): Add sim-resume.o
275 * interp.c (has_stepped, sim_resume): Delete.
276
5d19c366
MF
2772015-06-11 Mike Frysinger <vapier@gentoo.org>
278
279 * interp.c (INLINE): Delete define.
280
0a13382c
NC
2812015-04-29 Nick Clifton <nickc@redhat.com>
282
283 PR 18273
284 * gencode.c (gen_fetch_operands): Remove unreachable code.
285
20bca71d
MF
2862015-04-18 Mike Frysinger <vapier@gentoo.org>
287
288 * sim-main.h (SIM_CPU): Delete.
289
7e83aa92
MF
2902015-04-18 Mike Frysinger <vapier@gentoo.org>
291
292 * sim-main.h (sim_cia): Delete.
293
034685f9
MF
2942015-04-17 Mike Frysinger <vapier@gentoo.org>
295
296 * sim-main.h (CIA_GET, CIA_SET): Delete.
297
78e9aa70
MF
2982015-04-15 Mike Frysinger <vapier@gentoo.org>
299
300 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
301 * sim-main.h (STATE_CPU): Delete.
302
bf12d44e
MF
3032015-04-13 Mike Frysinger <vapier@gentoo.org>
304
305 * configure: Regenerate.
306
bea3f671
MF
3072015-04-13 Mike Frysinger <vapier@gentoo.org>
308
309 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
310 * interp.c (m68hc11_pc_get, m68hc11_pc_set): New functions.
311 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
312 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
313 (sim_pc_get): Delete.
314 * sim-main.h (SIM_CPU): Define.
315 (STATE_CPU): Drop &.
316 (struct sim_state): Change cpu to an array of pointers.
317
122bbfb5
MF
3182015-04-06 Mike Frysinger <vapier@gentoo.org>
319
320 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
321
2b6ca062
MF
3222015-03-31 Mike Frysinger <vapier@gentoo.org>
323
324 * m68hc11_sim.c (cpu_get_indexed_operand_addr,
325 cpu_get_indexed_operand8, cpu_get_indexed_operand16): Rename restrict
326 variable to restricted.
327 * sim-main.h (cpu_get_indexed_operand_addr): Likewise.
328
05f53ed6
MF
3292015-03-24 Mike Frysinger <vapier@gentoo.org>
330
331 * interp.c (sim_pc_get): New function.
332
523ba8f9
MF
3332015-03-24 Mike Frysinger <vapier@gentoo.org>
334
335 * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
336 sim_size, sim_trace): Delete.
337 * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
338
30452bbe
MF
3392015-03-24 Mike Frysinger <vapier@gentoo.org>
340
341 * configure: Regenerate.
342
64dd13df
MF
3432015-03-23 Mike Frysinger <vapier@gentoo.org>
344
345 * configure: Regenerate.
346
49cd1634
MF
3472015-03-23 Mike Frysinger <vapier@gentoo.org>
348
349 * configure: Regenerate.
350 * configure.ac (m68hc11_extra_objs): Delete.
351 * Makefile.in (SIM_OBJS): Delete SIM_EXTRA_OBJS.
352 (SIM_EXTRA_OBJS): Delete.
353
ae7d0cac
MF
3542015-03-16 Mike Frysinger <vapier@gentoo.org>
355
356 * config.in, configure: Regenerate.
357
465fb143
MF
3582015-03-14 Mike Frysinger <vapier@gentoo.org>
359
360 * Makefile.in (SIM_RUN_OBJS): Delete.
361
5cddc23a
MF
3622015-03-14 Mike Frysinger <vapier@gentoo.org>
363
364 * configure.ac (AC_CHECK_HEADERS): Delete.
365 * aclocal.m4, configure: Regenerate.
366
2974be62
AM
3672014-08-19 Alan Modra <amodra@gmail.com>
368
369 * configure: Regenerate.
370
faa743bb
RM
3712014-08-15 Roland McGrath <mcgrathr@google.com>
372
373 * configure: Regenerate.
374 * config.in: Regenerate.
375
1a8a700e
MF
3762014-03-04 Mike Frysinger <vapier@gentoo.org>
377
378 * configure: Regenerate.
379
bf3d9781
AM
3802013-09-23 Alan Modra <amodra@gmail.com>
381
382 * configure: Regenerate.
383
31e6ad7d
MF
3842013-06-03 Mike Frysinger <vapier@gentoo.org>
385
386 * aclocal.m4, configure: Regenerate.
387
d3685d60
TT
3882013-05-10 Freddie Chopin <freddie_chopin@op.pl>
389
390 * configure: Rebuild.
391
1517bd27
MF
3922013-03-26 Mike Frysinger <vapier@gentoo.org>
393
394 * configure: Regenerate.
395
256139f5
JS
3962013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
397
398 * configure.ac: Use $SIM_DV_SOCKSER_O.
399 * configure: Regenerated.
400
5f3ef9d0
JB
4012012-06-15 Joel Brobecker <brobecker@adacore.com>
402
403 * config.in, configure: Regenerate.
404
2232061b
MF
4052012-03-24 Mike Frysinger <vapier@gentoo.org>
406
407 * aclocal.m4, config.in, configure: Regenerate.
408
db2e4d67
MF
4092011-12-03 Mike Frysinger <vapier@gentoo.org>
410
411 * aclocal.m4: New file.
412 * configure: Regenerate.
413
4399a56b
MF
4142011-10-19 Mike Frysinger <vapier@gentoo.org>
415
416 * configure: Regenerate after common/acinclude.m4 update.
417
9c082ca8
MF
4182011-10-17 Mike Frysinger <vapier@gentoo.org>
419
420 * configure.ac: Change include to common/acinclude.m4.
421
6ffe910a
MF
4222011-10-17 Mike Frysinger <vapier@gentoo.org>
423
424 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
425 call. Replace common.m4 include with SIM_AC_COMMON.
426 * configure: Regenerate.
427
2419798b
MF
4282011-07-05 Mike Frysinger <vapier@gentoo.org>
429
430 * interp.c (sim_do_command): Delete.
431
3725885a
RW
4322010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
433
434 * configure: Regenerate.
435
d6416cdc
RW
4362009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
437
81ecdfbb
RW
438 * config.in: Regenerate.
439 * configure: Likewise.
440
d6416cdc
RW
441 * configure: Regenerate.
442
b5bd9624
HPN
4432008-07-11 Hans-Peter Nilsson <hp@axis.com>
444
445 * configure: Regenerate to track ../common/common.m4 changes.
446 * config.in: Ditto.
447
6efef468 4482008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
449 Daniel Jacobowitz <dan@codesourcery.com>
450 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
451
452 * configure: Regenerate.
453
b1bfc053
HPN
4542006-12-21 Hans-Peter Nilsson <hp@axis.com>
455
456 * config.in: Regenerate.
457
e85e3205
RE
4582006-06-13 Richard Earnshaw <rearnsha@arm.com>
459
460 * configure: Regenerated.
461
2f0122dc
DJ
4622006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
463
464 * configure: Regenerated.
465
20e95c23
DJ
4662006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
467
468 * configure: Regenerated.
469
b3a3ffef
HPN
4702006-03-29 Hans-Peter Nilsson <hp@axis.com>
471
472 * configure: Regenerate.
473
2b193c4a
MK
4742005-03-23 Mark Kettenis <kettenis@gnu.org>
475
476 * configure: Regenerate.
477
35695fd6
AC
4782005-01-14 Andrew Cagney <cagney@gnu.org>
479
480 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
481 explicit call to AC_CONFIG_HEADER.
482 * configure: Regenerate.
483
38f48d72
AC
4842005-01-11 Andrew Cagney <cagney@localhost.localdomain>
485
486 * configure: Regenerated to track ../common/aclocal.m4 changes.
487
b7026657
AC
4882005-01-07 Andrew Cagney <cagney@gnu.org>
489
490 * configure.ac: Rename configure.in, require autoconf 2.59.
491 * configure: Re-generate.
492
379832de
HPN
4932004-12-08 Hans-Peter Nilsson <hp@axis.com>
494
495 * configure: Regenerate for ../common/aclocal.m4 update.
496
84b11e2e
AM
4972004-06-15 Alan Modra <amodra@bigpond.net.au>
498
499 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
500 instead of bfd_get_section_size_before_reloc.
501
a685700c
SC
5022003-08-08 Stephane Carrez <stcarrez@nerim.fr>
503
504 * dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
505 control the translation.
506 (m68hc11tim_print_timer): Update cycle_to_string conversion.
507 (m68hc11tim_timer_event): Fix handling of output
508 compare register with its interrupts.
509 (m68hc11tim_io_write_buffer): Check output compare
510 after setting M6811_TMSK1.
511 (m68hc11tim_io_read_buffer): Fix compilation warning.
512 * dv-m68hc11.c (m68hc11_option_handler): Likewise.
513 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
514 * dv-m68hc11sio.c (m68hc11sio_info): Likewise.
515 * interrupts.c (interrupts_info): Likewise.
516 (interrupts_reset): Recognize bootstrap mode.
517 * sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
518 (_sim_cpu): Add cpu_start_mode.
519 (cycle_to_string): Add flags member.
520 * m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
521 (cpu_options): Declare new option bootstrap.
522 (cpu_option_handler): Handle it.
523 (cpu_info): Update call to cycle_to_string.
524
77342e5e
SC
5252003-08-08 Stephane Carrez <stcarrez@nerim.fr>
526
527 * sim-main.h (phys_to_virt): Use memory bank parameters to translate
528 the physical address in virtual address.
529 (struct _sim_cpu): Add memory bank members.
530 * m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
531 * interp.c (sim_hw_configure): Create memory bank according to memory
532 bank parameters.
533 (sim_get_bank_parameters): New function to obtain memory bank config
534 from the symbol table.
535 (sim_prepare_for_program): Call it to obtain the memory bank parameters.
536 (sim_open): Call sim_prepare_for_program.
537 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
538 to check if address is within bank window.
539 (m68hc11cpu_io_read_buffer): Likewise.
540 (attach_m68hc11_regs): Map the memory bank according to memory bank
541 parameters.
542
53b3cd22
SC
5432003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
544
545 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
546
962e9d85
SC
5472003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
548 Gary Piercey <gpiercey@northstar-technical.com>
549
550 * m68hc11_sim.c (print_io_word): New function to print 16-bit value.
551 * sim-main.h (print_io_word): Declare.
552 * dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
553 (tflg1_desc): Likewise for TFLG1.
554 (m68hc11tim_info): Print input and output compare registers
555
9b9f7b3c
SC
5562003-03-02 Stephane Carrez <stcarrez@nerim.fr>
557
558 * Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
559 to 32 to support memory bank switching; temporarily use 32-bit for
560 WORD_BITSIZE to avoid a bug in sim-common.
561
00416c6e
SC
5622003-03-01 Stephane Carrez <stcarrez@nerim.fr>
563
564 * interp.c (sim_fetch_register): Only store a single byte for
565 1 byte registers.
566
6b4a8935
AC
5672003-02-27 Andrew Cagney <cagney@redhat.com>
568
569 * interp.c (sim_prepare_for_program, sim_open)
570 (sim_create_inferior): Rename _bfd to bfd.
571
099d1b50
SC
5722002-08-13 Stephane Carrez <stcarrez@nerim.fr>
573
574 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
575
31c7c532
SC
5762002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
577
72f4393d 578 * interp.c (sim_prepare_for_program): Look up the image for the
31c7c532
SC
579 reset vector and set cpu_use_elf_start to 1 if not found.
580 (sim_open): Do not set cpu_use_elf_start.
581
39762100
SC
5822002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
583
584 * interp.c (sim_hw_configure): Return 1 for success.
585 (sim_prepare_for_program): Use the sim_hw_configure exit code to
586 return SIM_RC_FAIL.
587
7230d809
SC
5882002-08-13 Stephane Carrez <stcarrez@nerim.fr>
589
590 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
591 bank window to some virtual address to read from extended memory.
592 (m68hc11cpu_io_write_buffer): Likewise for writing.
ca156d78 593 (attach_m68hc11_regs): When use_bank property is defined, attach
7230d809 594 to the 68HC12 16K memory bank window.
7230d809
SC
595 * interp.c (sim_hw_configure): Create memory region for banked
596 memory.
597
dcceded2
SC
5982002-08-13 Stephane Carrez <Stephane.Carrez@nerim.fr>
599
600 * interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
601 * dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
602 (m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
603
abea9e28
SC
6042002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
605
606 * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
607 when IO mapping changed, not when internal RAM mapping is changed.
608
63f36def
SC
6092002-08-13 Stephane Carrez <stcarrez@nerim.fr>
610
611 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
612 * sim-main.h (M6812_CALL_INDIRECT): Add to enum.
613 (m6811_regs): Add page register.
614 (cpu_set_page, cpu_get_page): New macros.
615 (phys_to_virt): New function.
616 (cpu_get_indexed_operand_addr, cpu_return): Declare.
617 * gencode.c: Identify indirect addressing mode for call and fix daa.
72f4393d 618 (gen_function_entry): New param to tell if src8/dst8 locals are
63f36def
SC
619 necessary.
620 (gen_interpreter): Use it to avoid generation of unused variables.
621 * interp.c (sim_fetch_register): Allow to read page register; page
622 register, A, B and CCR are only 1 byte wide.
623 (sim_store_register): Likewise for writing.
624
c8cca39f
AC
6252002-06-16 Andrew Cagney <ac131313@redhat.com>
626
627 * configure: Regenerated to track ../common/aclocal.m4 changes.
628
3c25f8c7
AC
6292002-06-09 Andrew Cagney <cagney@redhat.com>
630
631 * Makefile.in (INCLUDE): Update path to callback.h.
632 * sim-main.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
633
86596dc8
SC
6342002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
635
636 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
637 (cpu_move16): Likewise.
638 (sim_memory_error): Use sim_io_printf.
639 (cpu_option_handler): Fix compilation warning.
72f4393d 640 * interp.c (sim_hw_configure): Fix compilation warning;
86596dc8
SC
641 remove m68hc12sio@2 device.
642 (sim_open): Likewise.
72f4393d 643 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
86596dc8
SC
644 flags when reset.
645 (cycle_to_string): Improve convertion of cpu cycle number.
646 (m68hc11tim_info): Print info about PACNT.
647 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
648 TCTL1 and TCTL2 registers.
649 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
650
827ec39a
SC
6512002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
652
72f4393d 653 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
827ec39a
SC
654 cpu struct.
655 (sim_hw_configure): Connect the capture input/output events.
656 * sim-main.h (_sim_cpu): New member hw_cpu.
657 (m68hc11cpu_set_oscillator): Declare.
658 (m68hc11cpu_clear_oscillator): Declare.
659 (m68hc11cpu_set_port): Declare.
660 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
661 (m68hc11cpu_ports): New input ports and output ports to reflect
662 the HC11 IOs.
663 (m68hc11_delete): Cleanup any running oscillator.
664 (attach_m68hc11_regs): Create the input oscillators.
665 (make_oscillator): New function.
666 (find_oscillator): New function.
667 (oscillator_handler): New function.
668 (reset_oscillators): New function.
669 (m68hc11cpu_port_event): Handle the new input ports.
670 (m68hc11cpu_set_oscillator): New function.
671 (m68hc11cpu_clear_oscillator): New function.
672 (get_frequency): New function.
673 (m68hc11_option_handler): New function.
674 (m68hc11cpu_set_port): New function.
675 (m68hc11cpu_io_write): Post the port output events.
676 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
677 the output port value.
678 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
679 by latching the TCNT value in the register.
680
5abb9efa
SC
6812002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
682
683 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
684 (cpu_frame_reg, cpu_print_frame): Remove.
685 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
686 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
687 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
688 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
689 * m68hc11_sim.c (cpu_find_frame): Remove.
690 (cpu_create_frame_list): Remove.
691 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
692 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
693 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
694 (cpu_update_frame): Likewise.
695 (cpu_return): Likewise.
696 (cpu_reset): Likewise.
72f4393d 697 (cpu_initialize): Likewise.
5abb9efa
SC
698 * interp.c (sim_do_command): Remove call to cpu_print_frame.
699
26128965
SC
7002002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
701
702 * interrupts.c (interrupts_reset): New function, setup interrupt
703 vector address according to cpu mode.
704 (interrupts_initialize): Move reset portion to the above.
705 (interrupt_names): New table to give a name to interrupts.
706 (idefs): Handle pulse accumulator interrupts.
707 (interrupts_info): Print the interrupt history.
708 (interrupt_option_handler): New function.
709 (interrupt_options): New table of options.
710 (interrupts_update_pending): Keep track of when interrupts are
711 raised and implement breakpoint-on-raise-interrupt.
712 (interrupts_process): Keep track of when interrupts are taken
713 and implement breakpoint-on-interrupt.
714 * interrupts.h (struct interrupt_history): Define.
715 (struct interrupt): Keep track of the interrupt history.
716 (interrupts_reset): Declare.
717 (interrupts_initialize): Update prototype.
718 * m68hc11_sim.c (cpu_reset): Reset interrupts.
719 (cpu_initialize): Cleanup.
720
eefde351
SC
7212001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
722
723 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
724 address.
725 (m68hc11eepr_port_event): Fix detach/attach logic.
726
00d0c012
SC
7272001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
728
729 * Makefile.in (SIM_OBJS): Remove sim-resume.o
730 * interp.c (sim_resume): New function from sim-resume.c, install
731 the stepping event after having processed the pending ticks.
732 (has_stepped): Likewise.
733 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
734
b51c7603
AC
7352001-07-10 Andrew Cagney <ac131313@redhat.com>
736
737 * Makefile.in (gencode): Provide explicit path to gencode.c.
738
81e09ed8
SC
7392001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
740
741 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
742 (m68hc12int.c): Generate using gencode -m6812.
743 (m68hc11int.c): Likewise with -m6811.
744
745 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
746 (m6811_page1_opcodes): Remove duplicate entries.
747 (m6811_page2_opcodes): Likewise.
748 (m6811_page3_opcodes): Likewise.
749 (m6811_page4_opcodes): Likewise.
750 (m6812_page1_opcodes): New table for 68HC12 instructions.
751 (m6812_page2_opcodes): Likewise.
752 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
753 (gen_save_result): Likewise.
754 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
755 (cmp_opcode): New function for opcode comparision.
756 (prepare_table): Sort the opcodes.
757 (gen_interpreter): Prepare all the tables and generate either
758 a 68HC11 or a 68HC12 simulator.
759 (main): New options -m6811 and -m6812.
760
761 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
762 (cpu_special): Simulation of some 68HC12 instructions.
763 (cpu_exg): New function.
764 (cpu_dbcc): Likewise.
765 (cpu_fetch_relbranch16): Likewise.
766 (cpu_push_all): Push according to 68HC11 or 68HC12.
767 (cpu_move16): Likewise.
768 (cpu_move8): Likewise.
769 (cpu_get_indexed_operand16): Likewise.
770 (cpu_get_indexed_operand8): Likewise.
771 (cpu_get_indexed_operand_addr): Likewise.
772 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
773 (cpu_reset): Setup INIT register according to architecture.
72f4393d 774
81e09ed8
SC
775 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
776 (_sim_cpu): Keep track of the cpu being simulated.
777 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
778 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
779 (cpu_m68hc11_pop_uint8): Likewise.
780 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
781 (cpu_m68hc12_pop_uintxx): Likewise.
782 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
783 (cpu_fetch_relbranch16): Likewise.
784 (cpu_interp_m6811): Rename of cpu_interp.
72f4393d 785 (cpu_interp_m6812): New function.
81e09ed8
SC
786 * interp.c (free_state): New function.
787 (dev_list_68hc12): New table.
788 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
789 (sim_hw_configure): New function.
790 (sim_prepare_for_program): New function.
791 (sim_open): Use above new functions.
792 (sim_close): Call free_state().
793 (sim_info): Print info according to cpu.
794 (sim_create_inferior): Use sim_prepare_for_program.
795 (sim_do_command): Configure the hardware after a change of the
796 architecture.
797
11115521
SC
7982001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
799
800 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
801 pending interrupts.
802 * interrupts.c (interrupts_process): Keep track of the last number
803 of masked insn cycles.
804 (interrupts_initialize): Clear last number of masked insn cycles.
805 (interrupts_info): Report them.
72f4393d
L
806 (interrupts_update_pending): Compute clear and set masks of
807 interrupts and clear the interrupt bits before setting them
11115521
SC
808 (due to SCI interrupt sharing).
809 * interrupts.h (struct interrupts): New members last_mask_cycles
810 and xirq_last_mask_cycles.
811
b93775f5
SC
8122000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
813
814 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
815 instead of a hard-coded value.
816 (m68hc11cpu_io_write_buffer): Likewise.
817 (dv_m68hc11_descriptor): Define a 68hc12 device.
818 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
819 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
820 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
821 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
822
639aa4f7
SC
8232000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
824
825 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
826 (m68hc11cpu_delete): Delete handler to detach the address space.
827
6e73e7ed
SC
8282000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
829
830 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
831 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
832 instead of free and malloc.
833
5f186447
SC
8342000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
835
836 * Makefile.in: Was missing from initial patch.
837
9830501b
SC
8382000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
839
840 * interp.c (sim_store_register): Remove soft register hack.
841 (sim_fetch_register): Likewise.
842 (sim_create_inferior): Likewise.
843 * sim-main.h: Likewise.
844
a8afa79a
SC
8452000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
846
847 * interrupts.c (interrupts_update_pending): Clear the mask of
848 pending interrupts here.
849 (interrupts_get_current): Don't clear the mask of pending interrupts.
850
2990a9f4
SC
8512000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
852
853 * sim-main.h: Define cycle_to_string.
72f4393d 854 * dv-m68hc11tim.c (cycle_to_string): New function to translate
2990a9f4
SC
855 the cpu cycle into some formatted time string.
856 (m68hc11tim_print_timer): Use it.
857 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
858 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
859 * interrupts.c (interrupts_info): Likewise.
860 * m68hc11_sim.c (cpu_info): Likewise.
861
401493c8
SC
8622000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
863
864 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
865 interrupt and compare events accurately. Take into account the
866 pending ticks not processed by the simulator yet (introduced a shift).
867 (m68hc11_port_event): Reset the timer interrupt delays.
868 (m68hc11tim_io_read_buffer): Be able to read several bytes.
869 (m68hc11tim_io_write_buffer): Likewise for write.
870 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
871
4d72d17a
SC
8722000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
873
874 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
875 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
876 (m68hc11spi_info): Clarify the status report
877 of the SPI when a byte is being sent.
878 (m68hc11spi_clock): Fix the spi send frame.
72f4393d 879
63348d04
SC
8802000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
881
882 * sim-main.h (m68hc11_map_level): Define level of address mappings.
883 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
884 whether the eeprom is currently mapped or not.
885 (m68hc11eepr_port_event): Use the flag to see if we must unmap
886 or map the eeprom. Update the flag to reflect the current state.
887 Use M6811_EEPROM_LEVEL when mapping the eeprom.
888 (m68hc11eepr_finish): Remove overlap hack.
889 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
890 config and control registers.
891 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
892 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
893 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
894 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
895 (attach_m68hc11spi_regs): Likewise.
896 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
897 (attach_m68hc11tim_regs): Likewise.
898 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
899 (attach_m68hc11sio_regs): Likewise.
900 * interp.c (sim_open): Likewise.
901 * dv-nvram.c (attach_nvram_regs): Likewise.
902
5d031c16
AC
903Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
904
905 * configure, config.in: Regenerate.
906
e0709f50
AC
9072000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
908
909 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
910 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
911 (dv_m6811_detach_address_callback): New function to detach a
912 device from an address space.
913 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
914 config register according to --cpu-config option.
915 * sim-main.h (_sim_cpu): Add cpu_config member.
916 * interp.c (sim_open): Delete specific simulator options.
917 * m68hc11_sim.c (cpu_option_handler): New options
918 --emulos and -cpu-config <val> to configure the simulator.
919 (cpu_initialize): Initialize cpu_config member.
920
9212000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
922
923 * emulos.c: Fix indentation and comments.
924 * gencode.c: Likewise.
925 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
926 (m68hc11tim_io_write_buffer): Write compare registers and
927 setup compare event.
928 * interp.c: Remove unused global variables.
929 * interrupts.c (idefs): New compare interrupts.
930 Fix indentation and comments.
931 * interrupts.h: Likewise.
932
9332000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
934
935 * dv-m68hc11sio.c: Fix indentation and comments.
936 Remove INT_PORT.
937 * dv-m68hc11.c: Fix indentation and comments.
938 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
939 * m68hc11_sim.c (cpu_reset): To here.
940 * dv-m68hc11eepr.c: Fix indentation and comments.
72f4393d 941
e0709f50
AC
9422000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
943
944 * dv-nvram.c: New file, rename from dv-pram.c.
945 * dv-pram.c: Delete file.
946 * sim-main.h: Incorporate m68hc11_sim.h.
947 * m68hc11_sim.h: Delete file.
948 * configure.in: Rename pram into nvram.
949 * interp.c (sim_open): Likewise in creation of device tree.
72f4393d 950
e0709f50
AC
9512000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
952
953 * interp.c (sim_open): Create the SPI device.
954 * dv-m68hc11spi.c: New file for SPI device simulation.
955 * configure.in (hw_extra_devices): Add SPI device.
956
9572000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
958
959 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
960 (interrupts_process): Separate IRQ and XIRQ accounting.
961 (interrupts_info): Report XIRQ accounting.
962 * interrupts.h (struct interrupts): Added accounting for XIRQ.
963
9642000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
965
966 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
967 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
72f4393d 968 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
e0709f50
AC
969 configuration from the 'mode' device tree property.
970 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
971 configuration.
972
9732000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
974
975 * sim-main.h: Remove WITH_TARGET_* defines.
976 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
977
9782000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
979
980 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
981 1200 baud when cpu is in bootstrap mode.
982
983 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
984 write in the TCTN timer register.
985
986 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
987 by 4 to obtain the E clock frequency.
988 (sccr2_desc): Use M6811_TIE for TIE bit.
989 (m68hc11sio_info): Fix baud rate report.
990
991 * dv-m68hc11tim.c (to_realtime): Likewise.
992
993 * interp.c (sim_open): When building device tree, only provide
994 devices that do not exist yet.
995
996 * emulos.c: Fix compilation pb under Windows.
997
998 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
999 from the 'clock' property.
1000
10012000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
1002
1003 * m68hc11_sim.h (*_REGNUM): Define.
1004 (_sim_cpu): New member cpu_page0_reg table.
1005 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
1006 addresses of soft registers in .page0.
72f4393d 1007 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
e0709f50
AC
1008 to get/set soft registers.
1009
10101999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
1011
1012 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
1013 returning random values.
1014
10151999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
1016
1017 * gencode.c: Fix "subb N,x" that used a instead of b.
1018
10191999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
1020
1021 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
1022
10231999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
1024
1025 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
1026
10271999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
1028
1029 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
1030 register region in the m68hc11cpu struct.
1031 (m68hc11cpu_io_write): When the IO mapping addres changes,
1032 detach the register region and re-attach it at the new address.
1033 (m68hc11cpu_io_read_buffer): Renamed base_address into
1034 attach_address.
1035 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
1036 to m68hc11cpu_io_write.
1037
10381999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
1039
1040 * gencode.c: For sbc8, check the carry and increment the source
1041 before trying to set the carry for the result.
1042
10431999-05-24 John S. Kallal <kallal@voicenet.com>
72f4393d 1044
e0709f50
AC
1045 * interp.c (sim_get_info): Don't crash if the command line is 0.
1046 Define prototype for sim_get_info() and init_system().
1047 (sim_info): Correct call to sim_get_info().
72f4393d 1048
e0709f50
AC
10491999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
1050
1051 * configure.in: Recognize m6811-*-*.
1052 * configure: Regenerate.
1053 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
1054 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
1055 Correct the computation of carry of 8 and 16-bits add and subtract.
1056 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
1057 overflow set in a different manner than add).
1058
10591999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
1060
1061 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
1062 trace message.
1063 * interp.c (sim_open, sim_create_inferior): Initialize the
1064 cpu_elf_start from the ELF header.
1065 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
1066 (cpu_restart): Use cpu_elf_start as the starting address when
1067 the flag is set.
1068 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
1069 exits the simulator (exit status is in D).
1070 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
1071 cpu_elf_star to start execution at address specified in ELF file.
1072
10731999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
1074
1075 * Makefile.in, config.in, configure, configure.in: New files.
1076 * gencode.c: New file, generation of 68HC11 interpreter.
1077 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
1078 for interpreter.
1079 * interrupts.c, interrupts.h: New files, management of interrupts.
72f4393d 1080 * interp.c, sim-main.h,
e0709f50
AC
1081 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
1082 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
1083 68HC11 (dv-pram.c is generic and could probably migrate to common).
1084 * emulos.c: New file, basic emulation of some os.