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