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