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