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