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