]>
Commit | Line | Data |
---|---|---|
16f7876d MF |
1 | 2016-01-10 Mike Frysinger <vapier@gentoo.org> |
2 | ||
3 | * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call. | |
4 | * configure: Regenerate. | |
5 | ||
99d8e879 MF |
6 | 2016-01-10 Mike Frysinger <vapier@gentoo.org> |
7 | ||
8 | * configure: Regenerate. | |
9 | ||
35656e95 MF |
10 | 2016-01-10 Mike Frysinger <vapier@gentoo.org> |
11 | ||
12 | * configure: Regenerate. | |
13 | ||
347fe5bb MF |
14 | 2016-01-10 Mike Frysinger <vapier@gentoo.org> |
15 | ||
16 | * configure.ac (SIM_AC_OPTION_INLINE): Delete call. | |
17 | * configure: Regenerate. | |
18 | ||
22be3fbe MF |
19 | 2016-01-10 Mike Frysinger <vapier@gentoo.org> |
20 | ||
21 | * configure: Regenerate. | |
22 | ||
0dc73ef7 MF |
23 | 2016-01-10 Mike Frysinger <vapier@gentoo.org> |
24 | ||
25 | * configure: Regenerate. | |
26 | ||
936df756 MF |
27 | 2016-01-09 Mike Frysinger <vapier@gentoo.org> |
28 | ||
29 | * config.in, configure: Regenerate. | |
30 | ||
2e3d4f4d MF |
31 | 2016-01-06 Mike Frysinger <vapier@gentoo.org> |
32 | ||
33 | * interp.c (sim_open): Mark argv const. | |
34 | (sim_create_inferior): Mark argv and env const. | |
35 | ||
13adda68 MF |
36 | 2016-01-04 Mike Frysinger <vapier@gentoo.org> |
37 | ||
38 | * endian.c (get_word): Delete all arch/big endian logic. | |
39 | (get_longword, write_word, write_longword): Likewise. | |
40 | ||
77cf2ef5 MF |
41 | 2016-01-03 Mike Frysinger <vapier@gentoo.org> |
42 | ||
43 | * interp.c (sim_open): Update sim_parse_args comment. | |
44 | ||
0cb8d851 MF |
45 | 2016-01-03 Mike Frysinger <vapier@gentoo.org> |
46 | ||
47 | * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete. | |
48 | * configure: Regenerate. | |
49 | ||
1ac72f06 MF |
50 | 2016-01-02 Mike Frysinger <vapier@gentoo.org> |
51 | ||
52 | * configure: Regenerate. | |
53 | ||
e1211e55 MF |
54 | 2015-12-30 Mike Frysinger <vapier@gentoo.org> |
55 | ||
56 | * wrapper.c (d10v_reg_store, d10v_reg_fetch): Define. | |
57 | (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE. | |
58 | (sim_store_register): Rename to ... | |
59 | (d10v_reg_store): ... this. Rename cpu to sd. | |
60 | (sim_fetch_register): Rename to ... | |
61 | (d10v_reg_fetch): ... this. Rename cpu to sd. | |
62 | ||
5e744ef8 MF |
63 | 2015-12-27 Mike Frysinger <vapier@gentoo.org> |
64 | ||
65 | * Makefile.in (SIM_OBJS): Delete sim-hload.o. | |
66 | ||
1b393626 MF |
67 | 2015-12-26 Mike Frysinger <vapier@gentoo.org> |
68 | ||
69 | * config.in, configure: Regenerate. | |
70 | ||
797eee42 MF |
71 | 2015-11-15 Mike Frysinger <vapier@gentoo.org> |
72 | ||
73 | * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o. | |
74 | ||
7ea08e8c MF |
75 | 2015-11-15 Mike Frysinger <vapier@gentoo.org> |
76 | ||
77 | * interp.c (sim_open): Delete sim_create_inferior call. | |
78 | ||
e9b0081f MF |
79 | 2015-11-15 Mike Frysinger <vapier@gentoo.org> |
80 | ||
81 | * d10v_sim.h (d10v_callback): Delete. | |
82 | * interp.c (d10v_callback): Delete. | |
83 | (do_long, do_2_short, do_parallel, set_dmap_register, | |
84 | set_imap_register, xfer_mem, dmem_addr, imem_addr, sim_info, | |
85 | sim_create_inferior): Replace d10v_callback->printf_filtered | |
86 | with sim_io_printf. | |
87 | (sim_open): Delete d10v_callback assignment. | |
88 | * simops.c (move_to_cr, trace_input_func, do_trace_output_flush, | |
89 | do_trace_output_finish, trace_output_40, trace_output_32, | |
90 | trace_output_16, trace_output_void, trace_output_flag, OP_5F20, | |
91 | OP_5201, OP_27000000, OP_3220, OP_3400, OP_3000, OP_6C1F, OP_6C01, | |
92 | OP_6E1F, OP_6E01): Replace d10v_callback->printf_filtered with | |
93 | sim_io_printf and d10v_callback->flush_stdout with | |
94 | sim_io_flush_stdout. | |
95 | (OP_5F00): Likewise. Rename d10v_callback to cb. | |
96 | ||
aadc1740 MF |
97 | 2015-11-15 Mike Frysinger <vapier@gentoo.org> |
98 | ||
99 | * Makefile.in (SIM_OBJS): Add sim-reason.o, sim-resume.o, and | |
100 | sim-stop.o. | |
101 | * d10v_sim.h (struct d10v_memory): Delete fault member. | |
102 | (struct _state): Delete exception member. | |
103 | * interp.c (lookup_hash): Call sim_engine_halt instead of setting | |
104 | State.exception. | |
105 | (do_2_short, do_parallel): Delete State.exception checks. | |
106 | (sim_size): Mark static. | |
107 | (map_memory): Call sim_engine_halt instead of returning fault. | |
108 | Call xcalloc instead of calloc and checking the return. | |
109 | (dmem_addr): Call sim_engine_halt when phys_size is 0. | |
110 | (imem_addr): Likewise. | |
111 | (stop_simulator, sim_stop, sim_stop_reason): Delete. | |
112 | (sim_resume): Rename to ... | |
113 | (step_once): ... this. Delete State.exception code and move | |
114 | siggnal checking to sim_engine_run. | |
115 | (sim_engine_run): New function. | |
116 | * simops.c (EXCEPTION): Define. | |
117 | (move_to_cr): Call EXCEPTION instead of setting State.exception. | |
118 | (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000, | |
119 | OP_6601, OP_6201, OP_6200, OP_33010000, OP_5201, OP_27000000, | |
120 | OP_2F000000, OP_3220, OP_3200, OP_3400, OP_3000, OP_34000000, | |
121 | OP_6800, OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000, | |
122 | OP_6A00, OP_6E1F, OP_6A01, OP_6E01, OP_37010000, OP_5FE0): Likewise. | |
123 | (OP_5F20): Call sim_engine_halt instead of setting State.exception. | |
124 | (OP_5F00): Call sim_engine_halt and EXCEPTION instead of setting | |
125 | State.exception. | |
126 | ||
67954606 MF |
127 | 2015-11-15 Mike Frysinger <vapier@gentoo.org> |
128 | ||
129 | * d10v_sim.h (struct simops): Add SIM_DESC and SIM_CPU to func args. | |
130 | (SET_CREG, SET_HW_CREG, SET_PSW_BIT): Pass sd and cpu to move_to_cr. | |
131 | (dmem_addr, imem_addr, move_to_cr): Add SIM_DESC and SIM_CPU args. | |
132 | (RB, SW, RW, SLW, RLW): Pass sd and cpu to dmem_addr. | |
133 | * endian.c: Change d10v_sim.h include to sim-main.h. | |
134 | * gencode.c: Likewise. Add SIM_DESC and SIM_CPU args to all OPs. | |
135 | * interp.c (lookup_hash, do_long, do_2_short, do_parallel, | |
136 | map_memory, set_dmap_register, dmap_register, set_imap_register, | |
137 | imap_register, sim_d10v_translate_dmap_addr, xfer_mem, | |
138 | sim_d10v_translate_imap_addr, sim_d10v_translate_addr): Add | |
139 | SIM_DESC and SIM_CPU args and adjust all callers. | |
140 | (trace_sd): Delete. | |
141 | (sim_open): Do not assign trace_sd. | |
142 | (sim_resume, sim_create_inferior, sim_fetch_register, | |
143 | sim_store_register): Set up cpu from the first one in sd. | |
144 | * simops.c (move_to_cr): Add SIM_DESC and SIM_CPU args. | |
145 | (trace_input_func, trace_input, do_trace_output_finish, | |
146 | do_trace_output_finish, trace_output_40, trace_output_32, | |
147 | trace_output_16, trace_output_void, trace_output_flag): Add | |
148 | SIM_DESC arg. | |
149 | (trace_input_func): Likewise. Change trace_sd to sd. | |
150 | (OP_*): Add SIM_DESC and SIM_CPU args to all OP funcs. | |
151 | ||
6e4f085c MF |
152 | 2015-11-14 Mike Frysinger <vapier@gentoo.org> |
153 | ||
154 | * interp.c (sim_close): Delete. | |
155 | ||
6637a426 MF |
156 | 2015-11-10 Mike Frysinger <vapier@gentoo.org> |
157 | ||
158 | * interp.c (sim_d10v_translate_dmap_addr): Mark static. | |
159 | (sim_d10v_translate_imap_addr): Likewise. | |
160 | (sim_d10v_translate_addr): Likewise. | |
161 | ||
8d0978fb MF |
162 | 2015-06-23 Mike Frysinger <vapier@gentoo.org> |
163 | ||
164 | * configure: Regenerate. | |
165 | ||
a3487082 MF |
166 | 2015-06-12 Mike Frysinger <vapier@gentoo.org> |
167 | ||
168 | * configure: Regenerate. | |
169 | ||
306f4178 MF |
170 | 2015-06-12 Mike Frysinger <vapier@gentoo.org> |
171 | ||
172 | * configure: Regenerate. | |
173 | ||
20bca71d MF |
174 | 2015-04-18 Mike Frysinger <vapier@gentoo.org> |
175 | ||
176 | * sim-main.h (SIM_CPU): Delete. | |
177 | ||
7e83aa92 MF |
178 | 2015-04-18 Mike Frysinger <vapier@gentoo.org> |
179 | ||
180 | * sim-main.h (sim_cia): Delete. | |
181 | ||
034685f9 MF |
182 | 2015-04-17 Mike Frysinger <vapier@gentoo.org> |
183 | ||
184 | * sim-main.h (CIA_GET, CIA_SET): Delete. | |
185 | ||
27b97b40 MF |
186 | 2015-04-17 Mike Frysinger <vapier@gentoo.org> |
187 | ||
188 | * interp.c (d10v_pc_get, d10v_pc_set): New functions. | |
189 | (sim_open): Declare new local var i. Call CPU_PC_FETCH & | |
190 | CPU_PC_STORE for all cpus. | |
191 | ||
78e9aa70 MF |
192 | 2015-04-15 Mike Frysinger <vapier@gentoo.org> |
193 | ||
194 | * Makefile.in (SIM_OBJS): Delete sim-cpu.o. | |
195 | * sim-main.h (STATE_CPU): Delete. | |
196 | ||
bf12d44e MF |
197 | 2015-04-13 Mike Frysinger <vapier@gentoo.org> |
198 | ||
199 | * configure: Regenerate. | |
200 | ||
122bbfb5 MF |
201 | 2015-04-06 Mike Frysinger <vapier@gentoo.org> |
202 | ||
203 | * Makefile.in (SIM_OBJS): Delete sim-engine.o. | |
204 | ||
b366059a MF |
205 | 2015-04-02 Mike Frysinger <vapier@gentoo.org> |
206 | ||
207 | * interp.c (lookup_hash): Change SIGILL to GDB_SIGNAL_ILL. | |
208 | (sim_resume): Change SIGBUS/SIGSEGV to GDB_SIGNAL_BUS, SIGILL to | |
209 | GDB_SIGNAL_ILL, and SIGTRAP to GDB_SIGNAL_TRAP. | |
210 | ||
0fe84f3f MF |
211 | 2015-04-01 Mike Frysinger <vapier@gentoo.org> |
212 | ||
213 | * interp.c (sim_set_profile, sim_set_profile_size): Delete. | |
214 | ||
b38f7f34 MF |
215 | 2015-03-31 Mike Frysinger <vapier@gentoo.org> |
216 | ||
217 | * Makefile.in (simops.o): New rule. | |
218 | ||
541ebcee MF |
219 | 2015-03-30 Mike Frysinger <vapier@gentoo.org> |
220 | ||
221 | * d10v_sim.h (text, text_start, text_end, prog_bfd): Delete. | |
222 | (SEXT8, SEXT16, SEXT32, MASK32): Undefine. | |
223 | * interp.c: Delete run-sim.h and d10v_sim.h includes. Include | |
224 | sim-main.h and sim-options.h. | |
225 | (myname, sim_kind, init_text_p, prog_bfd_was_opened_p, prog_bfd, | |
226 | text, text_start, text_end, decode_pc, sim_set_profile, | |
227 | sim_set_profile_size, sim_set_trace, sim_set_callbacks, | |
228 | sim_trace, sim_do_command, sim_load): Delete. | |
229 | (INLINE): Delete define. | |
230 | (free_state): New function. | |
231 | (trace_sd): Declare global variable. | |
232 | (sim_open): Rewrite to use new common logic. | |
233 | (sim_close): Delete body. | |
234 | * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS): Delete. | |
235 | (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS). | |
236 | * sim-main.h: New file. | |
237 | * simops.c: Change d10v_sim.h include to sim-main.h. | |
238 | (trace_input_func): Rewrite pc checks to use trace_sd. | |
239 | ||
a87686e5 MF |
240 | 2015-03-30 Mike Frysinger <vapier@gentoo.org> |
241 | ||
242 | * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DNEED_UI_LOOP_HOOK. | |
243 | * interp.c [NEED_UI_LOOP_HOOK] (UI_LOOP_POLL_INTERVAL, | |
244 | ui_loop_hook_counter, deprecated_ui_loop_hook): Delete. | |
245 | (sim_resume) [NEED_UI_LOOP_HOOK]: Delete ui code. | |
246 | ||
11558abc MF |
247 | 2015-03-30 Mike Frysinger <vapier@gentoo.org> |
248 | ||
249 | * Makefile.in (gencode.o, d10v-opc.o): Add $(WARN_CFLAGS). | |
250 | (gencode): Add $(BUILD_LDFLAGS). | |
251 | * endian.c (get_word, get_longword, get_longlong, write_word, | |
252 | write_longword, write_longlong): Convert old style prototypes. | |
253 | * gencode.c: Include string.h. | |
254 | (main): Convert old style prototype. | |
255 | (write_header): Convert old style prototype and fix printf format. | |
256 | (write_template, write_opcodes): Likewise. | |
257 | (check_opcodes): Mark static void. | |
258 | * interp.c: Include inttypes.h and run-sim.h. | |
259 | (hash, lookup_hash, decode_pc, do_long, do_2_short, do_parallel, | |
260 | add_commas, sim_size, sim_write, sim_read, sim_open, sim_close, | |
261 | sim_set_profile, sim_set_profile_size, sim_stop, +sim_resume, | |
262 | sim_info, sim_set_callbacks, sim_stop_reason, sim_fetch_register, | |
263 | sim_store_register, sim_do_command, sim_load): Convert old style | |
264 | prototypes. | |
265 | (sim_create_inferior): Fix pointer cast to use uintptr_t. | |
266 | * simops.c (strrchr): Delete prototype. | |
267 | (trace_input_func): Mark name static. | |
268 | (trace_input_func, trace_output_void, trace_output_flag): Convert old style | |
269 | prototypes. | |
270 | (OP_*): Convert old style prototypes. | |
271 | ||
ef9535c6 MF |
272 | 2015-03-30 Mike Frysinger <vapier@gentoo.org> |
273 | ||
274 | * Makefile.in (interp.o, simops.o, endian.o, table.o): Delete rules. | |
275 | * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT, | |
276 | SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT, and | |
277 | SIM_AC_OPTION_INLINE. | |
278 | * config.in, configure: Regenerate. | |
279 | * interp.c (sim_trace): Define. | |
280 | ||
ae7d0cac MF |
281 | 2015-03-16 Mike Frysinger <vapier@gentoo.org> |
282 | ||
283 | * config.in, configure: Regenerate. | |
284 | ||
465fb143 MF |
285 | 2015-03-14 Mike Frysinger <vapier@gentoo.org> |
286 | ||
287 | * Makefile.in (SIM_EXTRA_CFLAGS): Add | |
288 | -DSIM_USE_DEPRECATED_RUN_FRONTEND. | |
289 | (SIM_RUN_OBJS): Set to run.o. | |
290 | ||
5cddc23a MF |
291 | 2015-03-14 Mike Frysinger <vapier@gentoo.org> |
292 | ||
293 | * configure.ac (AC_CHECK_HEADERS): Delete. | |
294 | * aclocal.m4, configure: Regenerate. | |
295 | ||
2974be62 AM |
296 | 2014-08-19 Alan Modra <amodra@gmail.com> |
297 | ||
298 | * configure: Regenerate. | |
299 | ||
faa743bb RM |
300 | 2014-08-15 Roland McGrath <mcgrathr@google.com> |
301 | ||
302 | * configure: Regenerate. | |
303 | * config.in: Regenerate. | |
304 | ||
60d847df MF |
305 | 2014-03-10 Mike Frysinger <vapier@gentoo.org> |
306 | ||
307 | * interp.c (sim_do_command): Add const to cmd. | |
308 | ||
b2b255bd MF |
309 | 2014-03-05 Mike Frysinger <vapier@gentoo.org> |
310 | ||
311 | * interp.c (sim_load): Add const to prog. | |
312 | ||
1a8a700e MF |
313 | 2014-03-04 Mike Frysinger <vapier@gentoo.org> |
314 | ||
315 | * configure: Regenerate. | |
316 | ||
bf3d9781 AM |
317 | 2013-09-23 Alan Modra <amodra@gmail.com> |
318 | ||
319 | * configure: Regenerate. | |
320 | ||
31e6ad7d MF |
321 | 2013-06-03 Mike Frysinger <vapier@gentoo.org> |
322 | ||
323 | * aclocal.m4, configure: Regenerate. | |
324 | ||
d3685d60 TT |
325 | 2013-05-10 Freddie Chopin <freddie_chopin@op.pl> |
326 | ||
327 | * configure: Rebuild. | |
328 | ||
d0a5a356 JB |
329 | 2012-06-19 Joel Brobecker <brobecker@adacore.com> |
330 | ||
331 | * interp.c: #include "config.h" instead of "sysdep.h". | |
332 | Add conditional include of string.h or strings.h, as well as | |
333 | conditional include of stdlib.h. | |
334 | ||
5f3ef9d0 JB |
335 | 2012-06-15 Joel Brobecker <brobecker@adacore.com> |
336 | ||
337 | * config.in, configure: Regenerate. | |
338 | ||
a493e3e2 PA |
339 | 2012-05-24 Pedro Alves <palves@redhat.com> |
340 | ||
341 | PR gdb/7205 | |
342 | ||
72f4393d | 343 | Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. |
a493e3e2 | 344 | |
2232061b MF |
345 | 2012-03-24 Mike Frysinger <vapier@gentoo.org> |
346 | ||
347 | * aclocal.m4, config.in, configure: Regenerate. | |
348 | ||
db2e4d67 MF |
349 | 2011-12-03 Mike Frysinger <vapier@gentoo.org> |
350 | ||
351 | * aclocal.m4: New file. | |
352 | * configure: Regenerate. | |
353 | ||
9c082ca8 MF |
354 | 2011-10-17 Mike Frysinger <vapier@gentoo.org> |
355 | ||
356 | * configure.ac: Change include to common/acinclude.m4. | |
357 | ||
6ffe910a MF |
358 | 2011-10-17 Mike Frysinger <vapier@gentoo.org> |
359 | ||
360 | * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER | |
361 | call. Replace common.m4 include with SIM_AC_COMMON. | |
362 | * configure: Regenerate. | |
363 | ||
5558e7e6 MF |
364 | 2010-04-14 Mike Frysinger <vapier@gentoo.org> |
365 | ||
366 | * interp.c (sim_write): Add const to buffer arg. | |
367 | ||
3725885a RW |
368 | 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
369 | ||
370 | * configure: Regenerate. | |
371 | ||
d6416cdc RW |
372 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
373 | ||
81ecdfbb RW |
374 | * config.in: Regenerate. |
375 | * configure: Likewise. | |
376 | ||
d6416cdc RW |
377 | * configure: Regenerate. |
378 | ||
b5bd9624 HPN |
379 | 2008-07-11 Hans-Peter Nilsson <hp@axis.com> |
380 | ||
381 | * configure: Regenerate to track ../common/common.m4 changes. | |
382 | * config.in: Ditto. | |
383 | ||
6efef468 | 384 | 2008-06-06 Vladimir Prus <vladimir@codesourcery.com> |
72f4393d L |
385 | Daniel Jacobowitz <dan@codesourcery.com> |
386 | Joseph Myers <joseph@codesourcery.com> | |
6efef468 JM |
387 | |
388 | * configure: Regenerate. | |
389 | ||
edc5d9ec HPN |
390 | 2006-12-21 Hans-Peter Nilsson <hp@axis.com> |
391 | ||
392 | * acconfig.h: Remove. | |
393 | * config.in: Regenerate. | |
394 | ||
e85e3205 RE |
395 | 2006-06-13 Richard Earnshaw <rearnsha@arm.com> |
396 | ||
397 | * configure: Regenerated. | |
398 | ||
2f0122dc DJ |
399 | 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com> |
400 | ||
401 | * configure: Regenerated. | |
402 | ||
20e95c23 DJ |
403 | 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com> |
404 | ||
405 | * configure: Regenerated. | |
406 | ||
9517c978 NC |
407 | 2006-04-18 Nick Clifton <nickc@redhat.com> |
408 | ||
409 | * interp.c (sim_stop_reason): Fix typo. | |
410 | ||
aba6488e MM |
411 | 2005-11-28 Mark Mitchell <mark@codesourcery.com> |
412 | ||
413 | * interp.c (gdb/signals.h): Include it. | |
414 | (sim_stop_reason): Use TARGET_SIGNAL_*. | |
415 | ||
2b193c4a MK |
416 | 2005-03-23 Mark Kettenis <kettenis@gnu.org> |
417 | ||
418 | * configure: Regenerate. | |
419 | ||
35695fd6 AC |
420 | 2005-01-14 Andrew Cagney <cagney@gnu.org> |
421 | ||
422 | * configure.ac: Sinclude aclocal.m4 before common.m4. Add | |
423 | explicit call to AC_CONFIG_HEADER. | |
424 | * configure: Regenerate. | |
425 | ||
f0569246 AC |
426 | 2005-01-12 Andrew Cagney <cagney@gnu.org> |
427 | ||
428 | * configure.ac: Update to use ../common/common.m4. | |
429 | * configure: Re-generate. | |
430 | ||
38f48d72 AC |
431 | 2005-01-11 Andrew Cagney <cagney@localhost.localdomain> |
432 | ||
433 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
434 | ||
b7026657 AC |
435 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
436 | ||
437 | * configure.ac: Rename configure.in, require autoconf 2.59. | |
438 | * configure: Re-generate. | |
439 | ||
379832de HPN |
440 | 2004-12-08 Hans-Peter Nilsson <hp@axis.com> |
441 | ||
442 | * configure: Regenerate for ../common/aclocal.m4 update. | |
443 | ||
0aaa4a81 AC |
444 | 2004-06-28 Andrew Cagney <cagney@gnu.org> |
445 | ||
446 | * interp.c (sim_resume): Rename ui_loop_hook to | |
447 | deprecated_ui_loop_hook. | |
448 | ||
fc0a2244 AC |
449 | 2003-10-30 Andrew Cagney <cagney@redhat.com> |
450 | ||
451 | * simops.c: Replace "struct symbol_cache_entry" with "struct | |
452 | bfd_symbol". | |
453 | ||
ea086965 AC |
454 | 2003-06-22 Andrew Cagney <cagney@redhat.com> |
455 | ||
456 | * interp.c (xfer_mem): Simplify. Only do a single partial | |
457 | transfer. Problem reported by Tom Rix. | |
458 | ||
f6684c31 AC |
459 | 2003-05-07 Andrew Cagney <cagney@redhat.com> |
460 | ||
461 | * interp.c (sim_d10v_translate_addr): Add "regcache" parameter. | |
462 | (sim_d10v_translate_imap_addr): Ditto. | |
463 | (sim_d10v_translate_dmap_addr): Ditto. | |
464 | (xfer_mem): Pass NULL regcache to sim_d10v_translate_addr. | |
465 | (dmem_addr): Pass NULL regcache to sim_d10v_translate_dmap_addr. | |
466 | (dmap_register, imap_register): Add "regcache" parameter. | |
467 | (imem_addr): Pass NULL regcache to sim_d10v_translate_imap_addr. | |
468 | (sim_fetch_register): Pass NULL regcache to imap_register and | |
469 | dmap_register. | |
470 | ||
6b4a8935 AC |
471 | 2003-02-27 Andrew Cagney <cagney@redhat.com> |
472 | ||
473 | * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd. | |
474 | ||
d25b1553 AC |
475 | 2002-11-13 Andrew Cagney <cagney@redhat.com> |
476 | ||
477 | * simops.c: Include <string.h>. | |
478 | ||
57af9c8b AC |
479 | 2002-06-17 Andrew Cagney <cagney@redhat.com> |
480 | ||
481 | * d10v_sim.h (SET_PSW_BIT): Add cast to avoid inverting an enum. | |
482 | ||
c8cca39f AC |
483 | 2002-06-16 Andrew Cagney <ac131313@redhat.com> |
484 | ||
485 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
486 | ||
3d2957e6 TR |
487 | 2002-06-13 Tom Rix <trix@redhat.com> |
488 | ||
489 | * interp.c (xfer_mem): Fix transfers across multiple segments. | |
72f4393d | 490 | |
3c25f8c7 AC |
491 | 2002-06-09 Andrew Cagney <cagney@redhat.com> |
492 | ||
493 | * Makefile.in (INCLUDE): Update path to callback.h. | |
494 | * gencode.c: Do not include "callback.h". | |
495 | * d10v_sim.h: Include "gdb/callback.h" and "gdb/remote-sim.h". | |
496 | * interp.c: Ditto. | |
497 | ||
983b727e AC |
498 | 2002-06-08 Andrew Cagney <cagney@redhat.com> |
499 | ||
500 | * interp.c (sim_fetch_register): Fix name of enum used in cast. | |
501 | (sim_store_register): Ditto. | |
502 | ||
676ab6a0 | 503 | 2002-06-02 Elena Zannoni <ezannoni@redhat.com> |
c7675842 | 504 | |
72f4393d L |
505 | From Jason Eckhardt <jle@redhat.com> |
506 | * d10v_sim.h (INC_ADDR): Correctly handle the case where MOD_E is | |
507 | less than MOD_S (post-decrement). | |
c7675842 | 508 | |
18c0df9e AC |
509 | 2002-06-01 Andrew Cagney <ac131313@redhat.com> |
510 | ||
511 | * interp.c (sim_fetch_register, sim_store_register): Use a switch | |
512 | statement and enums from "sim-d10v.h". | |
513 | ||
1aa5e64f EZ |
514 | 2002-05-28 Elena Zannoni <ezannoni@redhat.com> |
515 | ||
516 | * interp.c (sim_create_inferior): Add comment. | |
517 | ||
518 | From Alan Matsuoka <alanm@redhat.com>: | |
519 | From 2001-04-27 Jason Eckhardt <jle@cygnus.com>: | |
520 | * simops.c (OP_4400): Output "mvf0f" instead of "mf0f". | |
521 | (OP_4401): Output "mvf0t" instead of "mf0t". | |
522 | (OP_460B): Do not output a flag register. | |
523 | (OP_4609): Do not output a flag register. | |
524 | ||
b91b96f4 AC |
525 | 2002-05-23 Andrew Cagney <ac131313@redhat.com> |
526 | ||
527 | * Makefile.in (INCLUDE): Add "gdb/sim-d10v.h". | |
528 | * interp.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h". | |
529 | ||
962b3ead JM |
530 | 2001-08-01 John R. Moore <jmoore@redhat.com> |
531 | ||
532 | * interp.c (sim_create_inferior): Removed a hack that stated | |
533 | it was setting r0/r1 with argc/argv. | |
534 | ||
d4424ada C |
535 | 2001-04-15 J.T. Conklin <jtc@redback.com> |
536 | ||
537 | * Makefile.in (simops.o): Add simops.h to dependency list. | |
538 | ||
eb2d80b4 AC |
539 | Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com> |
540 | ||
541 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
542 | ||
27842f65 AC |
543 | Tue Apr 18 16:26:41 2000 Andrew Cagney <cagney@b1.cygnus.com> |
544 | ||
545 | * interp.c (sim_resume): Deliver SIGILL. | |
546 | (lookup_hash): Do not print SIGILL message. | |
547 | ||
baa7ae6f AC |
548 | Tue Feb 22 18:24:56 2000 Andrew Cagney <cagney@b1.cygnus.com> |
549 | ||
550 | * Makefile.in (SIM_EXTRA_CFLAGS): Define SIM_HAVE_ENVIRONMENT. | |
551 | * interp.c (sim_set_trace): Replace sim_trace. Enable tracing. | |
552 | ||
ba744a4f AC |
553 | Tue Feb 8 17:41:12 2000 Andrew Cagney <cagney@b1.cygnus.com> |
554 | ||
555 | * d10v_sim.h (SIG_D10V_BUS): Define. | |
556 | ||
557 | * simops.c (address_exception): Delete function. | |
558 | (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000, | |
559 | OP_6601, OP_6201, OP_6200, OP_33010000, OP_34000000, OP_6800, | |
560 | OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000, OP_6A00, | |
561 | OP_6E1F, OP_6A01, OP_6E01, OP_37010000): Replace call to | |
562 | address_exception with code that sets SIG_D10V_BUS. | |
563 | ||
564 | * interp.c (sim_resume): When SIGBUS or SIGSEGV, deliver a bus | |
565 | error to the simulator before resuming execution. | |
566 | (sim_trace): Check stop reason and use that to determine sim_trace | |
567 | return value. | |
568 | (sim_stop_reason): For SIG_D10V_BUS return a SIGBUS / SIGSEGV | |
569 | sigrc. | |
570 | ||
571 | Tue Jan 18 16:07:42 MST 2000 Diego Novillo <dnovillo@cygnus.com> | |
572 | ||
573 | * interp.c (sim_create_inferior): Change internal initial value for | |
574 | DMAP2 to 0x2000. | |
575 | ||
c3f6f71d JM |
576 | Mon Jan 3 02:06:07 2000 Andrew Cagney <cagney@b1.cygnus.com> |
577 | ||
578 | * interp.c (lookup_hash): Stop the update of the PC when there was | |
579 | an illegal instruction exception. | |
580 | ||
581 | Mon Jan 3 00:14:33 2000 Andrew Cagney <cagney@b1.cygnus.com> | |
582 | ||
583 | * simops.c (address_exception): New function. | |
584 | (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000, | |
585 | OP_6601, OP_6201, OP_6200, OP_33010000, OP_34000000, OP_6800, | |
586 | OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000, OP_6A00, | |
587 | OP_6E1F, OP_6A01, OP_6E01, OP_37010000): For "ld", "ld2w", "st" | |
588 | and "st2w" check that the address is aligned. | |
589 | ||
8ae7f924 | 590 | 1999-12-30 Chandra Chavva <cchavva@cygnus.com> |
72f4393d | 591 | |
8ae7f924 FCE |
592 | * d10v_sim.h (INC_ADDR): Added code to assign |
593 | proper address for loads with predec operations. | |
594 | ||
c2d11a7d JM |
595 | 1999-11-25 Nick Clifton <nickc@cygnus.com> |
596 | ||
597 | * simops.c (OP_4E0F): New function: Simulate new bit pattern for | |
598 | cpfg instruction. | |
599 | ||
4ce44c66 JM |
600 | Fri Oct 29 18:34:28 1999 Andrew Cagney <cagney@b1.cygnus.com> |
601 | ||
602 | * simops.c (move_to_cr): Don't allow user to set PSW.DM in either | |
603 | DPSW and BPSW. | |
604 | ||
605 | Thu Oct 28 01:26:18 1999 Andrew Cagney <cagney@b1.cygnus.com> | |
606 | ||
607 | * simops.c (OP_5F20): Use SET_HW_PSW when updating PSW. | |
608 | (PSW_HW_MASK): Declare. | |
609 | ||
610 | * d10v_sim.h (move_to_cr): Add ``psw_hw_p'' parameter. | |
611 | (SET_CREG, SET_PSW_BIT): Update. | |
612 | (SET_HW_CREG, SET_HW_PSW): Define. | |
613 | ||
614 | Sun Oct 24 21:38:04 1999 Andrew Cagney <cagney@b1.cygnus.com> | |
615 | ||
616 | * interp.c (sim_d10v_translate_dmap_addr): Fix extraction of IOSP | |
617 | for DMAP3. | |
618 | ||
619 | Sun Oct 24 16:04:16 1999 Andrew Cagney <cagney@b1.cygnus.com> | |
620 | ||
621 | * interp.c (sim_d10v_translate_addr): New function. | |
622 | (xfer_mem): Rewrite. Use sim_d10v_translate_addr. | |
623 | (map_memory): Make INLINE. | |
624 | ||
625 | Sun Oct 24 13:45:19 1999 Andrew Cagney <cagney@b1.cygnus.com> | |
626 | ||
627 | * interp.c (sim_d10v_translate_dmap_addr): New function. | |
628 | (dmem_addr): Rewrite. Use sim_d10v_translate_dmap_addr. Change | |
629 | offset parameter to type uint16. | |
630 | * d10v_sim.h (dmem_addr): Update declaration. | |
631 | ||
632 | Sun Oct 24 13:07:31 1999 Andrew Cagney <cagney@b1.cygnus.com> | |
633 | ||
634 | * interp.c (imap_register, set_imap_register, dmap_register, | |
635 | set_imap_register): Use map_memory. | |
636 | (DMAP): Update. | |
637 | (sim_create_inferior): Initialize all DMAP registers. NOTE that | |
638 | DMAP2, in internal memory mode, is set to 0x0000 and NOT | |
639 | 0x2000. This is consistent with the older d10v boards. | |
640 | ||
641 | Sun Oct 24 11:22:12 1999 Andrew Cagney <cagney@b1.cygnus.com> | |
642 | ||
643 | * interp.c (sim_d10v_translate_imap_addr): New function. | |
644 | (imem_addr): Rewrite. Use sim_d10v_translate_imap_addr. | |
645 | (last_from, last_to): Declare. | |
646 | ||
647 | Sun Oct 24 01:21:56 1999 Andrew Cagney <cagney@b1.cygnus.com> | |
648 | ||
649 | * d10v_sim.h (struct d10v_memory): Define. Support very long | |
650 | memories. | |
651 | (struct _state): Replace imem, dmem and umem by mem. | |
652 | (IMAP_BLOCK_SIZE, DMAP_BLOCK_SIZE, SEGMENT_SIZE, IMEM_SEGMENTS, | |
653 | DMEM_SEGMENTS, UMEM_SEGMENTS): Define. | |
654 | ||
655 | * interp.c (map_memory): New function. | |
656 | (sim_size, xfer_memory, imem_addr, dmem_addr): Update. | |
657 | (UMEM_SEGMENTS): Moveed to "d10v_sim.h". | |
658 | (IMEM_SIZEDMEM_SIZE): Delete. | |
659 | ||
660 | Sat Oct 23 20:06:58 1999 Andrew Cagney <cagney@b1.cygnus.com> | |
661 | ||
662 | * interp.c: Include "sim-d10v.h". | |
663 | (imap_register, set_imap_register, dmap_register, | |
664 | set_dmap_register, spi_register, spu_register, set_spi_register, | |
665 | set_spu_register): New functions. | |
666 | (sim_create_inferior): Update. | |
667 | (sim_fetch_register, sim_store_register): Rewrite. Use enums | |
668 | defined in sim-d10v.h. | |
669 | ||
670 | * d10v_sim.h (DEBUG_MEMORY): Define. | |
671 | (IMAP0, IMAP1, DMAP, SET_IMAP0, SET_IMAP1, SET_DMAP): Delete. | |
72f4393d | 672 | |
4ce44c66 JM |
673 | Sat Oct 23 18:41:18 1999 Andrew Cagney <cagney@b1.cygnus.com> |
674 | ||
675 | * interp.c (sim_open): Allow a debug value to be passed to the -t | |
676 | option. | |
677 | (lookup_hash): Don't exit on an illegal instruction. | |
678 | (do_long, do_2_short, do_parallel): Check for failed instruction | |
679 | lookup. | |
680 | ||
5c44784c JM |
681 | Mon Oct 18 18:03:24 MDT 1999 Diego Novillo <dnovillo@cygnus.com> |
682 | ||
683 | * simops.c (OP_3220): Fix trace output for illegal accumulator | |
4ce44c66 | 684 | message. |
5c44784c | 685 | |
c2c6d25f JM |
686 | 1999-09-14 Nick Clifton <nickc@cygnus.com> |
687 | ||
688 | * simops.c: Disable setting of DM bit in PSW. | |
689 | ||
cff3e48b JM |
690 | Wed Sep 8 19:34:55 MDT 1999 Diego Novillo <dnovillo@cygnus.com> |
691 | ||
692 | * simops.c (op_types): Added new memory indirect type OP_MEMREF3. | |
693 | (trace_input_func): Added support for OP_MEMREF3. | |
694 | (OP_32010000): New instruction ld. | |
695 | (OP_33010000): New instruction ld2w. | |
696 | (OP_5209): New instruction sac. | |
697 | (OP_4209): New instruction sachi. | |
698 | (OP_3220): New instruction slae. | |
699 | (OP_36010000): New instruction st. | |
700 | (OP_37010000): New instruction st2w. | |
701 | ||
702 | 1999-09-09 Stan Shebs <shebs@andros.cygnus.com> | |
703 | ||
704 | * interp.c (old_segment_mapping): New global. | |
705 | (xfer_mem): Change the default segment mapping to be the way | |
706 | that Mitsubishi prefers, but use the previous mapping if | |
707 | old_segment_mapping is true. | |
708 | (sim_open): Add an option -oldseg to get the old mapping. | |
709 | (sim_create_inferior): Init mapping registers based on the | |
710 | value of old_segment_mapping. | |
711 | ||
d4f3574e SS |
712 | 1999-09-07 Nick Clifton <nickc@cygnus.com> |
713 | ||
714 | * simops.c (OP_6601): Do not write back decremented address if | |
715 | either of the destination registers was the same as the address | |
72f4393d | 716 | register. |
d4f3574e | 717 | (OP_6201): Do not write back incremented address if either of the |
72f4393d | 718 | destination registers was the same as the address register. |
d4f3574e SS |
719 | |
720 | Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com> | |
721 | ||
722 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
723 | ||
cd0fc7c3 SS |
724 | 1999-05-08 Felix Lee <flee@cygnus.com> |
725 | ||
726 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
72f4393d | 727 | |
7a292a7a SS |
728 | 1999-04-02 Keith Seitz <keiths@cygnus.com> |
729 | ||
730 | * interp.c (ui_loop_hook_counter): New global (when NEED_UI_LOOP_HOOK | |
731 | defined). | |
732 | (sim_resume): If the counter has expired, call the ui_loop_hook, | |
733 | if defined. | |
734 | (UI_LOOP_POLL_INTERVAL): Define. Used to tweak the frequency of | |
735 | ui_loop_hook calls. | |
736 | * Makefile.in (SIM_EXTRA_CFLAGS): Include NEED_UI_LOOP_HOOK. | |
737 | ||
738 | Wed Mar 10 19:32:13 1999 Nick Clifton <nickc@cygnus.com> | |
739 | ||
740 | * simops.c: If load instruction with auto increment/decrement | |
741 | addressing is used when the destination register is the same as | |
742 | the address register, then ignore the auto increment/decrement. | |
743 | ||
744 | Wed Mar 10 19:32:13 1999 Martin M. Hunt <hunt@cygnus.com> | |
745 | ||
746 | * simops.c (OP_5F00): Ifdef SYS_stat case because | |
747 | not all systems have it defined. | |
748 | ||
c906108c SS |
749 | 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com) |
750 | ||
751 | * simops.c (OP_5607): Correct saturation comparison/assignment. | |
72f4393d L |
752 | (OP_1201, OP_1203, OP_17001200, OP_17001202, |
753 | OP_2A00, OP_2800, OP_2C00, OP_3200, OP_3201, | |
754 | OP_1001, OP_1003, OP_17001000, OP_17001002): Ditto. | |
c906108c SS |
755 | |
756 | 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com) | |
757 | ||
758 | * simops.c (OP_5605): Sign extend MIN32 and MAX32 before saturation | |
72f4393d | 759 | comparison. |
c906108c SS |
760 | (OP_5607): Ditto. |
761 | (OP_2A00): Ditto. | |
762 | (OP_2800): Ditto. | |
763 | ||
764 | 1999-01-13 Jason Molenda (jsm@bugshack.cygnus.com) | |
765 | ||
766 | * simops.c (OP_1223): Sign extend MIN32 and MAX32 before saturation | |
767 | comparison. | |
768 | ||
769 | Tue Nov 24 17:04:43 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
770 | ||
771 | * simops.c (sys/syscall.h): Include targ-vals.h instead. | |
772 | (SYS_*): Replace with TARGET_SYS_*. | |
773 | ||
774 | * Makefile.in: Add dependency on targ-vals.h. | |
775 | (NL_TARGET): Define as NL_TARGET_d10v. | |
776 | ||
777 | Wed Sep 30 00:06:32 1998 Andrew Cagney <cagney@amy.cygnus.com> | |
778 | ||
779 | * interp.c (xfer_mem): Missing break, instruction memory case | |
780 | flowed into unified memory case. | |
781 | ||
782 | Wed Sep 30 10:14:18 1998 Nick Clifton <nickc@cygnus.com> | |
783 | ||
784 | * simops.c: If load instruction with auto increment/decrement | |
785 | addressing is used when the destination register is the same as | |
786 | the address register, then ignore the auto increment/decrement. | |
787 | ||
788 | Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com> | |
789 | ||
72f4393d | 790 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
c906108c SS |
791 | |
792 | Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche> | |
793 | ||
794 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
795 | * config.in: Ditto. | |
796 | ||
797 | Sun Apr 26 15:20:23 1998 Tom Tromey <tromey@cygnus.com> | |
798 | ||
799 | * acconfig.h: New file. | |
800 | * configure.in: Reverted change of Apr 24; use sinclude again. | |
801 | ||
802 | Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche> | |
803 | ||
804 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
805 | * config.in: Ditto. | |
806 | ||
807 | Fri Apr 24 11:20:06 1998 Tom Tromey <tromey@cygnus.com> | |
808 | ||
809 | * configure.in: Don't call sinclude. | |
810 | ||
811 | Fri Apr 24 11:04:46 1998 Andrew Cagney <cagney@chook.cygnus.com> | |
812 | ||
813 | * interp.c (struct hash_entry): OPCODE and MASK are unsigned. | |
814 | ||
815 | * d10v_sim.h (remote-sim.h, sim-config.h): Include. | |
72f4393d | 816 | |
c906108c SS |
817 | Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com> |
818 | ||
819 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
820 | ||
821 | Wed Apr 1 12:59:17 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
822 | ||
823 | * simops.c (trace_input_func): Use move_from_cr / CREGS to obtain | |
824 | up-to-date CR value. | |
825 | (OP_OP_1000000, add3): Trace inputs before performing add. | |
826 | (OP_5F00, <*>): Trace input registers before making system call. | |
827 | (OP_5F00, <kill>): Trace R0, R1 not REGn. | |
828 | (OP_5F00, <getpid>): Always return 47. | |
72f4393d | 829 | |
c906108c SS |
830 | * d10v_sim.h (SLOT, SLOT_NR, SLOT_PEND_MASK, SLOT_PEND, |
831 | SLOT_DISCARD, SLOT_FLUSH): Define. An implementation of write | |
832 | back slots. | |
833 | (struct _state): Add struct slot slot to global state variable. | |
834 | (struct _state): Delete fields SM, EA, DB, DM, IE, RP, MD, FX, ST, | |
835 | F0, F1, C from global State variable. | |
836 | (struct _state): Add struct trace to global State variable. | |
837 | (GPR, SET_GPR): Define. SET_GPR uses SLOT_PEND. | |
838 | (PSW*, SET_PSW*): Define. SET_PSW* uses SET_CREG. | |
839 | (CREG, SET_CREG, SET_*): Define. SET_CREG uses func move_to_cr. | |
840 | (INC_ADDR): Re-implement. Use SET_GPR to update registers. | |
841 | (JMP): Re-implement. Use SET_* to update registers. | |
842 | ||
843 | * interp.c: Use new SET_* et.al. macros to fetch / store | |
844 | registers. | |
845 | (get_operands): Squirrel away trace values at start of each | |
846 | operand decode. | |
847 | (do_2_short): Flush pending writes before issuing second | |
848 | instruction. | |
849 | (sim_resume): Flush pending writes at end of instruction cycle. | |
850 | (sim_fetch_register, sim_store_register, sim_create_inferior): | |
851 | After scheduling updates to registers using SET_*, flush updates. | |
852 | (sim_resume): Re-order handling of RPT/repeat and IBA/hbreak so | |
853 | that each sets pc using SET_* and last SET_* eventually winds out. | |
72f4393d | 854 | |
c906108c SS |
855 | * simops.c: Use new SET_* et.al. macros to fetch / store |
856 | registers. | |
857 | (move_to_cr): Add MASK argument for selective update of CREG bits. | |
858 | Re-implement using new SET_* macros. | |
859 | (trace_output_func, trace_output): Delete. Replace with. | |
860 | (do_trace_output_flush, trace_output_finish, trace_output_40, | |
861 | trace_output_32, trace_output_16, trace_output_void, | |
862 | trace_output_flag): New functions. Handle specific trace cases. | |
863 | (OP_*): Re-write tracing to use new trace_output_* functions. | |
864 | (OP_*): Re-write to use new SET_* et.al. macros. | |
865 | (FUNC, PARM[1-4], RETVAL, RETVAL32): Redo definition. | |
866 | (RETVAL_HIGH, RETVAL_LOW): Delete, use RETVAL32. | |
72f4393d | 867 | |
c906108c SS |
868 | Wed Apr 1 12:55:18 1998 Andrew Cagney <cagney@b1.cygnus.com> |
869 | ||
870 | * configure.in (SIM_AC_OPTION_WARNINGS): Add. | |
871 | configure: Re-generate. | |
872 | ||
873 | Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
874 | ||
875 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
876 | ||
877 | Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
878 | ||
879 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
880 | ||
881 | Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
882 | ||
883 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
884 | ||
885 | Tue Feb 17 12:38:42 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
886 | ||
887 | * interp.c (sim_store_register, sim_fetch_register): Pass in | |
888 | length parameter. Return -1. | |
889 | ||
890 | Mon Oct 27 14:43:33 1997 Fred Fish <fnf@cygnus.com> | |
891 | ||
892 | * (dmem_addr): If address is illegal or in I/O space, signal a bus | |
893 | error. Allocate unified memory on demand. Fix DMEM address | |
894 | calculations. | |
72f4393d | 895 | |
c906108c SS |
896 | Mon Feb 16 10:27:53 1998 Andrew Cagney <cagney@b1.cygnus.com> |
897 | ||
898 | * simops.c (OP_5F20): Implement "dbt". | |
899 | (OP_5F60): Implement "rtd". | |
900 | ||
901 | * d10v_sim.h (DPC_CR): Define enum. | |
902 | (DBT_VECTOR_START): Define | |
903 | (DPSW, DPC): Define. | |
904 | ||
905 | Fri Feb 13 15:15:58 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
906 | ||
907 | * simops.c (move_to_cr): Sync regs[SP_IDX] with State.sp according | |
908 | to PSW:SM. | |
909 | ||
910 | * d10v_sim.h (struct _state): Add sp, as holding area for SPI/SPU. | |
911 | (SP_IDX): Define. | |
912 | ||
913 | Wed Feb 11 16:53:49 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
914 | ||
915 | * simops.c (OP_5F00): Call error instead of abort for unknown | |
916 | syscalls. | |
917 | ||
918 | * d10v_sim.h (enum): Define DPSW_CR. | |
919 | ||
920 | * simops.c (move_to_cr): Mask out hardwired zero bits in DPSW. | |
921 | ||
922 | Tue Feb 10 18:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
923 | ||
924 | * interp.c (sim_write_phys): Delete. | |
925 | (sim_load): Call sim_load_file with sim_write and LMA. | |
926 | ||
927 | Mon Feb 9 12:05:01 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
928 | ||
929 | * interp.c: Rewrite xfer_mem so that it translates addresses as - | |
930 | 0x00... - DMAP translated memory, 0x01... IMAP translated memory, | |
931 | 0x10... - on-chip data, 0x11... - on-chip insn, 0x12... - unified | |
932 | memory. | |
933 | (pc_addr): Delete. | |
934 | (imem_addr): New function - translate IMEM address. | |
935 | (sim_resume): Use imem_addr to translate insn address, abort if | |
936 | translation failed. | |
937 | (sim_create_inferior): Write ARGV to memory using sim_write. Pass | |
938 | argc/argv using r0/r1 not r2/r3. | |
939 | (sim_size): Do not initialize IMAP/DMAP here. | |
940 | (sim_open): Call sim_create_inferior and sim_size to initialize | |
941 | the system. | |
942 | (sim_create_inferior): Initialize IMAP/DMAP to hardware reset | |
943 | defaults. | |
944 | (init_system): Delete. | |
945 | (xfer_mem, sim_fetch_register, sim_store_register): Do not call | |
946 | init_system. | |
947 | (decode_pc): Check prog_bfd is defined before looking up .text | |
948 | section. | |
949 | ||
950 | Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
951 | ||
952 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
953 | ||
954 | Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
955 | ||
956 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
957 | ||
958 | Sun Jan 25 22:23:01 1998 Michael Meissner <meissner@cygnus.com> | |
959 | ||
960 | * interp.c (sim_stop_reason): Exit status is now in r0, not r2. | |
961 | ||
962 | Sat Jan 24 19:00:30 1998 Michael Meissner <meissner@cygnus.com> | |
963 | ||
964 | * d10v_sim.h (DEBUG_TRAP): New debug flag. | |
965 | ||
966 | * simops.c (OP_5F00): If DEBUG_TRAP is on, turn traps 0-14 into | |
967 | printing the registers. | |
968 | ||
969 | Thu Jan 22 17:54:01 1998 Michael Meissner <meissner@cygnus.com> | |
970 | ||
971 | * simops.c (op_types): New ABI, args are r0..r3, system call # is | |
972 | in r4. | |
973 | (trace_{in,out}put_func): Ditto. | |
974 | (OP_4900): Ditto. | |
975 | (OP_24800000): Ditto. | |
976 | (OP_4D00): Ditto. | |
977 | (OP_5F00): Ditto. | |
978 | ||
979 | Thu Jan 22 14:30:36 1998 Fred Fish <fnf@cygnus.com> | |
980 | ||
981 | * interp.c (UMEM_SEGMENTS): New define, set to 128. | |
982 | (sim_size): Use UMEM_SEGMENTS rather than hardwired constant. | |
983 | (sim_close): Reset prog_bfd to NULL after closing it. Also | |
984 | reset prog_bfd_was_opened_p after closing prog_bfd. | |
985 | (sim_load): Reset prog_bfd_was_opened_p after closing prog_bfd. | |
986 | (sim_create_inferior): Get start address from abfd not prog_bfd. | |
987 | (xfer_mem): Do bounds checking on addresses and return zero length | |
988 | read/write on bad addresses, rather than aborting. Prepare to | |
989 | be able to handle xfers that cross segment boundaries, but not | |
990 | yet implemented. Only emit debug message when d10v_debug is | |
991 | set as well as DEBUG being defined. | |
992 | ||
993 | Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba> | |
994 | ||
995 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
996 | ||
997 | Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
998 | ||
999 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1000 | * config.in: Ditto. | |
1001 | ||
1002 | Tue Dec 9 10:28:31 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1003 | ||
1004 | * d10v_sim.h (RPT_S): Index cregs with RPT_S_CR not RPT_E_CR. | |
1005 | (BPSW): Ditto for BPSW_CR and not PSW_CR. | |
1006 | ||
1007 | * simops.c (OP_5F40): JMP to BPC instead of assigning PC directly. | |
72f4393d | 1008 | |
c906108c SS |
1009 | Mon Dec 8 12:58:33 1997 Andrew Cagney <cagney@b1.cygnus.com> |
1010 | ||
1011 | * simops.c (OP_5F00): From Martin Hunt <hunt@cygnus.com>. Change | |
1012 | reserved trap from 0 to 15. Add trap emulation code for 0-14. | |
1013 | ||
1014 | * interp.c (sim_resume): From Martin Hunt <hunt@cygnus.com>. Check | |
1015 | IBA for SDBT. | |
1016 | ||
1017 | * d10v_sim.h (AE_VECTOR_START, RIE_VECTOR_START, | |
1018 | SDBT_VECTOR_START, TRAP_VECTOR_START): Define. | |
72f4393d | 1019 | |
c906108c SS |
1020 | * simops.c (OP_5F00): For "trap", mask out all but SM bit in PSW, |
1021 | use move_to_cr. | |
1022 | (OP_5F00): For "trap", update BPSW with move_to_cr. | |
1023 | ||
1024 | Fri Dec 5 15:31:17 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1025 | ||
1026 | * d10v_sim.h (enum): Enumerate CR register names. | |
1027 | (enum): Enumerate PSW bit values. | |
1028 | (PSW): Obtain value uing move_from_cr. | |
1029 | (MOD_S, MOD_E, BPSW): Make r-values. | |
1030 | (move_from_cr, move_to_cr): Declare functions. | |
72f4393d | 1031 | |
c906108c SS |
1032 | * interp.c (sim_fetch_register, sim_store_register): Use |
1033 | move_from_cr and move_to_cr for CR register transfers. | |
1034 | ||
1035 | * simops.c (move_from_cr, move_to_cr): New functions. | |
1036 | (OP_5F40): Move BPSW to PSW using move_to_cr and move_from_cr. | |
1037 | (OP_5600): For "mvtc", use function move_to_cr. | |
1038 | (OP_5200): For "mvfc", use function move_from_cr. | |
1039 | ||
1040 | Fri Dec 5 13:33:14 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1041 | ||
1042 | * simops.c (OP_5600): For "mvtc" MOD_E and MOD_S, ensure that the | |
1043 | LSbit is zero. | |
1044 | ||
1045 | Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com> | |
1046 | ||
1047 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1048 | ||
1049 | Thu Dec 4 16:51:02 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1050 | ||
1051 | * d10v_sim.h (struct _state): Add DM - PSW debug mask. | |
1052 | ||
1053 | * simops.c (OP_5600): For "mvtc", save PSW.DM. | |
1054 | (OP_5200): Ditto for "mvfc". | |
1055 | ||
1056 | Wed Dec 3 17:27:06 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1057 | ||
1058 | * d10v_sim.h (SEXT56): Define. | |
1059 | ||
1060 | * simops.c (OP_4201): For "rac", sign extend 56 bit value before | |
1061 | it is shifted. | |
1062 | ||
1063 | * d10v_sim.h (MAX32, MIN32, MASK32, MASK40): Re-define using | |
1064 | SIGNED64 macro. | |
1065 | ||
1066 | Tue Dec 2 15:38:34 1997 Fred Fish <fnf@cygnus.com> | |
1067 | ||
1068 | * interp.c (sim_resume): Call do_2_short with LEFT_FIRST or | |
1069 | RIGHT_FIRST, as appropriate, instead of hardcoded ints that | |
1070 | don't match enum values. | |
1071 | ||
1072 | Tue Dec 2 15:01:08 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1073 | ||
1074 | * simops.c (OP_3A00): For "macu", perform multiply stage using 32 | |
1075 | bit rather than 16 bit precision. | |
1076 | (OP_3C00): For "mulxu", store unsigned product in ACC. | |
1077 | (OP_3800): For "msbu", subtract unsigned product from ACC, | |
1078 | (OP_0): For "sub", compute carry by comparing inputs. | |
1079 | ||
1080 | Tue Dec 2 11:04:37 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1081 | ||
1082 | * simops.c (OP_1000): For "sub2w", compute carry by comparing | |
1083 | inputs. | |
1084 | ||
1085 | Mon Nov 17 20:57:21 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1086 | ||
1087 | * simops.c (OP_1): Use 32 bit unsigned arithmetic for subtract, | |
1088 | carry indicated by value > 0xffff. | |
1089 | ||
1090 | Fri Nov 14 12:51:20 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1091 | ||
1092 | * interp.c (sim_resume): Don't set up SIGINT handler using signal, | |
1093 | handled by client. | |
1094 | (sim_resume): Fix race condition of a direct assignment to | |
1095 | stop_simulator, conditionally call sim_stop. | |
1096 | (sim_stop_reason): Check stop_simulator returning SIGINT. Clear | |
1097 | stop_simulator ready for next sim_resume call. | |
1098 | (sim_ctrl_c): Delete function. | |
1099 | ||
1100 | Thu Nov 13 19:29:34 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1101 | ||
1102 | * interp.c (sim_resume): For "REP", only check/update the PC when | |
1103 | a branch instruction has not been executed. | |
1104 | ||
1105 | Mon Nov 10 17:50:18 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1106 | ||
1107 | * simops.c (OP_4201): "rachi". Sign extend bit 40 of ACC. Sign | |
1108 | extend bit 44 all constants. | |
1109 | (OP_4201): Replace GCC specific 0x..LL with SIGNED64 macro. | |
72f4393d | 1110 | |
c906108c SS |
1111 | Fri Oct 24 10:26:29 1997 Andrew Cagney <cagney@b1.cygnus.com> |
1112 | ||
1113 | * d10v_sim.h: Include sim-types.h. | |
1114 | (uint8, in816, uiny16, int32, uint32, int64, uint64): Typedef | |
1115 | using unsigned8 et.al. from sim-types.h. | |
1116 | (SEXT32, SEXT40, SEXT44, SEXT60): Replace GCC specific 0x..LL with | |
1117 | SIGNED64 macro. | |
1118 | ||
1119 | Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1120 | ||
1121 | * interp.c (sim_write_phys): New function, write to physical | |
1122 | instead of virtual memory. | |
72f4393d | 1123 | |
c906108c SS |
1124 | * interp.c (sim_load): Pass lma_p and sim_write_phys to |
1125 | sim_load_file. | |
1126 | ||
1127 | Mon Oct 13 10:55:07 1997 Fred Fish <cygnus.com> | |
1128 | ||
1129 | * simops.c (OP_6A01): Change OP_POSTDEC to OP_POSTINC and move | |
1130 | exception generation code to OP_6E01. | |
1131 | (OP_6E01): Change OP_POSTINC to OP_POSTDEC and insert exception | |
1132 | generation code. | |
1133 | ||
1134 | Sat Oct 11 09:02:08 1997 Fred Fish <fnf@cygnus.com> | |
1135 | ||
1136 | * simops.c (OP_6401): postdecrement on r15 is OK, remove exception. | |
1137 | (OP_6601): Ditto. | |
1138 | ||
1139 | Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1140 | ||
1141 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1142 | ||
1143 | Sat Sep 27 12:51:34 1997 Fred Fish <fnf@cygnus.com> | |
1144 | ||
1145 | * interp.c (pc_addr): Discard upper bit(s) of PC in case | |
1146 | IMAP1 selects unified memory. | |
1147 | * d10v_sim.h (INC_ADDR): Align MOD_E to increment before testing | |
1148 | for end condition. | |
1149 | ||
1150 | Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1151 | ||
1152 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1153 | ||
1154 | Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1155 | ||
1156 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1157 | ||
1158 | Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1159 | ||
1160 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1161 | ||
1162 | Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1163 | ||
1164 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1165 | ||
1166 | Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1167 | ||
1168 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1169 | ||
1170 | Wed Sep 10 22:30:24 1997 Martin M. Hunt <hunt@cygnus.com> | |
1171 | ||
1172 | * interp.c (sim_resume): Increment PC at end of rep | |
1173 | loop. | |
1174 | ||
1175 | * simops.c (OP_4201): Fix rachi instruction. | |
1176 | ||
1177 | Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba> | |
1178 | ||
1179 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1180 | ||
1181 | Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1182 | ||
1183 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1184 | * config.in: Ditto. | |
1185 | ||
1186 | Tue Aug 26 10:37:49 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1187 | ||
1188 | * interp.c (sim_kill): Delete. | |
1189 | (sim_create_inferior): Add ABFD argument. | |
1190 | (sim_load): Move setting of PC from here. | |
1191 | (sim_create_inferior): To here. | |
1192 | (start_address): Delete variable. | |
1193 | ||
1194 | Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1195 | ||
1196 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1197 | * config.in: Ditto. | |
1198 | ||
1199 | Mon Aug 25 15:39:29 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1200 | ||
1201 | * interp.c (sim_open): Add ABFD argument. | |
1202 | ||
1203 | Tue May 20 10:14:45 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1204 | ||
1205 | * interp.c (sim_open): Add callback argument. | |
1206 | (sim_set_callbacks): Remove SIM_DESC argument. | |
1207 | ||
1208 | Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com> | |
1209 | ||
1210 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1211 | ||
1212 | Tue Apr 22 10:29:23 1997 Doug Evans <dje@canuck.cygnus.com> | |
1213 | ||
1214 | * interp.c (sim_open): Undo patch to add -E support. | |
1215 | ||
1216 | Fri Apr 18 13:39:01 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1217 | ||
1218 | * interp.c (sim_stop): New function. | |
1219 | ||
1220 | Thu Apr 17 02:42:00 1997 Doug Evans <dje@canuck.cygnus.com> | |
1221 | ||
1222 | * Makefile.in (SIM_OBJS): Add sim-load.o. | |
1223 | * d10v_sim.h (exec_bfd): Rename to prog_bfd. | |
1224 | * interp.c: #include bfd.h. | |
1225 | (myname, sim_kind, start_address): New static locals. | |
1226 | (prog_bfd_was_opened_p, prog_bfd): New static locals. | |
1227 | (decode_pc): Update to use prog_bfd. | |
1228 | (sim_open): Set sim_kind, myname. Ignore -E arg. | |
1229 | (sim_close): Close prog_bfd if simulator opened it. | |
1230 | (sim_create_inferior): Return SIM_RC. Delete arg start_address. | |
1231 | (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd. | |
1232 | Call sim_load_file to load file into simulator. | |
1233 | * simops.c (trace_input_func): exec_bfd renamed to prog_bfd. | |
1234 | ||
1235 | Wed Apr 16 16:12:03 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1236 | ||
1237 | * simops.c (OP_5F00): Only provide system calls SYS_execv, | |
1238 | SYS_wait, SYS_wait, SYS_utime, SYS_time if defined by the host. | |
72f4393d | 1239 | |
c906108c SS |
1240 | Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
1241 | ||
1242 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1243 | * config.in: Ditto. | |
1244 | ||
1245 | Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com> | |
1246 | ||
1247 | * interp.c (sim_open): New arg `kind'. | |
1248 | ||
1249 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1250 | ||
1251 | Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
1252 | ||
1253 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1254 | ||
1255 | Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
1256 | ||
1257 | * configure: Re-generate. | |
1258 | ||
1259 | Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com> | |
1260 | ||
1261 | * configure: Regenerate to track ../common/aclocal.m4 changes. | |
1262 | ||
1263 | * simops.c (OP_5F00): Remove old traps 1-3. Make trap 15 the same | |
1264 | as trap 0, which will be deprecated. Only set errno, if an error | |
1265 | in fact was returned. | |
1266 | ||
1267 | Thu Mar 13 12:41:20 1997 Doug Evans <dje@canuck.cygnus.com> | |
1268 | ||
1269 | * interp.c: Delete redundant prototypes of sim_foo fns. | |
1270 | (sim_open): New SIM_DESC result. Argument is now in argv form. | |
1271 | (other sim_*): New SIM_DESC argument. | |
1272 | ||
1273 | Thu Mar 13 10:29:04 1997 Michael Meissner <meissner@cygnus.com> | |
1274 | ||
1275 | * simops.c (trace_{input,output}_func): Call flush_stdout from the | |
1276 | callback functions. | |
1277 | (OP_5F00): Ditto. | |
1278 | (OP_6{4,6,C,A}01): Test for post decrement on the stack pointer. | |
1279 | (OP_{1200,1000000,201,5FE0,1003,17001002}): Fix problems in | |
1280 | setting the carry bit after an add or a subtract. | |
1281 | ||
1282 | Wed Feb 12 16:04:15 1997 Michael Meissner <meissner@cygnus.com> | |
1283 | ||
1284 | * simops.c (OP_{1403,15002A02,3{0,4}0{0,1}}): Only use the bottom | |
1285 | 40 bits of accumulators. Sign/zero extend as appropriate. | |
1286 | ||
1287 | Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com> | |
1288 | ||
1289 | * Makefile.in (@COMMON_MAKEFILE_FRAG): Use | |
1290 | COMMON_{PRE,POST}_CONFIG_FRAG instead. | |
1291 | * configure.in: sinclude ../common/aclocal.m4. | |
1292 | * configure: Regenerated. | |
1293 | ||
1294 | Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com) | |
1295 | ||
1296 | * configure configure.in Makefile.in: Update to new configure | |
1297 | scheme which is more compatible with WinGDB builds. | |
1298 | * configure.in: Improve comment on how to run autoconf. | |
1299 | * configure: Re-run autoconf to get new ../common/aclocal.m4. | |
1300 | * Makefile.in: Use autoconf substitution to install common | |
1301 | makefile fragment. | |
1302 | ||
1303 | Fri Dec 27 22:54:05 1996 Angela Marie Thomas (angela@cygnus.com) | |
1304 | ||
1305 | * gencode.c: patch to not #include "d10v_sim.h" which | |
1306 | unecessarily includes bfd.h and causes wingdb configure | |
1307 | to fail. | |
1308 | ||
1309 | Mon Dec 16 13:39:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
1310 | ||
1311 | * interp.c (xfer_mem): Change unified memory to 0x0. | |
1312 | ||
1313 | Thu Nov 28 20:42:56 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1314 | ||
1315 | * simops.c (OP_3E01): Fix tracing information. | |
1316 | (OP_300{0,1}): Do not propigate sign. | |
1317 | ||
1318 | Mon Nov 25 19:47:40 1996 Doug Evans <dje@canuck.cygnus.com> | |
1319 | ||
1320 | * config.in (WORDS_BIGENDIAN): Add. | |
1321 | * configure: Regenerated. | |
1322 | * d10v_sim.h: #include "config.h" | |
1323 | ||
1324 | Sat Nov 23 09:34:50 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1325 | ||
1326 | * gencode.c (write_opcodes): Eliminate warnings when generated | |
1327 | table.c is compiled. | |
1328 | ||
1329 | Wed Nov 20 19:41:40 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1330 | ||
1331 | * interp.c (sim_open): Cast result of calloc, and make sure NULL | |
1332 | was not returned. | |
1333 | (dmem_addr): If address is illegal or in I/O space, signal a bus | |
1334 | error. | |
1335 | (pc_addr): Signal bus error, not illegal instruction for bogus | |
1336 | pc. | |
1337 | ||
1338 | Wed Nov 20 01:23:03 1996 Doug Evans <dje@canuck.cygnus.com> | |
1339 | ||
1340 | * Makefile.in: Delete all stuff moved to ../common/Make-common.in. | |
1341 | (SIM_OBJS,SIM_EXTRA_CFLAGS,SIM_EXTRA_CLEAN): Define. | |
1342 | * configure.in: Simplify using macros in ../common/aclocal.m4. | |
1343 | Call AC_CHECK_HEADERS(unistd.h). | |
1344 | * configure: Regenerated. | |
1345 | * config.in: New file. | |
1346 | * interp.c: #include "callback.h". | |
1347 | * simops.c: #include "config.h". #include <unistd.h> if present. | |
1348 | ||
1349 | Fri Nov 8 16:19:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
1350 | ||
1351 | * d10v-sim.h (simops): Add flag is_long. | |
1352 | (State): Add pc_changed. Instructions which update the PC should | |
1353 | use the JMP macro which sets this. | |
1354 | (JMP): New macro. Sets the PC and the pc_changed flag. | |
1355 | ||
1356 | * gencode.c (write_opcodes): Add is_long field. | |
72f4393d | 1357 | |
c906108c SS |
1358 | * interp.c (lookup_hash): If we blindly apply a short opcode's mask |
1359 | to a long opcode we could get a false match. Check the opcode size. | |
1360 | (hash): Add a size field to the hash table. | |
1361 | (sim_open): Initialize size field in hash table. | |
1362 | (sim_resume): Change to logic for setting the PC. Used to increment the | |
1363 | PC if it had not been changed. This didn't allow single-instruction loops. | |
1364 | Now checks the flag State.pc_changed. Also now stops when ^C is received. | |
1365 | (dmem_addr): Fix translation of data segments to unified memory. | |
1366 | (sim_ctrl_c): New function. When ^C is received, set stop_simulator flag. | |
1367 | ||
1368 | * simops.c: Changed all branch and jump instructions to use new JMP macro. | |
1369 | (OP_20000000): Corrected trace information to show this is a ldi.l, not | |
1370 | a ldi.s instruction. | |
72f4393d | 1371 | |
c906108c SS |
1372 | Thu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
1373 | ||
1374 | * interp.c (sim_fetch_register, sim_store_register): Fix bug where | |
1375 | updating the accumulators was overwriting other parts of the global | |
1376 | State variable. | |
1377 | ||
1378 | Wed Oct 30 17:35:14 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1379 | ||
1380 | * interp.c (bfd.h) Don't include it here any more. | |
1381 | (text{,_start,_end}): Move here from simops.c and make extern. | |
1382 | (decode_pc): New function to return the PC as an address that the | |
1383 | debugger can use. | |
1384 | (dmem_addr): Print decoded PC in error message. | |
1385 | (pc_addr): Ditto. | |
1386 | ||
1387 | * simops.c (bfd.h) Don't include it here any more. | |
1388 | (text{,_start,_end}): Move to simops.c. | |
1389 | (trace_input_func): Move decoding of PC, and looking up .text | |
1390 | start to decode_pc. | |
1391 | ||
1392 | * d10v_sim.h (bfd.h): Include it here. | |
1393 | (text{,_start,_end}): Add external declarations. | |
1394 | (exec_bfd): Ditto. | |
1395 | (decode_pc): Ditto. | |
1396 | ||
1397 | Tue Oct 29 12:13:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
1398 | ||
1399 | * interp.c (sim_size): Now allocates unified memory for imap segments | |
1400 | 0,1,2, and 127. Initializes imap0 and imap1 to 0x1000. Initializes dmap to 0. | |
1401 | (sim_write): Just call xfer_mem(). | |
1402 | (sim_read): Just call xfer_mem(). | |
1403 | (xfer_mem): New function. Does appropriate memory mapping and copies bytes. | |
1404 | (dmem_addr): New function. Reads dmap register and translates data | |
1405 | addresses to local addresses. | |
1406 | (pc_addr): New function. Reads imap register and computes local address | |
1407 | corresponding to contents of the PC. | |
1408 | (sim_resume): Change to use pc_addr(). | |
1409 | (sim_create_inferior): Change reinitialization code. Also reinitializes | |
1410 | imap[01] and dmap. | |
1411 | (sim_fetch_register): Add fake registers 32,33,34 for imap0, imap1, and dmap. | |
1412 | (sim_store_register): Add fake registers 32,33,34 for imap0, imap1, and dmap. | |
1413 | ||
1414 | * simops.c (MEMPTR): Redefine to use dmem_addr(). | |
1415 | (OP_5F00): Replace references to STate.imem with dmem_addr(). | |
72f4393d | 1416 | |
c906108c SS |
1417 | * d10v-sim.h (State): Remove mem_min and mem_max. Add umem[128]. |
1418 | (RB,SW,RW,SLW,RLW): Redefine to use dmem_addr(). | |
1419 | (IMAP0,IMAP1,DMAP,SET_IMAP,SET_IMAP1,SET_DMAP): Define. | |
72f4393d | 1420 | |
c906108c SS |
1421 | Tue Oct 22 15:22:33 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
1422 | ||
1423 | * d10v_sim.h (_ins_type): Reorganize, so that we can provide | |
1424 | better statistics, like not counting NOPS as parallel | |
1425 | instructions, and printing total cycles. | |
1426 | (ins_type_counters): Make unsigned long. | |
1427 | (left_nops,right_nops): Fold into ins_type_counters. | |
1428 | ||
1429 | * simops.c (trace_input_func): Print new instruction types. | |
1430 | Handle OP_R2R3 as input types. | |
1431 | (OP_{38000000,7000}): Correctly sign extend bytes. | |
1432 | (OP_5E00): Don't count NOPs as parallel instructions. | |
1433 | (OP_460B): Remove unused variable. | |
1434 | (OP_5F00): Ditto. | |
1435 | ||
1436 | * interp.c (ins_type_counters): Make unsigned long. | |
1437 | (left_nops,right_nops): Delete. | |
1438 | (most functions): Add prototypes. | |
1439 | (INLINE): If GCC and optimize define as __inline__. | |
1440 | ({,lookup_}hash,get_operands): Declare as INLINE. | |
1441 | (do_parallel): Count conditional operations. | |
1442 | (add_commas): New function, to add commas every 3 digits. | |
1443 | (sim_size): Call add_commas to print numbers. | |
1444 | (sim_{open,resume}): Delete unused variables. | |
1445 | (sim_info): Provide better statistics. | |
1446 | (sim_read): Add int return type. | |
1447 | ||
1448 | Mon Oct 21 16:16:26 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
1449 | ||
1450 | * interp.c (sim_resume): Change the way single-stepping and exceptions | |
1451 | are handled so single-stepping works again. | |
1452 | ||
1453 | Thu Oct 17 12:24:16 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1454 | ||
1455 | * endian.c: Optimize simulated loads/stores on x86, AIX, and big | |
1456 | endian hosts. | |
1457 | ||
1458 | * configure.in (--enable-sim-bswap): New switch to enable using | |
1459 | the BSWAP instruction on x86's. | |
1460 | * configure: Regenerate. | |
1461 | ||
1462 | * Makefile.in ({SWAP,CONFIG}_CFLAGS): Add --enable-sim-bswap | |
1463 | support. | |
1464 | ||
1465 | Wed Oct 16 13:50:06 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1466 | ||
1467 | * endian.c: New file. Move endian functions here from interp.c. | |
1468 | Optimize code, and make it work as either inline functions or as a | |
1469 | separate file. | |
1470 | ||
1471 | * interp.c: Move endian functions from here to endian.c. | |
1472 | ||
1473 | * Makefile.in (INCLUDE): Add endian.c. | |
1474 | (run,libsim.a): Add dependency on endian.o. | |
1475 | (endian.o): Add dependency. | |
1476 | ||
1477 | * d10v_sim.h (read/write support): Always go through the machine | |
1478 | independent endian functions. If compiling with GCC and | |
1479 | optimizing, include endian.c so the endian functions are inlined. | |
1480 | ||
72f4393d | 1481 | * simops.c (OP_5F00): Correct tracing of accumulators. |
c906108c SS |
1482 | |
1483 | Tue Oct 15 10:57:50 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1484 | ||
1485 | * simops.c (OP_5F00): Add support for getpid, kill system calls. | |
1486 | ||
1487 | * interp.c (do_{2_short,parallel}): If an exception is raised, | |
1488 | don't execute the second instruction. | |
1489 | ||
1490 | Sat Oct 12 22:17:43 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1491 | ||
1492 | * simops.c (OP_{31000000,6601,6201,6200}): Store address in a | |
1493 | temporary in case the register is overriden when loading. | |
1494 | (OP_6200): Output type is OP_DREG for tracing. | |
1495 | ||
1496 | Fri Oct 4 23:46:18 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1497 | ||
1498 | * d10v_sim.h (struct _state): Add mem_{min,max} fields. | |
1499 | ||
1500 | * interp.c (sim_size): Initialize mem_{min,max} fields. | |
1501 | (sim_write): Update mem_{min,max} fields. | |
1502 | (sim_resume): If PC is not in the minimum/maximum memory range, | |
1503 | abort. | |
1504 | (sim_create_inferior): Preserve mem_{min,max} fields. | |
1505 | ||
1506 | Fri Sep 27 13:11:58 1996 Mark Alexander <marka@cygnus.com> | |
1507 | ||
1508 | * simops.c (OP_5F00): Add support for time() system call. | |
1509 | ||
1510 | Wed Sep 25 16:31:41 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1511 | ||
1512 | * simops.c (OP_{6E01,6A01,6E1F,6A00}): Print both words being | |
1513 | stored if tracing. | |
1514 | (OP_5F00,trace_{in,out}put_func): Add finer grain tracing for | |
1515 | system calls. | |
1516 | ||
1517 | Mon Sep 23 17:55:30 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1518 | ||
1519 | * simops.c (op_types): Add OP_{CONSTANT8,R2,R3}. | |
1520 | (trace_input_func): Add support for OP_{CONSTANT8,R2,R3}. | |
1521 | (OP_{4900,24800000,4800,4A00,4B00,4D00,4C00}): Add OP_R2 and OP_R3 | |
1522 | to call/subroutine returns to trace the first two arguments and | |
1523 | the return value. For small jumps, use CONSTANT8, not CONSTANT16. | |
1524 | ||
1525 | Fri Sep 20 15:36:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
1526 | ||
72f4393d | 1527 | * interp.c (sim_create_inferior): Reinitialize State every time |
c906108c SS |
1528 | sim_create_inferior() is called. |
1529 | ||
1530 | Thu Sep 19 21:38:20 1996 Michael Meissner <meissner@wogglebug.ziplink.net> | |
1531 | ||
1532 | * simops.c (OP_{401,2000000,601,3000000,23000000}): Get sign right | |
1533 | on comparisons. | |
1534 | (OP_401): Fix tracing information. | |
1535 | ||
1536 | Thu Sep 19 10:30:22 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1537 | ||
1538 | * simops.c (SIZE_{PC,LINE_NUMBER}): New default sizes for output. | |
1539 | (trace_input_func): Use them. | |
1540 | (trace_input_func): Make sure there is a trailing space after the | |
1541 | instruction. | |
1542 | (OP_6200): Fix tracing info. | |
1543 | ||
1544 | * Makefile.in (run): Add dependencies on libbfd.a and | |
1545 | libiberity.a. | |
1546 | ||
1547 | Wed Sep 18 09:13:25 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1548 | ||
1549 | * d10v_sim.h (DEBUG_INSTRUCTION): New debug value to include line | |
1550 | numbers and function names in debug trace. | |
1551 | (DEBUG): If not defined, set to DEBUG_TRACE, DEBUG_VALUES, and | |
72f4393d | 1552 | DEBUG_LINE_NUMBER. |
c906108c SS |
1553 | (SIG_D10V_{STOP,EXIT}): Values to represent the stop instruction |
1554 | and exit system call trap being executed. | |
1555 | ||
1556 | * interp.c (sim_stop_reason): Set exit code correctly for stop | |
1557 | instruction and exit system call trap. | |
1558 | ||
1559 | * configure.in (--enable-sim-cflags): Remove trace case. | |
1560 | (--enable-sim-debug): New switch to set the debug values. | |
1561 | * configure: Regenerate. | |
1562 | ||
1563 | * simops.c (trace_{input,output}_func): Rename from | |
1564 | trace_{input,output}. | |
1565 | (trace_{input,output}): Call trace_{input,output}_func if | |
1566 | d10v_debug is non-zero. | |
1567 | (SIZE_INSTRUCTION): Cut down to 8. | |
1568 | (SIZE_OPERANDS): Cut down to 18. | |
1569 | (SIZE_LOCATION): New value for size of line number, function name | |
1570 | field. | |
1571 | (init_text_p,text{,_start,_end}): New static variables for | |
1572 | printing line number and function name. | |
1573 | (exec_bfd): New external that run.c sets. | |
1574 | (trace_input_func): Print line number and function name if | |
1575 | available and if desired. | |
1576 | (OP_4E09): Don't print out DBT message. | |
1577 | (OP_5FE0): Set exception field to SIG_D10V_STOP. | |
72f4393d | 1578 | (OP_5F00): Set exception field to SIG_D10V_EXIT. |
c906108c SS |
1579 | |
1580 | Sat Sep 14 22:18:43 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1581 | ||
1582 | * interp.c (do_2_short): If the instruction encodes jump->ins, | |
1583 | don't do the second instruction if the jump succeeds. | |
1584 | ||
1585 | Fri Sep 13 22:35:19 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1586 | ||
1587 | * simops.c (OP_5F00): Use unknown traps to print all GPRs, | |
1588 | accumulators, PC, and F0/F1/C flags. | |
1589 | ||
1590 | Thu Sep 12 12:50:11 1996 Mark Alexander <marka@cygnus.com> | |
1591 | ||
1592 | * simops.c (OP_5F00): Fix problems with system calls. | |
1593 | ||
1594 | Thu Sep 12 12:19:28 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1595 | ||
1596 | * simops.c (OP_5F00): Correct tracing information for trap. | |
1597 | ||
1598 | Wed Sep 11 18:55:50 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1599 | ||
1600 | * Makefile.in (CSEARCH): Correctly find opcodes directory. | |
1601 | ||
1602 | Mon Sep 9 13:27:26 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1603 | ||
1604 | * simops.c (trace_output): Properly align accumulator output. | |
1605 | (OP_3{0,2,4}00): Properly parenthesize test expression. Add error | |
1606 | if shift count is too high. | |
1607 | (OP_4E{00,02,04,20,22,40,42}): Make tests agree with book. | |
1608 | (OP_4E09): Make cpfg properly trace the input flags. | |
1609 | (op_types): Add OP_FLAG_OUTPUT. | |
1610 | (trace_{input,output}): Support OP_FLAG_OUTPUT. | |
1611 | (OP_31000000): This ld2w varient is a 16-bit memory reference, not | |
1612 | an 8-bit memory reference instruction for tracing purposes. | |
1613 | (OP_201): Addi needs to set the carry. | |
1614 | ||
1615 | Fri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
1616 | ||
1617 | * simops.c (OP_2600, OP_2601): Changed min and max comparisons | |
1618 | to use signed register values. | |
1619 | ||
1620 | Wed Sep 4 11:35:17 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1621 | ||
1622 | * d10v_sim.h (DEBUG_*): Add bit flags for controlling debug | |
1623 | output. | |
1624 | (_ins_type): New enumeration to specify which container an | |
1625 | instruction is in, and whether it is part of a parallel operation. | |
1626 | (_state): Add ins_type field. | |
1627 | ({,u}int{8,16,32,64}): Use limits.h to size the appropriate types. | |
1628 | (ins_type_counters): Counters for the various instruction types. | |
1629 | ({left,right}_nops): Counters for the number of nops in each | |
1630 | container. | |
1631 | (d10v_debug): New variable to indicate whether debugging is turned | |
1632 | on. | |
1633 | ||
1634 | * simops.c: (all functions): Change all #ifdef DEBUG code so that | |
1635 | the input and output values can be traced, along with the | |
1636 | instruction type. Make the -t option enable tracing. | |
1637 | (all functions): Change printf calls to use the printf_filtered | |
1638 | function in the callback table. | |
1639 | ||
1640 | * interp.c (_leftright): New enumeration to say whether 2 short | |
1641 | instructions are done left first or right first. | |
1642 | (do_{long,2_short,parallel}): Indicate in the machine state which | |
1643 | type of instruction this is. Count each of the types of | |
1644 | instructions executed. | |
1645 | (sim_size): Only print the memory sizes if DEBUG_MEMSIZE debug | |
1646 | flag is set. | |
1647 | (sim_resume): Pass left/right indication to do_2_short. | |
1648 | (all functions): Change printf calls to use the printf_filtered | |
1649 | function in the callback table. | |
1650 | (sim_trace): Turn on debug flag if DEBUG was defined, and call | |
1651 | sim_resume. | |
1652 | (sim_info): Print out statistics on instructions. | |
1653 | (sim_{trace,create_inferior}): Eliminate extraneous output unless | |
1654 | debugging. | |
1655 | (sim_open): If args == -t and DEBUG was defined, set d10v_debug. | |
1656 | Only initialize the hash table the first time sim_open is called. | |
1657 | ||
1658 | * Makefile.in: Make objects depend on d10v_sim.h. | |
1659 | ({,SIM_}CFLAGS): Include configure dependent switches. Setting | |
1660 | CFLAGS does not override host/target defines or SIM_CFLAGS. | |
1661 | (CC_FOR_BUILD,gencode): Use CC_FOR_BUILD to compile gencode. | |
1662 | (run): By default, the math library is not needed to be linked | |
1663 | in. | |
1664 | ({BFD,LIBIBERTY}_LIB): Define as variables so they can be | |
1665 | overridden. | |
1666 | (VPATH): Don't set to anything but @srcdir@ to work with non-GNU | |
1667 | makes. | |
1668 | ({run,callback}.o): Provide explicit paths to their appropriate | |
1669 | source directories. | |
1670 | (gencode{,.o},d10v-opc.o): Split compilation into creating object | |
1671 | and linking. Instead of linking in libopcodes.a, just compile | |
1672 | d10v-opc.o directly to handle canadian cross. | |
1673 | (CSEARCH): Add opcodes directory. | |
1674 | ||
1675 | * configure.in (--enable-sim-cflags): New switch to allow user to | |
1676 | set the defaults. | |
1677 | (CC_FOR_BUILD): Deal with canadian crosses. | |
1678 | * configure: Regenerate. | |
1679 | ||
1680 | Wed Sep 04 04:45:34 1996 Mark Alexander <marka@cygnus.com> | |
1681 | ||
1682 | * simops.c: Include correct syscall.h for d10v, not host's. | |
1683 | Fix #ifdef SYS_stat. | |
1684 | ||
1685 | Tue Sep 3 14:00:04 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1686 | ||
1687 | * simops.c (OP_5F00): Wrap all SYS_xxx traps with #ifdef. | |
1688 | Add trap 2 to be printf and trap 3 to be putchar. | |
1689 | ||
1690 | Wed Aug 28 21:42:34 1996 Mark Alexander <marka@cygnus.com> | |
1691 | ||
1692 | * Makefile.in, d10v_sim.h, interp.c, simops.c: Add support | |
1693 | for low-level system calls. | |
1694 | ||
1695 | Wed Aug 28 17:33:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
1696 | ||
1697 | * Makefile.in, d10v_sim.h, interp.c: Fix byte-order problems. | |
1698 | ||
1699 | Mon Aug 26 18:30:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
1700 | ||
1701 | * d10v_sim.h (SEXT32): Added. | |
1702 | * interp.c: Commented out printfs. | |
72f4393d | 1703 | * simops.c: Fixed error in sb and st2w. |
c906108c SS |
1704 | |
1705 | Thu Aug 15 13:30:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
1706 | ||
1707 | * Makefile.in, d10v_sim.h, interp.c, simops.c: Added remaining | |
1708 | DSP instructions. Added modulo addressing. | |
1709 | ||
1710 | Sun Aug 11 12:57:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
1711 | ||
1712 | * Makefile.in, d10v_sim.h, interp.c, simops.c: Snapshot. | |
1713 | ||
1714 | Fri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
1715 | ||
1716 | * d10v_sim.h, simops.c: Snapshot. | |
1717 | ||
1718 | Thu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
1719 | ||
72f4393d | 1720 | * ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h, |
c906108c SS |
1721 | gencode.c, interp.c, simops.c: Created. |
1722 |