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