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