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