]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/m68hc11/ChangeLog
sim: common: split up acinclude.m4 into individual m4 files
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
1 2021-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
6 2021-02-13 Mike Frysinger <vapier@gentoo.org>
7
8 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
9 * aclocal.m4, configure: Regenerate.
10
11 2021-02-06 Mike Frysinger <vapier@gentoo.org>
12
13 * configure: Regenerate.
14
15 2021-01-30 Mike Frysinger <vapier@gentoo.org>
16
17 * dv-m68hc11tim.c (cycle_to_string): Change llu to PRIi64.
18
19 2021-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
25 2021-01-30 Mike Frysinger <vapier@gentoo.org>
26
27 * interp.c (sim_get_info, sim_board_reset): Pass %s to sim_hw_parse.
28
29 2021-01-30 Mike Frysinger <vapier@gentoo.org>
30
31 * dv-m68hc11.c, m68hc11_sim.c: Include stdlib.h.
32
33 2021-01-30 Mike Frysinger <vapier@gentoo.org>
34
35 * configure.ac (SIM_AC_OPTION_HARDWARE): Inline variables.
36 * configure: Regenerate.
37
38 2021-01-11 Mike Frysinger <vapier@gentoo.org>
39
40 * config.in, configure: Regenerate.
41
42 2021-01-09 Mike Frysinger <vapier@gentoo.org>
43
44 * configure: Regenerate.
45
46 2021-01-09 Mike Frysinger <vapier@gentoo.org>
47
48 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
49 * configure: Regenerate.
50
51 2021-01-08 Mike Frysinger <vapier@gentoo.org>
52
53 * configure: Regenerate.
54
55 2021-01-04 Mike Frysinger <vapier@gentoo.org>
56
57 * configure: Regenerate.
58
59 2017-09-06 John Baldwin <jhb@FreeBSD.org>
60
61 * configure: Regenerate.
62
63 2017-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
72 2016-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
84 2016-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
90 2016-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
109 2016-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
126 2016-01-10 Mike Frysinger <vapier@gentoo.org>
127
128 * config.in, configure: Regenerate.
129
130 2016-01-10 Mike Frysinger <vapier@gentoo.org>
131
132 * configure: Regenerate.
133
134 2016-01-10 Mike Frysinger <vapier@gentoo.org>
135
136 * configure: Regenerate.
137
138 2016-01-10 Mike Frysinger <vapier@gentoo.org>
139
140 * configure: Regenerate.
141
142 2016-01-10 Mike Frysinger <vapier@gentoo.org>
143
144 * configure: Regenerate.
145
146 2016-01-10 Mike Frysinger <vapier@gentoo.org>
147
148 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
149 * configure: Regenerate.
150
151 2016-01-10 Mike Frysinger <vapier@gentoo.org>
152
153 * configure: Regenerate.
154
155 2016-01-10 Mike Frysinger <vapier@gentoo.org>
156
157 * configure: Regenerate.
158
159 2016-01-09 Mike Frysinger <vapier@gentoo.org>
160
161 * config.in, configure: Regenerate.
162
163 2016-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
168 2016-01-04 Mike Frysinger <vapier@gentoo.org>
169
170 * configure: Regenerate.
171
172 2016-01-03 Mike Frysinger <vapier@gentoo.org>
173
174 * interp.c (sim_open): Update sim_parse_args comment.
175
176 2016-01-03 Mike Frysinger <vapier@gentoo.org>
177
178 * sim-main.h (sim_state): Delete devices member.
179
180 2016-01-03 Mike Frysinger <vapier@gentoo.org>
181
182 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
183 * configure: Regenerate.
184
185 2016-01-02 Mike Frysinger <vapier@gentoo.org>
186
187 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
188 * configure: Regenerate.
189
190 2015-12-30 Mike Frysinger <vapier@gentoo.org>
191
192 * configure.ac: Change LITTLE_ENDIAN to BIG_ENDIAN.
193 * configure: Regenerate.
194
195 2015-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
202 2015-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
211 2015-12-27 Mike Frysinger <vapier@gentoo.org>
212
213 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
214
215 2015-12-26 Mike Frysinger <vapier@gentoo.org>
216
217 * config.in, configure: Regenerate.
218
219 2015-12-24 Mike Frysinger <vapier@gentoo.org>
220
221 * sim-main.h (SIM_HANDLES_LMA): Delete.
222
223 2015-12-24 Mike Frysinger <vapier@gentoo.org>
224
225 * sim-main.h (WITH_WATCHPOINTS): Delete.
226
227 2015-11-17 Mike Frysinger <vapier@gentoo.org>
228
229 * sim-main.h (WITH_MODULO_MEMORY): Delete.
230
231 2015-11-15 Mike Frysinger <vapier@gentoo.org>
232
233 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
234
235 2015-11-14 Mike Frysinger <vapier@gentoo.org>
236
237 * Makefile.in (SIM_OBJS): Delete sim-load.o.
238
239 2015-11-14 Mike Frysinger <vapier@gentoo.org>
240
241 * interp.c (sim_close): Delete.
242
243 2015-06-23 Mike Frysinger <vapier@gentoo.org>
244
245 * configure: Regenerate.
246
247 2015-06-12 Mike Frysinger <vapier@gentoo.org>
248
249 * configure: Regenerate.
250
251 2015-06-12 Mike Frysinger <vapier@gentoo.org>
252
253 * configure: Regenerate.
254
255 2015-06-11 Mike Frysinger <vapier@gentoo.org>
256
257 * interp.c (interrupt_names): Delete.
258
259 2015-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
264 2015-06-11 Mike Frysinger <vapier@gentoo.org>
265
266 * interp.c (INLINE): Delete define.
267
268 2015-04-29 Nick Clifton <nickc@redhat.com>
269
270 PR 18273
271 * gencode.c (gen_fetch_operands): Remove unreachable code.
272
273 2015-04-18 Mike Frysinger <vapier@gentoo.org>
274
275 * sim-main.h (SIM_CPU): Delete.
276
277 2015-04-18 Mike Frysinger <vapier@gentoo.org>
278
279 * sim-main.h (sim_cia): Delete.
280
281 2015-04-17 Mike Frysinger <vapier@gentoo.org>
282
283 * sim-main.h (CIA_GET, CIA_SET): Delete.
284
285 2015-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
290 2015-04-13 Mike Frysinger <vapier@gentoo.org>
291
292 * configure: Regenerate.
293
294 2015-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
305 2015-04-06 Mike Frysinger <vapier@gentoo.org>
306
307 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
308
309 2015-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
316 2015-03-24 Mike Frysinger <vapier@gentoo.org>
317
318 * interp.c (sim_pc_get): New function.
319
320 2015-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
326 2015-03-24 Mike Frysinger <vapier@gentoo.org>
327
328 * configure: Regenerate.
329
330 2015-03-23 Mike Frysinger <vapier@gentoo.org>
331
332 * configure: Regenerate.
333
334 2015-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
341 2015-03-16 Mike Frysinger <vapier@gentoo.org>
342
343 * config.in, configure: Regenerate.
344
345 2015-03-14 Mike Frysinger <vapier@gentoo.org>
346
347 * Makefile.in (SIM_RUN_OBJS): Delete.
348
349 2015-03-14 Mike Frysinger <vapier@gentoo.org>
350
351 * configure.ac (AC_CHECK_HEADERS): Delete.
352 * aclocal.m4, configure: Regenerate.
353
354 2014-08-19 Alan Modra <amodra@gmail.com>
355
356 * configure: Regenerate.
357
358 2014-08-15 Roland McGrath <mcgrathr@google.com>
359
360 * configure: Regenerate.
361 * config.in: Regenerate.
362
363 2014-03-04 Mike Frysinger <vapier@gentoo.org>
364
365 * configure: Regenerate.
366
367 2013-09-23 Alan Modra <amodra@gmail.com>
368
369 * configure: Regenerate.
370
371 2013-06-03 Mike Frysinger <vapier@gentoo.org>
372
373 * aclocal.m4, configure: Regenerate.
374
375 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
376
377 * configure: Rebuild.
378
379 2013-03-26 Mike Frysinger <vapier@gentoo.org>
380
381 * configure: Regenerate.
382
383 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
384
385 * configure.ac: Use $SIM_DV_SOCKSER_O.
386 * configure: Regenerated.
387
388 2012-06-15 Joel Brobecker <brobecker@adacore.com>
389
390 * config.in, configure: Regenerate.
391
392 2012-03-24 Mike Frysinger <vapier@gentoo.org>
393
394 * aclocal.m4, config.in, configure: Regenerate.
395
396 2011-12-03 Mike Frysinger <vapier@gentoo.org>
397
398 * aclocal.m4: New file.
399 * configure: Regenerate.
400
401 2011-10-19 Mike Frysinger <vapier@gentoo.org>
402
403 * configure: Regenerate after common/acinclude.m4 update.
404
405 2011-10-17 Mike Frysinger <vapier@gentoo.org>
406
407 * configure.ac: Change include to common/acinclude.m4.
408
409 2011-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
415 2011-07-05 Mike Frysinger <vapier@gentoo.org>
416
417 * interp.c (sim_do_command): Delete.
418
419 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
420
421 * configure: Regenerate.
422
423 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
424
425 * config.in: Regenerate.
426 * configure: Likewise.
427
428 * configure: Regenerate.
429
430 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
431
432 * configure: Regenerate to track ../common/common.m4 changes.
433 * config.in: Ditto.
434
435 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
436 Daniel Jacobowitz <dan@codesourcery.com>
437 Joseph Myers <joseph@codesourcery.com>
438
439 * configure: Regenerate.
440
441 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
442
443 * config.in: Regenerate.
444
445 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
446
447 * configure: Regenerated.
448
449 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
450
451 * configure: Regenerated.
452
453 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
454
455 * configure: Regenerated.
456
457 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
458
459 * configure: Regenerate.
460
461 2005-03-23 Mark Kettenis <kettenis@gnu.org>
462
463 * configure: Regenerate.
464
465 2005-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
471 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
472
473 * configure: Regenerated to track ../common/aclocal.m4 changes.
474
475 2005-01-07 Andrew Cagney <cagney@gnu.org>
476
477 * configure.ac: Rename configure.in, require autoconf 2.59.
478 * configure: Re-generate.
479
480 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
481
482 * configure: Regenerate for ../common/aclocal.m4 update.
483
484 2004-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
489 2003-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
512 2003-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
530 2003-08-08 Stephane Carrez <stcarrez@nerim.fr>,
531
532 * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
533
534 2003-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
543 2003-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
549 2003-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
554 2003-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
559 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
560
561 * dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
562
563 2002-08-13 Marko Kohtala <marko.kohtala@luukku.com>
564
565 * interp.c (sim_prepare_for_program): Look up the image for the
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
569 2002-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
575 2002-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.
580 (attach_m68hc11_regs): When use_bank property is defined, attach
581 to the 68HC12 16K memory bank window.
582 * interp.c (sim_hw_configure): Create memory region for banked
583 memory.
584
585 2002-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
591 2002-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
596 2002-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.
605 (gen_function_entry): New param to tell if src8/dst8 locals are
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
612 2002-06-16 Andrew Cagney <ac131313@redhat.com>
613
614 * configure: Regenerated to track ../common/aclocal.m4 changes.
615
616 2002-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
621 2002-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.
627 * interp.c (sim_hw_configure): Fix compilation warning;
628 remove m68hc12sio@2 device.
629 (sim_open): Likewise.
630 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
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
638 2002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
639
640 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
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
668 2002-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.
684 (cpu_initialize): Likewise.
685 * interp.c (sim_do_command): Remove call to cpu_print_frame.
686
687 2002-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
708 2001-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
714 2001-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
722 2001-07-10 Andrew Cagney <ac131313@redhat.com>
723
724 * Makefile.in (gencode): Provide explicit path to gencode.c.
725
726 2001-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.
761
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.
772 (cpu_interp_m6812): New function.
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
785 2001-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.
793 (interrupts_update_pending): Compute clear and set masks of
794 interrupts and clear the interrupt bits before setting them
795 (due to SCI interrupt sharing).
796 * interrupts.h (struct interrupts): New members last_mask_cycles
797 and xirq_last_mask_cycles.
798
799 2000-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
810 2000-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
815 2000-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
821 2000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
822
823 * Makefile.in: Was missing from initial patch.
824
825 2000-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
832 2000-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
838 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
839
840 * sim-main.h: Define cycle_to_string.
841 * dv-m68hc11tim.c (cycle_to_string): New function to translate
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
849 2000-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
859 2000-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.
866
867 2000-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
890 Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
891
892 * configure, config.in: Regenerate.
893
894 2000-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
908 2000-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
920 2000-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.
928
929 2000-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.
937
938 2000-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
944 2000-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
951 2000-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.
955 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
956 configuration from the 'mode' device tree property.
957 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
958 configuration.
959
960 2000-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
965 2000-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
988 2000-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.
994 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
995 to get/set soft registers.
996
997 1999-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
1002 1999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
1003
1004 * gencode.c: Fix "subb N,x" that used a instead of b.
1005
1006 1999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
1007
1008 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
1009
1010 1999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
1011
1012 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
1013
1014 1999-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
1025 1999-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
1030 1999-05-24 John S. Kallal <kallal@voicenet.com>
1031
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().
1035
1036 1999-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
1046 1999-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
1060 1999-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.
1067 * interp.c, sim-main.h,
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.