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