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