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