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