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