* common/aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
[deliverable/binutils-gdb.git] / sim / d10v / ChangeLog
1 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
2
3 * configure: Regenerated.
4
5 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6
7 * configure: Regenerated.
8
9 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
10
11 * configure: Regenerated.
12
13 2006-04-18 Nick Clifton <nickc@redhat.com>
14
15 * interp.c (sim_stop_reason): Fix typo.
16
17 2005-11-28 Mark Mitchell <mark@codesourcery.com>
18
19 * interp.c (gdb/signals.h): Include it.
20 (sim_stop_reason): Use TARGET_SIGNAL_*.
21
22 2005-03-23 Mark Kettenis <kettenis@gnu.org>
23
24 * configure: Regenerate.
25
26 2005-01-14 Andrew Cagney <cagney@gnu.org>
27
28 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
29 explicit call to AC_CONFIG_HEADER.
30 * configure: Regenerate.
31
32 2005-01-12 Andrew Cagney <cagney@gnu.org>
33
34 * configure.ac: Update to use ../common/common.m4.
35 * configure: Re-generate.
36
37 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
38
39 * configure: Regenerated to track ../common/aclocal.m4 changes.
40
41 2005-01-07 Andrew Cagney <cagney@gnu.org>
42
43 * configure.ac: Rename configure.in, require autoconf 2.59.
44 * configure: Re-generate.
45
46 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
47
48 * configure: Regenerate for ../common/aclocal.m4 update.
49
50 2004-06-28 Andrew Cagney <cagney@gnu.org>
51
52 * interp.c (sim_resume): Rename ui_loop_hook to
53 deprecated_ui_loop_hook.
54
55 2003-10-30 Andrew Cagney <cagney@redhat.com>
56
57 * simops.c: Replace "struct symbol_cache_entry" with "struct
58 bfd_symbol".
59
60 2003-06-22 Andrew Cagney <cagney@redhat.com>
61
62 * interp.c (xfer_mem): Simplify. Only do a single partial
63 transfer. Problem reported by Tom Rix.
64
65 2003-05-07 Andrew Cagney <cagney@redhat.com>
66
67 * interp.c (sim_d10v_translate_addr): Add "regcache" parameter.
68 (sim_d10v_translate_imap_addr): Ditto.
69 (sim_d10v_translate_dmap_addr): Ditto.
70 (xfer_mem): Pass NULL regcache to sim_d10v_translate_addr.
71 (dmem_addr): Pass NULL regcache to sim_d10v_translate_dmap_addr.
72 (dmap_register, imap_register): Add "regcache" parameter.
73 (imem_addr): Pass NULL regcache to sim_d10v_translate_imap_addr.
74 (sim_fetch_register): Pass NULL regcache to imap_register and
75 dmap_register.
76
77 2003-02-27 Andrew Cagney <cagney@redhat.com>
78
79 * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
80
81 2002-11-13 Andrew Cagney <cagney@redhat.com>
82
83 * simops.c: Include <string.h>.
84
85 2002-06-17 Andrew Cagney <cagney@redhat.com>
86
87 * d10v_sim.h (SET_PSW_BIT): Add cast to avoid inverting an enum.
88
89 2002-06-16 Andrew Cagney <ac131313@redhat.com>
90
91 * configure: Regenerated to track ../common/aclocal.m4 changes.
92
93 2002-06-13 Tom Rix <trix@redhat.com>
94
95 * interp.c (xfer_mem): Fix transfers across multiple segments.
96
97 2002-06-09 Andrew Cagney <cagney@redhat.com>
98
99 * Makefile.in (INCLUDE): Update path to callback.h.
100 * gencode.c: Do not include "callback.h".
101 * d10v_sim.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
102 * interp.c: Ditto.
103
104 2002-06-08 Andrew Cagney <cagney@redhat.com>
105
106 * interp.c (sim_fetch_register): Fix name of enum used in cast.
107 (sim_store_register): Ditto.
108
109 2002-06-02 Elena Zannoni <ezannoni@redhat.com>
110
111 From Jason Eckhardt <jle@redhat.com>
112 * d10v_sim.h (INC_ADDR): Correctly handle the case where MOD_E is
113 less than MOD_S (post-decrement).
114
115 2002-06-01 Andrew Cagney <ac131313@redhat.com>
116
117 * interp.c (sim_fetch_register, sim_store_register): Use a switch
118 statement and enums from "sim-d10v.h".
119
120 2002-05-28 Elena Zannoni <ezannoni@redhat.com>
121
122 * interp.c (sim_create_inferior): Add comment.
123
124 From Alan Matsuoka <alanm@redhat.com>:
125 From 2001-04-27 Jason Eckhardt <jle@cygnus.com>:
126 * simops.c (OP_4400): Output "mvf0f" instead of "mf0f".
127 (OP_4401): Output "mvf0t" instead of "mf0t".
128 (OP_460B): Do not output a flag register.
129 (OP_4609): Do not output a flag register.
130
131 2002-05-23 Andrew Cagney <ac131313@redhat.com>
132
133 * Makefile.in (INCLUDE): Add "gdb/sim-d10v.h".
134 * interp.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
135
136 2001-08-01 John R. Moore <jmoore@redhat.com>
137
138 * interp.c (sim_create_inferior): Removed a hack that stated
139 it was setting r0/r1 with argc/argv.
140
141 2001-04-15 J.T. Conklin <jtc@redback.com>
142
143 * Makefile.in (simops.o): Add simops.h to dependency list.
144
145 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
146
147 * configure: Regenerated to track ../common/aclocal.m4 changes.
148
149 Tue Apr 18 16:26:41 2000 Andrew Cagney <cagney@b1.cygnus.com>
150
151 * interp.c (sim_resume): Deliver SIGILL.
152 (lookup_hash): Do not print SIGILL message.
153
154 Tue Feb 22 18:24:56 2000 Andrew Cagney <cagney@b1.cygnus.com>
155
156 * Makefile.in (SIM_EXTRA_CFLAGS): Define SIM_HAVE_ENVIRONMENT.
157 * interp.c (sim_set_trace): Replace sim_trace. Enable tracing.
158
159 Tue Feb 8 17:41:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
160
161 * d10v_sim.h (SIG_D10V_BUS): Define.
162
163 * simops.c (address_exception): Delete function.
164 (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000,
165 OP_6601, OP_6201, OP_6200, OP_33010000, OP_34000000, OP_6800,
166 OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000, OP_6A00,
167 OP_6E1F, OP_6A01, OP_6E01, OP_37010000): Replace call to
168 address_exception with code that sets SIG_D10V_BUS.
169
170 * interp.c (sim_resume): When SIGBUS or SIGSEGV, deliver a bus
171 error to the simulator before resuming execution.
172 (sim_trace): Check stop reason and use that to determine sim_trace
173 return value.
174 (sim_stop_reason): For SIG_D10V_BUS return a SIGBUS / SIGSEGV
175 sigrc.
176
177 Tue Jan 18 16:07:42 MST 2000 Diego Novillo <dnovillo@cygnus.com>
178
179 * interp.c (sim_create_inferior): Change internal initial value for
180 DMAP2 to 0x2000.
181
182 Mon Jan 3 02:06:07 2000 Andrew Cagney <cagney@b1.cygnus.com>
183
184 * interp.c (lookup_hash): Stop the update of the PC when there was
185 an illegal instruction exception.
186
187 Mon Jan 3 00:14:33 2000 Andrew Cagney <cagney@b1.cygnus.com>
188
189 * simops.c (address_exception): New function.
190 (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000,
191 OP_6601, OP_6201, OP_6200, OP_33010000, OP_34000000, OP_6800,
192 OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000, OP_6A00,
193 OP_6E1F, OP_6A01, OP_6E01, OP_37010000): For "ld", "ld2w", "st"
194 and "st2w" check that the address is aligned.
195
196 1999-12-30 Chandra Chavva <cchavva@cygnus.com>
197
198 * d10v_sim.h (INC_ADDR): Added code to assign
199 proper address for loads with predec operations.
200
201 1999-11-25 Nick Clifton <nickc@cygnus.com>
202
203 * simops.c (OP_4E0F): New function: Simulate new bit pattern for
204 cpfg instruction.
205
206 Fri Oct 29 18:34:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
207
208 * simops.c (move_to_cr): Don't allow user to set PSW.DM in either
209 DPSW and BPSW.
210
211 Thu Oct 28 01:26:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
212
213 * simops.c (OP_5F20): Use SET_HW_PSW when updating PSW.
214 (PSW_HW_MASK): Declare.
215
216 * d10v_sim.h (move_to_cr): Add ``psw_hw_p'' parameter.
217 (SET_CREG, SET_PSW_BIT): Update.
218 (SET_HW_CREG, SET_HW_PSW): Define.
219
220 Sun Oct 24 21:38:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
221
222 * interp.c (sim_d10v_translate_dmap_addr): Fix extraction of IOSP
223 for DMAP3.
224
225 Sun Oct 24 16:04:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
226
227 * interp.c (sim_d10v_translate_addr): New function.
228 (xfer_mem): Rewrite. Use sim_d10v_translate_addr.
229 (map_memory): Make INLINE.
230
231 Sun Oct 24 13:45:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
232
233 * interp.c (sim_d10v_translate_dmap_addr): New function.
234 (dmem_addr): Rewrite. Use sim_d10v_translate_dmap_addr. Change
235 offset parameter to type uint16.
236 * d10v_sim.h (dmem_addr): Update declaration.
237
238 Sun Oct 24 13:07:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
239
240 * interp.c (imap_register, set_imap_register, dmap_register,
241 set_imap_register): Use map_memory.
242 (DMAP): Update.
243 (sim_create_inferior): Initialize all DMAP registers. NOTE that
244 DMAP2, in internal memory mode, is set to 0x0000 and NOT
245 0x2000. This is consistent with the older d10v boards.
246
247 Sun Oct 24 11:22:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
248
249 * interp.c (sim_d10v_translate_imap_addr): New function.
250 (imem_addr): Rewrite. Use sim_d10v_translate_imap_addr.
251 (last_from, last_to): Declare.
252
253 Sun Oct 24 01:21:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
254
255 * d10v_sim.h (struct d10v_memory): Define. Support very long
256 memories.
257 (struct _state): Replace imem, dmem and umem by mem.
258 (IMAP_BLOCK_SIZE, DMAP_BLOCK_SIZE, SEGMENT_SIZE, IMEM_SEGMENTS,
259 DMEM_SEGMENTS, UMEM_SEGMENTS): Define.
260
261 * interp.c (map_memory): New function.
262 (sim_size, xfer_memory, imem_addr, dmem_addr): Update.
263 (UMEM_SEGMENTS): Moveed to "d10v_sim.h".
264 (IMEM_SIZEDMEM_SIZE): Delete.
265
266 Sat Oct 23 20:06:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
267
268 * interp.c: Include "sim-d10v.h".
269 (imap_register, set_imap_register, dmap_register,
270 set_dmap_register, spi_register, spu_register, set_spi_register,
271 set_spu_register): New functions.
272 (sim_create_inferior): Update.
273 (sim_fetch_register, sim_store_register): Rewrite. Use enums
274 defined in sim-d10v.h.
275
276 * d10v_sim.h (DEBUG_MEMORY): Define.
277 (IMAP0, IMAP1, DMAP, SET_IMAP0, SET_IMAP1, SET_DMAP): Delete.
278
279 Sat Oct 23 18:41:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
280
281 * interp.c (sim_open): Allow a debug value to be passed to the -t
282 option.
283 (lookup_hash): Don't exit on an illegal instruction.
284 (do_long, do_2_short, do_parallel): Check for failed instruction
285 lookup.
286
287 Mon Oct 18 18:03:24 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
288
289 * simops.c (OP_3220): Fix trace output for illegal accumulator
290 message.
291
292 1999-09-14 Nick Clifton <nickc@cygnus.com>
293
294 * simops.c: Disable setting of DM bit in PSW.
295
296 Wed Sep 8 19:34:55 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
297
298 * simops.c (op_types): Added new memory indirect type OP_MEMREF3.
299 (trace_input_func): Added support for OP_MEMREF3.
300 (OP_32010000): New instruction ld.
301 (OP_33010000): New instruction ld2w.
302 (OP_5209): New instruction sac.
303 (OP_4209): New instruction sachi.
304 (OP_3220): New instruction slae.
305 (OP_36010000): New instruction st.
306 (OP_37010000): New instruction st2w.
307
308 1999-09-09 Stan Shebs <shebs@andros.cygnus.com>
309
310 * interp.c (old_segment_mapping): New global.
311 (xfer_mem): Change the default segment mapping to be the way
312 that Mitsubishi prefers, but use the previous mapping if
313 old_segment_mapping is true.
314 (sim_open): Add an option -oldseg to get the old mapping.
315 (sim_create_inferior): Init mapping registers based on the
316 value of old_segment_mapping.
317
318 1999-09-07 Nick Clifton <nickc@cygnus.com>
319
320 * simops.c (OP_6601): Do not write back decremented address if
321 either of the destination registers was the same as the address
322 register.
323 (OP_6201): Do not write back incremented address if either of the
324 destination registers was the same as the address register.
325
326 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
327
328 * configure: Regenerated to track ../common/aclocal.m4 changes.
329
330 1999-05-08 Felix Lee <flee@cygnus.com>
331
332 * configure: Regenerated to track ../common/aclocal.m4 changes.
333
334 1999-04-02 Keith Seitz <keiths@cygnus.com>
335
336 * interp.c (ui_loop_hook_counter): New global (when NEED_UI_LOOP_HOOK
337 defined).
338 (sim_resume): If the counter has expired, call the ui_loop_hook,
339 if defined.
340 (UI_LOOP_POLL_INTERVAL): Define. Used to tweak the frequency of
341 ui_loop_hook calls.
342 * Makefile.in (SIM_EXTRA_CFLAGS): Include NEED_UI_LOOP_HOOK.
343
344 Wed Mar 10 19:32:13 1999 Nick Clifton <nickc@cygnus.com>
345
346 * simops.c: If load instruction with auto increment/decrement
347 addressing is used when the destination register is the same as
348 the address register, then ignore the auto increment/decrement.
349
350 Wed Mar 10 19:32:13 1999 Martin M. Hunt <hunt@cygnus.com>
351
352 * simops.c (OP_5F00): Ifdef SYS_stat case because
353 not all systems have it defined.
354
355 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
356
357 * simops.c (OP_5607): Correct saturation comparison/assignment.
358 (OP_1201, OP_1203, OP_17001200, OP_17001202,
359 OP_2A00, OP_2800, OP_2C00, OP_3200, OP_3201,
360 OP_1001, OP_1003, OP_17001000, OP_17001002): Ditto.
361
362 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
363
364 * simops.c (OP_5605): Sign extend MIN32 and MAX32 before saturation
365 comparison.
366 (OP_5607): Ditto.
367 (OP_2A00): Ditto.
368 (OP_2800): Ditto.
369
370 1999-01-13 Jason Molenda (jsm@bugshack.cygnus.com)
371
372 * simops.c (OP_1223): Sign extend MIN32 and MAX32 before saturation
373 comparison.
374
375 Tue Nov 24 17:04:43 1998 Andrew Cagney <cagney@b1.cygnus.com>
376
377 * simops.c (sys/syscall.h): Include targ-vals.h instead.
378 (SYS_*): Replace with TARGET_SYS_*.
379
380 * Makefile.in: Add dependency on targ-vals.h.
381 (NL_TARGET): Define as NL_TARGET_d10v.
382
383 Wed Sep 30 00:06:32 1998 Andrew Cagney <cagney@amy.cygnus.com>
384
385 * interp.c (xfer_mem): Missing break, instruction memory case
386 flowed into unified memory case.
387
388 Wed Sep 30 10:14:18 1998 Nick Clifton <nickc@cygnus.com>
389
390 * simops.c: If load instruction with auto increment/decrement
391 addressing is used when the destination register is the same as
392 the address register, then ignore the auto increment/decrement.
393
394 Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
395
396 * configure: Regenerated to track ../common/aclocal.m4 changes.
397
398 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
399
400 * configure: Regenerated to track ../common/aclocal.m4 changes.
401 * config.in: Ditto.
402
403 Sun Apr 26 15:20:23 1998 Tom Tromey <tromey@cygnus.com>
404
405 * acconfig.h: New file.
406 * configure.in: Reverted change of Apr 24; use sinclude again.
407
408 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
409
410 * configure: Regenerated to track ../common/aclocal.m4 changes.
411 * config.in: Ditto.
412
413 Fri Apr 24 11:20:06 1998 Tom Tromey <tromey@cygnus.com>
414
415 * configure.in: Don't call sinclude.
416
417 Fri Apr 24 11:04:46 1998 Andrew Cagney <cagney@chook.cygnus.com>
418
419 * interp.c (struct hash_entry): OPCODE and MASK are unsigned.
420
421 * d10v_sim.h (remote-sim.h, sim-config.h): Include.
422
423 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
424
425 * configure: Regenerated to track ../common/aclocal.m4 changes.
426
427 Wed Apr 1 12:59:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
428
429 * simops.c (trace_input_func): Use move_from_cr / CREGS to obtain
430 up-to-date CR value.
431 (OP_OP_1000000, add3): Trace inputs before performing add.
432 (OP_5F00, <*>): Trace input registers before making system call.
433 (OP_5F00, <kill>): Trace R0, R1 not REGn.
434 (OP_5F00, <getpid>): Always return 47.
435
436 * d10v_sim.h (SLOT, SLOT_NR, SLOT_PEND_MASK, SLOT_PEND,
437 SLOT_DISCARD, SLOT_FLUSH): Define. An implementation of write
438 back slots.
439 (struct _state): Add struct slot slot to global state variable.
440 (struct _state): Delete fields SM, EA, DB, DM, IE, RP, MD, FX, ST,
441 F0, F1, C from global State variable.
442 (struct _state): Add struct trace to global State variable.
443 (GPR, SET_GPR): Define. SET_GPR uses SLOT_PEND.
444 (PSW*, SET_PSW*): Define. SET_PSW* uses SET_CREG.
445 (CREG, SET_CREG, SET_*): Define. SET_CREG uses func move_to_cr.
446 (INC_ADDR): Re-implement. Use SET_GPR to update registers.
447 (JMP): Re-implement. Use SET_* to update registers.
448
449 * interp.c: Use new SET_* et.al. macros to fetch / store
450 registers.
451 (get_operands): Squirrel away trace values at start of each
452 operand decode.
453 (do_2_short): Flush pending writes before issuing second
454 instruction.
455 (sim_resume): Flush pending writes at end of instruction cycle.
456 (sim_fetch_register, sim_store_register, sim_create_inferior):
457 After scheduling updates to registers using SET_*, flush updates.
458 (sim_resume): Re-order handling of RPT/repeat and IBA/hbreak so
459 that each sets pc using SET_* and last SET_* eventually winds out.
460
461 * simops.c: Use new SET_* et.al. macros to fetch / store
462 registers.
463 (move_to_cr): Add MASK argument for selective update of CREG bits.
464 Re-implement using new SET_* macros.
465 (trace_output_func, trace_output): Delete. Replace with.
466 (do_trace_output_flush, trace_output_finish, trace_output_40,
467 trace_output_32, trace_output_16, trace_output_void,
468 trace_output_flag): New functions. Handle specific trace cases.
469 (OP_*): Re-write tracing to use new trace_output_* functions.
470 (OP_*): Re-write to use new SET_* et.al. macros.
471 (FUNC, PARM[1-4], RETVAL, RETVAL32): Redo definition.
472 (RETVAL_HIGH, RETVAL_LOW): Delete, use RETVAL32.
473
474 Wed Apr 1 12:55:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
475
476 * configure.in (SIM_AC_OPTION_WARNINGS): Add.
477 configure: Re-generate.
478
479 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
480
481 * configure: Regenerated to track ../common/aclocal.m4 changes.
482
483 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
484
485 * configure: Regenerated to track ../common/aclocal.m4 changes.
486
487 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
488
489 * configure: Regenerated to track ../common/aclocal.m4 changes.
490
491 Tue Feb 17 12:38:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
492
493 * interp.c (sim_store_register, sim_fetch_register): Pass in
494 length parameter. Return -1.
495
496 Mon Oct 27 14:43:33 1997 Fred Fish <fnf@cygnus.com>
497
498 * (dmem_addr): If address is illegal or in I/O space, signal a bus
499 error. Allocate unified memory on demand. Fix DMEM address
500 calculations.
501
502 Mon Feb 16 10:27:53 1998 Andrew Cagney <cagney@b1.cygnus.com>
503
504 * simops.c (OP_5F20): Implement "dbt".
505 (OP_5F60): Implement "rtd".
506
507 * d10v_sim.h (DPC_CR): Define enum.
508 (DBT_VECTOR_START): Define
509 (DPSW, DPC): Define.
510
511 Fri Feb 13 15:15:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
512
513 * simops.c (move_to_cr): Sync regs[SP_IDX] with State.sp according
514 to PSW:SM.
515
516 * d10v_sim.h (struct _state): Add sp, as holding area for SPI/SPU.
517 (SP_IDX): Define.
518
519 Wed Feb 11 16:53:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
520
521 * simops.c (OP_5F00): Call error instead of abort for unknown
522 syscalls.
523
524 * d10v_sim.h (enum): Define DPSW_CR.
525
526 * simops.c (move_to_cr): Mask out hardwired zero bits in DPSW.
527
528 Tue Feb 10 18:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
529
530 * interp.c (sim_write_phys): Delete.
531 (sim_load): Call sim_load_file with sim_write and LMA.
532
533 Mon Feb 9 12:05:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
534
535 * interp.c: Rewrite xfer_mem so that it translates addresses as -
536 0x00... - DMAP translated memory, 0x01... IMAP translated memory,
537 0x10... - on-chip data, 0x11... - on-chip insn, 0x12... - unified
538 memory.
539 (pc_addr): Delete.
540 (imem_addr): New function - translate IMEM address.
541 (sim_resume): Use imem_addr to translate insn address, abort if
542 translation failed.
543 (sim_create_inferior): Write ARGV to memory using sim_write. Pass
544 argc/argv using r0/r1 not r2/r3.
545 (sim_size): Do not initialize IMAP/DMAP here.
546 (sim_open): Call sim_create_inferior and sim_size to initialize
547 the system.
548 (sim_create_inferior): Initialize IMAP/DMAP to hardware reset
549 defaults.
550 (init_system): Delete.
551 (xfer_mem, sim_fetch_register, sim_store_register): Do not call
552 init_system.
553 (decode_pc): Check prog_bfd is defined before looking up .text
554 section.
555
556 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
557
558 * configure: Regenerated to track ../common/aclocal.m4 changes.
559
560 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
561
562 * configure: Regenerated to track ../common/aclocal.m4 changes.
563
564 Sun Jan 25 22:23:01 1998 Michael Meissner <meissner@cygnus.com>
565
566 * interp.c (sim_stop_reason): Exit status is now in r0, not r2.
567
568 Sat Jan 24 19:00:30 1998 Michael Meissner <meissner@cygnus.com>
569
570 * d10v_sim.h (DEBUG_TRAP): New debug flag.
571
572 * simops.c (OP_5F00): If DEBUG_TRAP is on, turn traps 0-14 into
573 printing the registers.
574
575 Thu Jan 22 17:54:01 1998 Michael Meissner <meissner@cygnus.com>
576
577 * simops.c (op_types): New ABI, args are r0..r3, system call # is
578 in r4.
579 (trace_{in,out}put_func): Ditto.
580 (OP_4900): Ditto.
581 (OP_24800000): Ditto.
582 (OP_4D00): Ditto.
583 (OP_5F00): Ditto.
584
585 Thu Jan 22 14:30:36 1998 Fred Fish <fnf@cygnus.com>
586
587 * interp.c (UMEM_SEGMENTS): New define, set to 128.
588 (sim_size): Use UMEM_SEGMENTS rather than hardwired constant.
589 (sim_close): Reset prog_bfd to NULL after closing it. Also
590 reset prog_bfd_was_opened_p after closing prog_bfd.
591 (sim_load): Reset prog_bfd_was_opened_p after closing prog_bfd.
592 (sim_create_inferior): Get start address from abfd not prog_bfd.
593 (xfer_mem): Do bounds checking on addresses and return zero length
594 read/write on bad addresses, rather than aborting. Prepare to
595 be able to handle xfers that cross segment boundaries, but not
596 yet implemented. Only emit debug message when d10v_debug is
597 set as well as DEBUG being defined.
598
599 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
600
601 * configure: Regenerated to track ../common/aclocal.m4 changes.
602
603 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
604
605 * configure: Regenerated to track ../common/aclocal.m4 changes.
606 * config.in: Ditto.
607
608 Tue Dec 9 10:28:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
609
610 * d10v_sim.h (RPT_S): Index cregs with RPT_S_CR not RPT_E_CR.
611 (BPSW): Ditto for BPSW_CR and not PSW_CR.
612
613 * simops.c (OP_5F40): JMP to BPC instead of assigning PC directly.
614
615 Mon Dec 8 12:58:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
616
617 * simops.c (OP_5F00): From Martin Hunt <hunt@cygnus.com>. Change
618 reserved trap from 0 to 15. Add trap emulation code for 0-14.
619
620 * interp.c (sim_resume): From Martin Hunt <hunt@cygnus.com>. Check
621 IBA for SDBT.
622
623 * d10v_sim.h (AE_VECTOR_START, RIE_VECTOR_START,
624 SDBT_VECTOR_START, TRAP_VECTOR_START): Define.
625
626 * simops.c (OP_5F00): For "trap", mask out all but SM bit in PSW,
627 use move_to_cr.
628 (OP_5F00): For "trap", update BPSW with move_to_cr.
629
630 Fri Dec 5 15:31:17 1997 Andrew Cagney <cagney@b1.cygnus.com>
631
632 * d10v_sim.h (enum): Enumerate CR register names.
633 (enum): Enumerate PSW bit values.
634 (PSW): Obtain value uing move_from_cr.
635 (MOD_S, MOD_E, BPSW): Make r-values.
636 (move_from_cr, move_to_cr): Declare functions.
637
638 * interp.c (sim_fetch_register, sim_store_register): Use
639 move_from_cr and move_to_cr for CR register transfers.
640
641 * simops.c (move_from_cr, move_to_cr): New functions.
642 (OP_5F40): Move BPSW to PSW using move_to_cr and move_from_cr.
643 (OP_5600): For "mvtc", use function move_to_cr.
644 (OP_5200): For "mvfc", use function move_from_cr.
645
646 Fri Dec 5 13:33:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
647
648 * simops.c (OP_5600): For "mvtc" MOD_E and MOD_S, ensure that the
649 LSbit is zero.
650
651 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
652
653 * configure: Regenerated to track ../common/aclocal.m4 changes.
654
655 Thu Dec 4 16:51:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
656
657 * d10v_sim.h (struct _state): Add DM - PSW debug mask.
658
659 * simops.c (OP_5600): For "mvtc", save PSW.DM.
660 (OP_5200): Ditto for "mvfc".
661
662 Wed Dec 3 17:27:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
663
664 * d10v_sim.h (SEXT56): Define.
665
666 * simops.c (OP_4201): For "rac", sign extend 56 bit value before
667 it is shifted.
668
669 * d10v_sim.h (MAX32, MIN32, MASK32, MASK40): Re-define using
670 SIGNED64 macro.
671
672 Tue Dec 2 15:38:34 1997 Fred Fish <fnf@cygnus.com>
673
674 * interp.c (sim_resume): Call do_2_short with LEFT_FIRST or
675 RIGHT_FIRST, as appropriate, instead of hardcoded ints that
676 don't match enum values.
677
678 Tue Dec 2 15:01:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
679
680 * simops.c (OP_3A00): For "macu", perform multiply stage using 32
681 bit rather than 16 bit precision.
682 (OP_3C00): For "mulxu", store unsigned product in ACC.
683 (OP_3800): For "msbu", subtract unsigned product from ACC,
684 (OP_0): For "sub", compute carry by comparing inputs.
685
686 Tue Dec 2 11:04:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
687
688 * simops.c (OP_1000): For "sub2w", compute carry by comparing
689 inputs.
690
691 Mon Nov 17 20:57:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
692
693 * simops.c (OP_1): Use 32 bit unsigned arithmetic for subtract,
694 carry indicated by value > 0xffff.
695
696 Fri Nov 14 12:51:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
697
698 * interp.c (sim_resume): Don't set up SIGINT handler using signal,
699 handled by client.
700 (sim_resume): Fix race condition of a direct assignment to
701 stop_simulator, conditionally call sim_stop.
702 (sim_stop_reason): Check stop_simulator returning SIGINT. Clear
703 stop_simulator ready for next sim_resume call.
704 (sim_ctrl_c): Delete function.
705
706 Thu Nov 13 19:29:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
707
708 * interp.c (sim_resume): For "REP", only check/update the PC when
709 a branch instruction has not been executed.
710
711 Mon Nov 10 17:50:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
712
713 * simops.c (OP_4201): "rachi". Sign extend bit 40 of ACC. Sign
714 extend bit 44 all constants.
715 (OP_4201): Replace GCC specific 0x..LL with SIGNED64 macro.
716
717 Fri Oct 24 10:26:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
718
719 * d10v_sim.h: Include sim-types.h.
720 (uint8, in816, uiny16, int32, uint32, int64, uint64): Typedef
721 using unsigned8 et.al. from sim-types.h.
722 (SEXT32, SEXT40, SEXT44, SEXT60): Replace GCC specific 0x..LL with
723 SIGNED64 macro.
724
725 Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
726
727 * interp.c (sim_write_phys): New function, write to physical
728 instead of virtual memory.
729
730 * interp.c (sim_load): Pass lma_p and sim_write_phys to
731 sim_load_file.
732
733 Mon Oct 13 10:55:07 1997 Fred Fish <cygnus.com>
734
735 * simops.c (OP_6A01): Change OP_POSTDEC to OP_POSTINC and move
736 exception generation code to OP_6E01.
737 (OP_6E01): Change OP_POSTINC to OP_POSTDEC and insert exception
738 generation code.
739
740 Sat Oct 11 09:02:08 1997 Fred Fish <fnf@cygnus.com>
741
742 * simops.c (OP_6401): postdecrement on r15 is OK, remove exception.
743 (OP_6601): Ditto.
744
745 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
746
747 * configure: Regenerated to track ../common/aclocal.m4 changes.
748
749 Sat Sep 27 12:51:34 1997 Fred Fish <fnf@cygnus.com>
750
751 * interp.c (pc_addr): Discard upper bit(s) of PC in case
752 IMAP1 selects unified memory.
753 * d10v_sim.h (INC_ADDR): Align MOD_E to increment before testing
754 for end condition.
755
756 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
757
758 * configure: Regenerated to track ../common/aclocal.m4 changes.
759
760 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
761
762 * configure: Regenerated to track ../common/aclocal.m4 changes.
763
764 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
765
766 * configure: Regenerated to track ../common/aclocal.m4 changes.
767
768 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
769
770 * configure: Regenerated to track ../common/aclocal.m4 changes.
771
772 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
773
774 * configure: Regenerated to track ../common/aclocal.m4 changes.
775
776 Wed Sep 10 22:30:24 1997 Martin M. Hunt <hunt@cygnus.com>
777
778 * interp.c (sim_resume): Increment PC at end of rep
779 loop.
780
781 * simops.c (OP_4201): Fix rachi instruction.
782
783 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
784
785 * configure: Regenerated to track ../common/aclocal.m4 changes.
786
787 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
788
789 * configure: Regenerated to track ../common/aclocal.m4 changes.
790 * config.in: Ditto.
791
792 Tue Aug 26 10:37:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
793
794 * interp.c (sim_kill): Delete.
795 (sim_create_inferior): Add ABFD argument.
796 (sim_load): Move setting of PC from here.
797 (sim_create_inferior): To here.
798 (start_address): Delete variable.
799
800 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
801
802 * configure: Regenerated to track ../common/aclocal.m4 changes.
803 * config.in: Ditto.
804
805 Mon Aug 25 15:39:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
806
807 * interp.c (sim_open): Add ABFD argument.
808
809 Tue May 20 10:14:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
810
811 * interp.c (sim_open): Add callback argument.
812 (sim_set_callbacks): Remove SIM_DESC argument.
813
814 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
815
816 * configure: Regenerated to track ../common/aclocal.m4 changes.
817
818 Tue Apr 22 10:29:23 1997 Doug Evans <dje@canuck.cygnus.com>
819
820 * interp.c (sim_open): Undo patch to add -E support.
821
822 Fri Apr 18 13:39:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
823
824 * interp.c (sim_stop): New function.
825
826 Thu Apr 17 02:42:00 1997 Doug Evans <dje@canuck.cygnus.com>
827
828 * Makefile.in (SIM_OBJS): Add sim-load.o.
829 * d10v_sim.h (exec_bfd): Rename to prog_bfd.
830 * interp.c: #include bfd.h.
831 (myname, sim_kind, start_address): New static locals.
832 (prog_bfd_was_opened_p, prog_bfd): New static locals.
833 (decode_pc): Update to use prog_bfd.
834 (sim_open): Set sim_kind, myname. Ignore -E arg.
835 (sim_close): Close prog_bfd if simulator opened it.
836 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
837 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
838 Call sim_load_file to load file into simulator.
839 * simops.c (trace_input_func): exec_bfd renamed to prog_bfd.
840
841 Wed Apr 16 16:12:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
842
843 * simops.c (OP_5F00): Only provide system calls SYS_execv,
844 SYS_wait, SYS_wait, SYS_utime, SYS_time if defined by the host.
845
846 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
847
848 * configure: Regenerated to track ../common/aclocal.m4 changes.
849 * config.in: Ditto.
850
851 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
852
853 * interp.c (sim_open): New arg `kind'.
854
855 * configure: Regenerated to track ../common/aclocal.m4 changes.
856
857 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
858
859 * configure: Regenerated to track ../common/aclocal.m4 changes.
860
861 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
862
863 * configure: Re-generate.
864
865 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
866
867 * configure: Regenerate to track ../common/aclocal.m4 changes.
868
869 * simops.c (OP_5F00): Remove old traps 1-3. Make trap 15 the same
870 as trap 0, which will be deprecated. Only set errno, if an error
871 in fact was returned.
872
873 Thu Mar 13 12:41:20 1997 Doug Evans <dje@canuck.cygnus.com>
874
875 * interp.c: Delete redundant prototypes of sim_foo fns.
876 (sim_open): New SIM_DESC result. Argument is now in argv form.
877 (other sim_*): New SIM_DESC argument.
878
879 Thu Mar 13 10:29:04 1997 Michael Meissner <meissner@cygnus.com>
880
881 * simops.c (trace_{input,output}_func): Call flush_stdout from the
882 callback functions.
883 (OP_5F00): Ditto.
884 (OP_6{4,6,C,A}01): Test for post decrement on the stack pointer.
885 (OP_{1200,1000000,201,5FE0,1003,17001002}): Fix problems in
886 setting the carry bit after an add or a subtract.
887
888 Wed Feb 12 16:04:15 1997 Michael Meissner <meissner@cygnus.com>
889
890 * simops.c (OP_{1403,15002A02,3{0,4}0{0,1}}): Only use the bottom
891 40 bits of accumulators. Sign/zero extend as appropriate.
892
893 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
894
895 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
896 COMMON_{PRE,POST}_CONFIG_FRAG instead.
897 * configure.in: sinclude ../common/aclocal.m4.
898 * configure: Regenerated.
899
900 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
901
902 * configure configure.in Makefile.in: Update to new configure
903 scheme which is more compatible with WinGDB builds.
904 * configure.in: Improve comment on how to run autoconf.
905 * configure: Re-run autoconf to get new ../common/aclocal.m4.
906 * Makefile.in: Use autoconf substitution to install common
907 makefile fragment.
908
909 Fri Dec 27 22:54:05 1996 Angela Marie Thomas (angela@cygnus.com)
910
911 * gencode.c: patch to not #include "d10v_sim.h" which
912 unecessarily includes bfd.h and causes wingdb configure
913 to fail.
914
915 Mon Dec 16 13:39:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
916
917 * interp.c (xfer_mem): Change unified memory to 0x0.
918
919 Thu Nov 28 20:42:56 1996 Michael Meissner <meissner@tiktok.cygnus.com>
920
921 * simops.c (OP_3E01): Fix tracing information.
922 (OP_300{0,1}): Do not propigate sign.
923
924 Mon Nov 25 19:47:40 1996 Doug Evans <dje@canuck.cygnus.com>
925
926 * config.in (WORDS_BIGENDIAN): Add.
927 * configure: Regenerated.
928 * d10v_sim.h: #include "config.h"
929
930 Sat Nov 23 09:34:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
931
932 * gencode.c (write_opcodes): Eliminate warnings when generated
933 table.c is compiled.
934
935 Wed Nov 20 19:41:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
936
937 * interp.c (sim_open): Cast result of calloc, and make sure NULL
938 was not returned.
939 (dmem_addr): If address is illegal or in I/O space, signal a bus
940 error.
941 (pc_addr): Signal bus error, not illegal instruction for bogus
942 pc.
943
944 Wed Nov 20 01:23:03 1996 Doug Evans <dje@canuck.cygnus.com>
945
946 * Makefile.in: Delete all stuff moved to ../common/Make-common.in.
947 (SIM_OBJS,SIM_EXTRA_CFLAGS,SIM_EXTRA_CLEAN): Define.
948 * configure.in: Simplify using macros in ../common/aclocal.m4.
949 Call AC_CHECK_HEADERS(unistd.h).
950 * configure: Regenerated.
951 * config.in: New file.
952 * interp.c: #include "callback.h".
953 * simops.c: #include "config.h". #include <unistd.h> if present.
954
955 Fri Nov 8 16:19:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
956
957 * d10v-sim.h (simops): Add flag is_long.
958 (State): Add pc_changed. Instructions which update the PC should
959 use the JMP macro which sets this.
960 (JMP): New macro. Sets the PC and the pc_changed flag.
961
962 * gencode.c (write_opcodes): Add is_long field.
963
964 * interp.c (lookup_hash): If we blindly apply a short opcode's mask
965 to a long opcode we could get a false match. Check the opcode size.
966 (hash): Add a size field to the hash table.
967 (sim_open): Initialize size field in hash table.
968 (sim_resume): Change to logic for setting the PC. Used to increment the
969 PC if it had not been changed. This didn't allow single-instruction loops.
970 Now checks the flag State.pc_changed. Also now stops when ^C is received.
971 (dmem_addr): Fix translation of data segments to unified memory.
972 (sim_ctrl_c): New function. When ^C is received, set stop_simulator flag.
973
974 * simops.c: Changed all branch and jump instructions to use new JMP macro.
975 (OP_20000000): Corrected trace information to show this is a ldi.l, not
976 a ldi.s instruction.
977
978 Thu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
979
980 * interp.c (sim_fetch_register, sim_store_register): Fix bug where
981 updating the accumulators was overwriting other parts of the global
982 State variable.
983
984 Wed Oct 30 17:35:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
985
986 * interp.c (bfd.h) Don't include it here any more.
987 (text{,_start,_end}): Move here from simops.c and make extern.
988 (decode_pc): New function to return the PC as an address that the
989 debugger can use.
990 (dmem_addr): Print decoded PC in error message.
991 (pc_addr): Ditto.
992
993 * simops.c (bfd.h) Don't include it here any more.
994 (text{,_start,_end}): Move to simops.c.
995 (trace_input_func): Move decoding of PC, and looking up .text
996 start to decode_pc.
997
998 * d10v_sim.h (bfd.h): Include it here.
999 (text{,_start,_end}): Add external declarations.
1000 (exec_bfd): Ditto.
1001 (decode_pc): Ditto.
1002
1003 Tue Oct 29 12:13:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1004
1005 * interp.c (sim_size): Now allocates unified memory for imap segments
1006 0,1,2, and 127. Initializes imap0 and imap1 to 0x1000. Initializes dmap to 0.
1007 (sim_write): Just call xfer_mem().
1008 (sim_read): Just call xfer_mem().
1009 (xfer_mem): New function. Does appropriate memory mapping and copies bytes.
1010 (dmem_addr): New function. Reads dmap register and translates data
1011 addresses to local addresses.
1012 (pc_addr): New function. Reads imap register and computes local address
1013 corresponding to contents of the PC.
1014 (sim_resume): Change to use pc_addr().
1015 (sim_create_inferior): Change reinitialization code. Also reinitializes
1016 imap[01] and dmap.
1017 (sim_fetch_register): Add fake registers 32,33,34 for imap0, imap1, and dmap.
1018 (sim_store_register): Add fake registers 32,33,34 for imap0, imap1, and dmap.
1019
1020 * simops.c (MEMPTR): Redefine to use dmem_addr().
1021 (OP_5F00): Replace references to STate.imem with dmem_addr().
1022
1023 * d10v-sim.h (State): Remove mem_min and mem_max. Add umem[128].
1024 (RB,SW,RW,SLW,RLW): Redefine to use dmem_addr().
1025 (IMAP0,IMAP1,DMAP,SET_IMAP,SET_IMAP1,SET_DMAP): Define.
1026
1027 Tue Oct 22 15:22:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1028
1029 * d10v_sim.h (_ins_type): Reorganize, so that we can provide
1030 better statistics, like not counting NOPS as parallel
1031 instructions, and printing total cycles.
1032 (ins_type_counters): Make unsigned long.
1033 (left_nops,right_nops): Fold into ins_type_counters.
1034
1035 * simops.c (trace_input_func): Print new instruction types.
1036 Handle OP_R2R3 as input types.
1037 (OP_{38000000,7000}): Correctly sign extend bytes.
1038 (OP_5E00): Don't count NOPs as parallel instructions.
1039 (OP_460B): Remove unused variable.
1040 (OP_5F00): Ditto.
1041
1042 * interp.c (ins_type_counters): Make unsigned long.
1043 (left_nops,right_nops): Delete.
1044 (most functions): Add prototypes.
1045 (INLINE): If GCC and optimize define as __inline__.
1046 ({,lookup_}hash,get_operands): Declare as INLINE.
1047 (do_parallel): Count conditional operations.
1048 (add_commas): New function, to add commas every 3 digits.
1049 (sim_size): Call add_commas to print numbers.
1050 (sim_{open,resume}): Delete unused variables.
1051 (sim_info): Provide better statistics.
1052 (sim_read): Add int return type.
1053
1054 Mon Oct 21 16:16:26 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1055
1056 * interp.c (sim_resume): Change the way single-stepping and exceptions
1057 are handled so single-stepping works again.
1058
1059 Thu Oct 17 12:24:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1060
1061 * endian.c: Optimize simulated loads/stores on x86, AIX, and big
1062 endian hosts.
1063
1064 * configure.in (--enable-sim-bswap): New switch to enable using
1065 the BSWAP instruction on x86's.
1066 * configure: Regenerate.
1067
1068 * Makefile.in ({SWAP,CONFIG}_CFLAGS): Add --enable-sim-bswap
1069 support.
1070
1071 Wed Oct 16 13:50:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1072
1073 * endian.c: New file. Move endian functions here from interp.c.
1074 Optimize code, and make it work as either inline functions or as a
1075 separate file.
1076
1077 * interp.c: Move endian functions from here to endian.c.
1078
1079 * Makefile.in (INCLUDE): Add endian.c.
1080 (run,libsim.a): Add dependency on endian.o.
1081 (endian.o): Add dependency.
1082
1083 * d10v_sim.h (read/write support): Always go through the machine
1084 independent endian functions. If compiling with GCC and
1085 optimizing, include endian.c so the endian functions are inlined.
1086
1087 * simops.c (OP_5F00): Correct tracing of accumulators.
1088
1089 Tue Oct 15 10:57:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1090
1091 * simops.c (OP_5F00): Add support for getpid, kill system calls.
1092
1093 * interp.c (do_{2_short,parallel}): If an exception is raised,
1094 don't execute the second instruction.
1095
1096 Sat Oct 12 22:17:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1097
1098 * simops.c (OP_{31000000,6601,6201,6200}): Store address in a
1099 temporary in case the register is overriden when loading.
1100 (OP_6200): Output type is OP_DREG for tracing.
1101
1102 Fri Oct 4 23:46:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1103
1104 * d10v_sim.h (struct _state): Add mem_{min,max} fields.
1105
1106 * interp.c (sim_size): Initialize mem_{min,max} fields.
1107 (sim_write): Update mem_{min,max} fields.
1108 (sim_resume): If PC is not in the minimum/maximum memory range,
1109 abort.
1110 (sim_create_inferior): Preserve mem_{min,max} fields.
1111
1112 Fri Sep 27 13:11:58 1996 Mark Alexander <marka@cygnus.com>
1113
1114 * simops.c (OP_5F00): Add support for time() system call.
1115
1116 Wed Sep 25 16:31:41 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1117
1118 * simops.c (OP_{6E01,6A01,6E1F,6A00}): Print both words being
1119 stored if tracing.
1120 (OP_5F00,trace_{in,out}put_func): Add finer grain tracing for
1121 system calls.
1122
1123 Mon Sep 23 17:55:30 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1124
1125 * simops.c (op_types): Add OP_{CONSTANT8,R2,R3}.
1126 (trace_input_func): Add support for OP_{CONSTANT8,R2,R3}.
1127 (OP_{4900,24800000,4800,4A00,4B00,4D00,4C00}): Add OP_R2 and OP_R3
1128 to call/subroutine returns to trace the first two arguments and
1129 the return value. For small jumps, use CONSTANT8, not CONSTANT16.
1130
1131 Fri Sep 20 15:36:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1132
1133 * interp.c (sim_create_inferior): Reinitialize State every time
1134 sim_create_inferior() is called.
1135
1136 Thu Sep 19 21:38:20 1996 Michael Meissner <meissner@wogglebug.ziplink.net>
1137
1138 * simops.c (OP_{401,2000000,601,3000000,23000000}): Get sign right
1139 on comparisons.
1140 (OP_401): Fix tracing information.
1141
1142 Thu Sep 19 10:30:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1143
1144 * simops.c (SIZE_{PC,LINE_NUMBER}): New default sizes for output.
1145 (trace_input_func): Use them.
1146 (trace_input_func): Make sure there is a trailing space after the
1147 instruction.
1148 (OP_6200): Fix tracing info.
1149
1150 * Makefile.in (run): Add dependencies on libbfd.a and
1151 libiberity.a.
1152
1153 Wed Sep 18 09:13:25 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1154
1155 * d10v_sim.h (DEBUG_INSTRUCTION): New debug value to include line
1156 numbers and function names in debug trace.
1157 (DEBUG): If not defined, set to DEBUG_TRACE, DEBUG_VALUES, and
1158 DEBUG_LINE_NUMBER.
1159 (SIG_D10V_{STOP,EXIT}): Values to represent the stop instruction
1160 and exit system call trap being executed.
1161
1162 * interp.c (sim_stop_reason): Set exit code correctly for stop
1163 instruction and exit system call trap.
1164
1165 * configure.in (--enable-sim-cflags): Remove trace case.
1166 (--enable-sim-debug): New switch to set the debug values.
1167 * configure: Regenerate.
1168
1169 * simops.c (trace_{input,output}_func): Rename from
1170 trace_{input,output}.
1171 (trace_{input,output}): Call trace_{input,output}_func if
1172 d10v_debug is non-zero.
1173 (SIZE_INSTRUCTION): Cut down to 8.
1174 (SIZE_OPERANDS): Cut down to 18.
1175 (SIZE_LOCATION): New value for size of line number, function name
1176 field.
1177 (init_text_p,text{,_start,_end}): New static variables for
1178 printing line number and function name.
1179 (exec_bfd): New external that run.c sets.
1180 (trace_input_func): Print line number and function name if
1181 available and if desired.
1182 (OP_4E09): Don't print out DBT message.
1183 (OP_5FE0): Set exception field to SIG_D10V_STOP.
1184 (OP_5F00): Set exception field to SIG_D10V_EXIT.
1185
1186 Sat Sep 14 22:18:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1187
1188 * interp.c (do_2_short): If the instruction encodes jump->ins,
1189 don't do the second instruction if the jump succeeds.
1190
1191 Fri Sep 13 22:35:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1192
1193 * simops.c (OP_5F00): Use unknown traps to print all GPRs,
1194 accumulators, PC, and F0/F1/C flags.
1195
1196 Thu Sep 12 12:50:11 1996 Mark Alexander <marka@cygnus.com>
1197
1198 * simops.c (OP_5F00): Fix problems with system calls.
1199
1200 Thu Sep 12 12:19:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1201
1202 * simops.c (OP_5F00): Correct tracing information for trap.
1203
1204 Wed Sep 11 18:55:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1205
1206 * Makefile.in (CSEARCH): Correctly find opcodes directory.
1207
1208 Mon Sep 9 13:27:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1209
1210 * simops.c (trace_output): Properly align accumulator output.
1211 (OP_3{0,2,4}00): Properly parenthesize test expression. Add error
1212 if shift count is too high.
1213 (OP_4E{00,02,04,20,22,40,42}): Make tests agree with book.
1214 (OP_4E09): Make cpfg properly trace the input flags.
1215 (op_types): Add OP_FLAG_OUTPUT.
1216 (trace_{input,output}): Support OP_FLAG_OUTPUT.
1217 (OP_31000000): This ld2w varient is a 16-bit memory reference, not
1218 an 8-bit memory reference instruction for tracing purposes.
1219 (OP_201): Addi needs to set the carry.
1220
1221 Fri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1222
1223 * simops.c (OP_2600, OP_2601): Changed min and max comparisons
1224 to use signed register values.
1225
1226 Wed Sep 4 11:35:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1227
1228 * d10v_sim.h (DEBUG_*): Add bit flags for controlling debug
1229 output.
1230 (_ins_type): New enumeration to specify which container an
1231 instruction is in, and whether it is part of a parallel operation.
1232 (_state): Add ins_type field.
1233 ({,u}int{8,16,32,64}): Use limits.h to size the appropriate types.
1234 (ins_type_counters): Counters for the various instruction types.
1235 ({left,right}_nops): Counters for the number of nops in each
1236 container.
1237 (d10v_debug): New variable to indicate whether debugging is turned
1238 on.
1239
1240 * simops.c: (all functions): Change all #ifdef DEBUG code so that
1241 the input and output values can be traced, along with the
1242 instruction type. Make the -t option enable tracing.
1243 (all functions): Change printf calls to use the printf_filtered
1244 function in the callback table.
1245
1246 * interp.c (_leftright): New enumeration to say whether 2 short
1247 instructions are done left first or right first.
1248 (do_{long,2_short,parallel}): Indicate in the machine state which
1249 type of instruction this is. Count each of the types of
1250 instructions executed.
1251 (sim_size): Only print the memory sizes if DEBUG_MEMSIZE debug
1252 flag is set.
1253 (sim_resume): Pass left/right indication to do_2_short.
1254 (all functions): Change printf calls to use the printf_filtered
1255 function in the callback table.
1256 (sim_trace): Turn on debug flag if DEBUG was defined, and call
1257 sim_resume.
1258 (sim_info): Print out statistics on instructions.
1259 (sim_{trace,create_inferior}): Eliminate extraneous output unless
1260 debugging.
1261 (sim_open): If args == -t and DEBUG was defined, set d10v_debug.
1262 Only initialize the hash table the first time sim_open is called.
1263
1264 * Makefile.in: Make objects depend on d10v_sim.h.
1265 ({,SIM_}CFLAGS): Include configure dependent switches. Setting
1266 CFLAGS does not override host/target defines or SIM_CFLAGS.
1267 (CC_FOR_BUILD,gencode): Use CC_FOR_BUILD to compile gencode.
1268 (run): By default, the math library is not needed to be linked
1269 in.
1270 ({BFD,LIBIBERTY}_LIB): Define as variables so they can be
1271 overridden.
1272 (VPATH): Don't set to anything but @srcdir@ to work with non-GNU
1273 makes.
1274 ({run,callback}.o): Provide explicit paths to their appropriate
1275 source directories.
1276 (gencode{,.o},d10v-opc.o): Split compilation into creating object
1277 and linking. Instead of linking in libopcodes.a, just compile
1278 d10v-opc.o directly to handle canadian cross.
1279 (CSEARCH): Add opcodes directory.
1280
1281 * configure.in (--enable-sim-cflags): New switch to allow user to
1282 set the defaults.
1283 (CC_FOR_BUILD): Deal with canadian crosses.
1284 * configure: Regenerate.
1285
1286 Wed Sep 04 04:45:34 1996 Mark Alexander <marka@cygnus.com>
1287
1288 * simops.c: Include correct syscall.h for d10v, not host's.
1289 Fix #ifdef SYS_stat.
1290
1291 Tue Sep 3 14:00:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1292
1293 * simops.c (OP_5F00): Wrap all SYS_xxx traps with #ifdef.
1294 Add trap 2 to be printf and trap 3 to be putchar.
1295
1296 Wed Aug 28 21:42:34 1996 Mark Alexander <marka@cygnus.com>
1297
1298 * Makefile.in, d10v_sim.h, interp.c, simops.c: Add support
1299 for low-level system calls.
1300
1301 Wed Aug 28 17:33:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1302
1303 * Makefile.in, d10v_sim.h, interp.c: Fix byte-order problems.
1304
1305 Mon Aug 26 18:30:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1306
1307 * d10v_sim.h (SEXT32): Added.
1308 * interp.c: Commented out printfs.
1309 * simops.c: Fixed error in sb and st2w.
1310
1311 Thu Aug 15 13:30:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1312
1313 * Makefile.in, d10v_sim.h, interp.c, simops.c: Added remaining
1314 DSP instructions. Added modulo addressing.
1315
1316 Sun Aug 11 12:57:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1317
1318 * Makefile.in, d10v_sim.h, interp.c, simops.c: Snapshot.
1319
1320 Fri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1321
1322 * d10v_sim.h, simops.c: Snapshot.
1323
1324 Thu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1325
1326 * ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h,
1327 gencode.c, interp.c, simops.c: Created.
1328
This page took 0.191177 seconds and 4 git commands to generate.