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