Commit | Line | Data |
---|---|---|
193e528c FF |
1 | Tue Dec 2 15:38:34 1997 Fred Fish <fnf@cygnus.com> |
2 | ||
3 | * interp.c (sim_resume): Call do_2_short with LEFT_FIRST or | |
4 | RIGHT_FIRST, as appropriate, instead of hardcoded ints that | |
5 | don't match enum values. | |
6 | ||
ae558075 AC |
7 | Tue Dec 2 15:01:08 1997 Andrew Cagney <cagney@b1.cygnus.com> |
8 | ||
9 | * simops.c (OP_3A00): For "macu", perform multiply stage using 32 | |
10 | bit rather than 16 bit precision. | |
9420287e | 11 | (OP_3C00): For "mulxu", store unsigned product in ACC. |
d294a657 | 12 | (OP_3800): For "msbu", subtract unsigned product from ACC, |
193e528c | 13 | (OP_0): For "sub", compute carry by comparing inputs. |
ae558075 | 14 | |
51b057f2 | 15 | Tue Dec 2 11:04:37 1997 Andrew Cagney <cagney@b1.cygnus.com> |
70ee56c5 | 16 | |
51b057f2 AC |
17 | * simops.c (OP_1000): For "sub2w", compute carry by comparing |
18 | inputs. | |
70ee56c5 AC |
19 | |
20 | Mon Nov 17 20:57:21 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
21 | ||
22 | * simops.c (OP_1): Use 32 bit unsigned arithmetic for subtract, | |
23 | carry indicated by value > 0xffff. | |
24 | ||
25 | Fri Nov 14 12:51:20 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
26 | ||
27 | * interp.c (sim_resume): Don't set up SIGINT handler using signal, | |
28 | handled by client. | |
29 | (sim_resume): Fix race condition of a direct assignment to | |
30 | stop_simulator, conditionally call sim_stop. | |
31 | (sim_stop_reason): Check stop_simulator returning SIGINT. Clear | |
32 | stop_simulator ready for next sim_resume call. | |
33 | (sim_ctrl_c): Delete function. | |
34 | ||
35 | Thu Nov 13 19:29:34 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
36 | ||
37 | * interp.c (sim_resume): For "REP", only check/update the PC when | |
38 | a branch instruction has not been executed. | |
39 | ||
87192c63 AC |
40 | Mon Nov 10 17:50:18 1997 Andrew Cagney <cagney@b1.cygnus.com> |
41 | ||
42 | * simops.c (OP_4201): "rachi". Sign extend bit 40 of ACC. Sign | |
43 | extend bit 44 all constants. | |
44 | (OP_4201): Replace GCC specific 0x..LL with SIGNED64 macro. | |
45 | ||
1315b4cb AC |
46 | Fri Oct 24 10:26:29 1997 Andrew Cagney <cagney@b1.cygnus.com> |
47 | ||
48 | * d10v_sim.h: Include sim-types.h. | |
49 | (uint8, in816, uiny16, int32, uint32, int64, uint64): Typedef | |
50 | using unsigned8 et.al. from sim-types.h. | |
51 | (SEXT32, SEXT40, SEXT44, SEXT60): Replace GCC specific 0x..LL with | |
52 | SIGNED64 macro. | |
53 | ||
9e03a68f AC |
54 | Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com> |
55 | ||
56 | * interp.c (sim_write_phys): New function, write to physical | |
57 | instead of virtual memory. | |
58 | ||
b5da31ac | 59 | * interp.c (sim_load): Pass lma_p and sim_write_phys to |
9e03a68f AC |
60 | sim_load_file. |
61 | ||
1155e06e FF |
62 | Mon Oct 13 10:55:07 1997 Fred Fish <cygnus.com> |
63 | ||
64 | * simops.c (OP_6A01): Change OP_POSTDEC to OP_POSTINC and move | |
65 | exception generation code to OP_6E01. | |
66 | (OP_6E01): Change OP_POSTINC to OP_POSTDEC and insert exception | |
67 | generation code. | |
68 | ||
93f0cb69 FF |
69 | Sat Oct 11 09:02:08 1997 Fred Fish <fnf@cygnus.com> |
70 | ||
71 | * simops.c (OP_6401): postdecrement on r15 is OK, remove exception. | |
72 | (OP_6601): Ditto. | |
73 | ||
74 | Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
75 | ||
76 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
77 | ||
823f2df4 FF |
78 | Sat Sep 27 12:51:34 1997 Fred Fish <fnf@cygnus.com> |
79 | ||
80 | * interp.c (pc_addr): Discard upper bit(s) of PC in case | |
81 | IMAP1 selects unified memory. | |
5f90b21e FF |
82 | * d10v_sim.h (INC_ADDR): Align MOD_E to increment before testing |
83 | for end condition. | |
823f2df4 FF |
84 | |
85 | Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
86 | ||
87 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
88 | ||
92f91d1f AC |
89 | Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com> |
90 | ||
91 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
92 | ||
794e9ac9 AC |
93 | Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com> |
94 | ||
95 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
96 | ||
b45caf05 AC |
97 | Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com> |
98 | ||
99 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
100 | ||
101 | Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
102 | ||
103 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
104 | ||
30d81984 MH |
105 | Wed Sep 10 22:30:24 1997 Martin M. Hunt <hunt@cygnus.com> |
106 | ||
107 | * interp.c (sim_resume): Increment PC at end of rep | |
108 | loop. | |
109 | ||
110 | * simops.c (OP_4201): Fix rachi instruction. | |
111 | ||
6fea4763 DE |
112 | Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba> |
113 | ||
114 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
115 | ||
88117054 AC |
116 | Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
117 | ||
118 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
119 | * config.in: Ditto. | |
120 | ||
7230ff0f AC |
121 | Tue Aug 26 10:37:49 1997 Andrew Cagney <cagney@b1.cygnus.com> |
122 | ||
123 | * interp.c (sim_kill): Delete. | |
fafce69a AC |
124 | (sim_create_inferior): Add ABFD argument. |
125 | (sim_load): Move setting of PC from here. | |
126 | (sim_create_inferior): To here. | |
127 | (start_address): Delete variable. | |
7230ff0f | 128 | |
247fccde AC |
129 | Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
130 | ||
131 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
132 | * config.in: Ditto. | |
133 | ||
134 | Mon Aug 25 15:39:29 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
135 | ||
136 | * interp.c (sim_open): Add ABFD argument. | |
137 | ||
138 | Tue May 20 10:14:45 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
139 | ||
140 | * interp.c (sim_open): Add callback argument. | |
141 | (sim_set_callbacks): Remove SIM_DESC argument. | |
142 | ||
143 | Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com> | |
144 | ||
145 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
146 | ||
81f46481 DE |
147 | Tue Apr 22 10:29:23 1997 Doug Evans <dje@canuck.cygnus.com> |
148 | ||
149 | * interp.c (sim_open): Undo patch to add -E support. | |
150 | ||
8517f62b AC |
151 | Fri Apr 18 13:39:01 1997 Andrew Cagney <cagney@b1.cygnus.com> |
152 | ||
153 | * interp.c (sim_stop): New function. | |
154 | ||
04885cc3 DE |
155 | Thu Apr 17 02:42:00 1997 Doug Evans <dje@canuck.cygnus.com> |
156 | ||
157 | * Makefile.in (SIM_OBJS): Add sim-load.o. | |
158 | * d10v_sim.h (exec_bfd): Rename to prog_bfd. | |
159 | * interp.c: #include bfd.h. | |
160 | (myname, sim_kind, start_address): New static locals. | |
161 | (prog_bfd_was_opened_p, prog_bfd): New static locals. | |
162 | (decode_pc): Update to use prog_bfd. | |
163 | (sim_open): Set sim_kind, myname. Ignore -E arg. | |
164 | (sim_close): Close prog_bfd if simulator opened it. | |
165 | (sim_create_inferior): Return SIM_RC. Delete arg start_address. | |
166 | (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd. | |
167 | Call sim_load_file to load file into simulator. | |
168 | * simops.c (trace_input_func): exec_bfd renamed to prog_bfd. | |
169 | ||
87e43259 AC |
170 | Wed Apr 16 16:12:03 1997 Andrew Cagney <cagney@b1.cygnus.com> |
171 | ||
172 | * simops.c (OP_5F00): Only provide system calls SYS_execv, | |
173 | SYS_wait, SYS_wait, SYS_utime, SYS_time if defined by the host. | |
174 | ||
175 | Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
176 | ||
177 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
178 | * config.in: Ditto. | |
179 | ||
fbda74b1 DE |
180 | Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com> |
181 | ||
8020feac DE |
182 | * interp.c (sim_open): New arg `kind'. |
183 | ||
fbda74b1 DE |
184 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
185 | ||
a35e91c3 AC |
186 | Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
187 | ||
188 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
189 | ||
190 | Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
191 | ||
192 | * configure: Re-generate. | |
193 | ||
601fb8ae MM |
194 | Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com> |
195 | ||
196 | * configure: Regenerate to track ../common/aclocal.m4 changes. | |
197 | ||
198 | * simops.c (OP_5F00): Remove old traps 1-3. Make trap 15 the same | |
eb312eff MM |
199 | as trap 0, which will be deprecated. Only set errno, if an error |
200 | in fact was returned. | |
601fb8ae | 201 | |
395adcff DE |
202 | Thu Mar 13 12:41:20 1997 Doug Evans <dje@canuck.cygnus.com> |
203 | ||
204 | * interp.c: Delete redundant prototypes of sim_foo fns. | |
205 | (sim_open): New SIM_DESC result. Argument is now in argv form. | |
206 | (other sim_*): New SIM_DESC argument. | |
207 | ||
fd435e9f MM |
208 | Thu Mar 13 10:29:04 1997 Michael Meissner <meissner@cygnus.com> |
209 | ||
210 | * simops.c (trace_{input,output}_func): Call flush_stdout from the | |
211 | callback functions. | |
212 | (OP_5F00): Ditto. | |
f4b022d3 MM |
213 | (OP_6{4,6,C,A}01): Test for post decrement on the stack pointer. |
214 | (OP_{1200,1000000,201,5FE0,1003,17001002}): Fix problems in | |
215 | setting the carry bit after an add or a subtract. | |
fd435e9f MM |
216 | |
217 | Wed Feb 12 16:04:15 1997 Michael Meissner <meissner@cygnus.com> | |
218 | ||
219 | * simops.c (OP_{1403,15002A02,3{0,4}0{0,1}}): Only use the bottom | |
220 | 40 bits of accumulators. Sign/zero extend as appropriate. | |
221 | ||
19c5af72 DE |
222 | Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com> |
223 | ||
224 | * Makefile.in (@COMMON_MAKEFILE_FRAG): Use | |
225 | COMMON_{PRE,POST}_CONFIG_FRAG instead. | |
226 | * configure.in: sinclude ../common/aclocal.m4. | |
227 | * configure: Regenerated. | |
228 | ||
295dbbe4 SG |
229 | Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com) |
230 | ||
231 | * configure configure.in Makefile.in: Update to new configure | |
232 | scheme which is more compatible with WinGDB builds. | |
233 | * configure.in: Improve comment on how to run autoconf. | |
234 | * configure: Re-run autoconf to get new ../common/aclocal.m4. | |
235 | * Makefile.in: Use autoconf substitution to install common | |
236 | makefile fragment. | |
237 | ||
238 | Fri Dec 27 22:54:05 1996 Angela Marie Thomas (angela@cygnus.com) | |
239 | ||
240 | * gencode.c: patch to not #include "d10v_sim.h" which | |
241 | unecessarily includes bfd.h and causes wingdb configure | |
242 | to fail. | |
243 | ||
dbdae3de MH |
244 | Mon Dec 16 13:39:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
245 | ||
246 | * interp.c (xfer_mem): Change unified memory to 0x0. | |
247 | ||
248 | Thu Nov 28 20:42:56 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
249 | ||
250 | * simops.c (OP_3E01): Fix tracing information. | |
251 | (OP_300{0,1}): Do not propigate sign. | |
252 | ||
72eeb006 DE |
253 | Mon Nov 25 19:47:40 1996 Doug Evans <dje@canuck.cygnus.com> |
254 | ||
255 | * config.in (WORDS_BIGENDIAN): Add. | |
256 | * configure: Regenerated. | |
257 | * d10v_sim.h: #include "config.h" | |
258 | ||
259 | Sat Nov 23 09:34:50 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
260 | ||
261 | * gencode.c (write_opcodes): Eliminate warnings when generated | |
262 | table.c is compiled. | |
263 | ||
24cbf0a4 MM |
264 | Wed Nov 20 19:41:40 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
265 | ||
266 | * interp.c (sim_open): Cast result of calloc, and make sure NULL | |
267 | was not returned. | |
268 | (dmem_addr): If address is illegal or in I/O space, signal a bus | |
269 | error. | |
270 | (pc_addr): Signal bus error, not illegal instruction for bogus | |
271 | pc. | |
272 | ||
cee402dd DE |
273 | Wed Nov 20 01:23:03 1996 Doug Evans <dje@canuck.cygnus.com> |
274 | ||
275 | * Makefile.in: Delete all stuff moved to ../common/Make-common.in. | |
276 | (SIM_OBJS,SIM_EXTRA_CFLAGS,SIM_EXTRA_CLEAN): Define. | |
277 | * configure.in: Simplify using macros in ../common/aclocal.m4. | |
278 | Call AC_CHECK_HEADERS(unistd.h). | |
279 | * configure: Regenerated. | |
280 | * config.in: New file. | |
281 | * interp.c: #include "callback.h". | |
282 | * simops.c: #include "config.h". #include <unistd.h> if present. | |
283 | ||
284 | Fri Nov 8 16:19:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
285 | ||
286 | * d10v-sim.h (simops): Add flag is_long. | |
287 | (State): Add pc_changed. Instructions which update the PC should | |
288 | use the JMP macro which sets this. | |
289 | (JMP): New macro. Sets the PC and the pc_changed flag. | |
290 | ||
291 | * gencode.c (write_opcodes): Add is_long field. | |
292 | ||
293 | * interp.c (lookup_hash): If we blindly apply a short opcode's mask | |
294 | to a long opcode we could get a false match. Check the opcode size. | |
295 | (hash): Add a size field to the hash table. | |
296 | (sim_open): Initialize size field in hash table. | |
297 | (sim_resume): Change to logic for setting the PC. Used to increment the | |
298 | PC if it had not been changed. This didn't allow single-instruction loops. | |
299 | Now checks the flag State.pc_changed. Also now stops when ^C is received. | |
300 | (dmem_addr): Fix translation of data segments to unified memory. | |
301 | (sim_ctrl_c): New function. When ^C is received, set stop_simulator flag. | |
302 | ||
303 | * simops.c: Changed all branch and jump instructions to use new JMP macro. | |
304 | (OP_20000000): Corrected trace information to show this is a ldi.l, not | |
305 | a ldi.s instruction. | |
306 | ||
5c839c67 MH |
307 | Thu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
308 | ||
309 | * interp.c (sim_fetch_register, sim_store_register): Fix bug where | |
310 | updating the accumulators was overwriting other parts of the global | |
311 | State variable. | |
312 | ||
b30cdd35 MM |
313 | Wed Oct 30 17:35:14 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
314 | ||
315 | * interp.c (bfd.h) Don't include it here any more. | |
316 | (text{,_start,_end}): Move here from simops.c and make extern. | |
317 | (decode_pc): New function to return the PC as an address that the | |
318 | debugger can use. | |
319 | (dmem_addr): Print decoded PC in error message. | |
320 | (pc_addr): Ditto. | |
321 | ||
322 | * simops.c (bfd.h) Don't include it here any more. | |
323 | (text{,_start,_end}): Move to simops.c. | |
324 | (trace_input_func): Move decoding of PC, and looking up .text | |
325 | start to decode_pc. | |
326 | ||
327 | * d10v_sim.h (bfd.h): Include it here. | |
328 | (text{,_start,_end}): Add external declarations. | |
329 | (exec_bfd): Ditto. | |
330 | (decode_pc): Ditto. | |
331 | ||
c422ecc7 MH |
332 | Tue Oct 29 12:13:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
333 | ||
334 | * interp.c (sim_size): Now allocates unified memory for imap segments | |
335 | 0,1,2, and 127. Initializes imap0 and imap1 to 0x1000. Initializes dmap to 0. | |
336 | (sim_write): Just call xfer_mem(). | |
337 | (sim_read): Just call xfer_mem(). | |
338 | (xfer_mem): New function. Does appropriate memory mapping and copies bytes. | |
339 | (dmem_addr): New function. Reads dmap register and translates data | |
340 | addresses to local addresses. | |
341 | (pc_addr): New function. Reads imap register and computes local address | |
342 | corresponding to contents of the PC. | |
343 | (sim_resume): Change to use pc_addr(). | |
344 | (sim_create_inferior): Change reinitialization code. Also reinitializes | |
345 | imap[01] and dmap. | |
346 | (sim_fetch_register): Add fake registers 32,33,34 for imap0, imap1, and dmap. | |
347 | (sim_store_register): Add fake registers 32,33,34 for imap0, imap1, and dmap. | |
348 | ||
349 | * simops.c (MEMPTR): Redefine to use dmem_addr(). | |
350 | (OP_5F00): Replace references to STate.imem with dmem_addr(). | |
351 | ||
352 | * d10v-sim.h (State): Remove mem_min and mem_max. Add umem[128]. | |
353 | (RB,SW,RW,SLW,RLW): Redefine to use dmem_addr(). | |
354 | (IMAP0,IMAP1,DMAP,SET_IMAP,SET_IMAP1,SET_DMAP): Define. | |
355 | ||
356 | Tue Oct 22 15:22:33 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
357 | ||
358 | * d10v_sim.h (_ins_type): Reorganize, so that we can provide | |
359 | better statistics, like not counting NOPS as parallel | |
360 | instructions, and printing total cycles. | |
361 | (ins_type_counters): Make unsigned long. | |
362 | (left_nops,right_nops): Fold into ins_type_counters. | |
363 | ||
364 | * simops.c (trace_input_func): Print new instruction types. | |
365 | Handle OP_R2R3 as input types. | |
366 | (OP_{38000000,7000}): Correctly sign extend bytes. | |
367 | (OP_5E00): Don't count NOPs as parallel instructions. | |
368 | (OP_460B): Remove unused variable. | |
369 | (OP_5F00): Ditto. | |
370 | ||
371 | * interp.c (ins_type_counters): Make unsigned long. | |
372 | (left_nops,right_nops): Delete. | |
373 | (most functions): Add prototypes. | |
374 | (INLINE): If GCC and optimize define as __inline__. | |
375 | ({,lookup_}hash,get_operands): Declare as INLINE. | |
376 | (do_parallel): Count conditional operations. | |
377 | (add_commas): New function, to add commas every 3 digits. | |
378 | (sim_size): Call add_commas to print numbers. | |
379 | (sim_{open,resume}): Delete unused variables. | |
380 | (sim_info): Provide better statistics. | |
381 | (sim_read): Add int return type. | |
382 | ||
eca43eb1 MH |
383 | Mon Oct 21 16:16:26 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
384 | ||
385 | * interp.c (sim_resume): Change the way single-stepping and exceptions | |
386 | are handled so single-stepping works again. | |
387 | ||
55116079 MM |
388 | Thu Oct 17 12:24:16 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
389 | ||
390 | * endian.c: Optimize simulated loads/stores on x86, AIX, and big | |
391 | endian hosts. | |
392 | ||
393 | * configure.in (--enable-sim-bswap): New switch to enable using | |
394 | the BSWAP instruction on x86's. | |
395 | * configure: Regenerate. | |
396 | ||
397 | * Makefile.in ({SWAP,CONFIG}_CFLAGS): Add --enable-sim-bswap | |
398 | support. | |
399 | ||
11ec4de6 MM |
400 | Wed Oct 16 13:50:06 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
401 | ||
5c255669 MM |
402 | * endian.c: New file. Move endian functions here from interp.c. |
403 | Optimize code, and make it work as either inline functions or as a | |
404 | separate file. | |
405 | ||
406 | * interp.c: Move endian functions from here to endian.c. | |
407 | ||
408 | * Makefile.in (INCLUDE): Add endian.c. | |
409 | (run,libsim.a): Add dependency on endian.o. | |
410 | (endian.o): Add dependency. | |
411 | ||
412 | * d10v_sim.h (read/write support): Always go through the machine | |
413 | independent endian functions. If compiling with GCC and | |
414 | optimizing, include endian.c so the endian functions are inlined. | |
415 | ||
11ec4de6 MM |
416 | * simops.c (OP_5F00): Correct tracing of accumulators. |
417 | ||
57bc1a72 MM |
418 | Tue Oct 15 10:57:50 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
419 | ||
420 | * simops.c (OP_5F00): Add support for getpid, kill system calls. | |
421 | ||
422 | * interp.c (do_{2_short,parallel}): If an exception is raised, | |
423 | don't execute the second instruction. | |
424 | ||
8918b3a7 MM |
425 | Sat Oct 12 22:17:43 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
426 | ||
427 | * simops.c (OP_{31000000,6601,6201,6200}): Store address in a | |
428 | temporary in case the register is overriden when loading. | |
429 | (OP_6200): Output type is OP_DREG for tracing. | |
430 | ||
431 | Fri Oct 4 23:46:18 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
432 | ||
433 | * d10v_sim.h (struct _state): Add mem_{min,max} fields. | |
434 | ||
435 | * interp.c (sim_size): Initialize mem_{min,max} fields. | |
436 | (sim_write): Update mem_{min,max} fields. | |
437 | (sim_resume): If PC is not in the minimum/maximum memory range, | |
438 | abort. | |
439 | (sim_create_inferior): Preserve mem_{min,max} fields. | |
440 | ||
441 | Fri Sep 27 13:11:58 1996 Mark Alexander <marka@cygnus.com> | |
442 | ||
443 | * simops.c (OP_5F00): Add support for time() system call. | |
444 | ||
a18cb100 MM |
445 | Wed Sep 25 16:31:41 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
446 | ||
447 | * simops.c (OP_{6E01,6A01,6E1F,6A00}): Print both words being | |
448 | stored if tracing. | |
8918b3a7 MM |
449 | (OP_5F00,trace_{in,out}put_func): Add finer grain tracing for |
450 | system calls. | |
a18cb100 MM |
451 | |
452 | Mon Sep 23 17:55:30 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
453 | ||
454 | * simops.c (op_types): Add OP_{CONSTANT8,R2,R3}. | |
455 | (trace_input_func): Add support for OP_{CONSTANT8,R2,R3}. | |
456 | (OP_{4900,24800000,4800,4A00,4B00,4D00,4C00}): Add OP_R2 and OP_R3 | |
457 | to call/subroutine returns to trace the first two arguments and | |
458 | the return value. For small jumps, use CONSTANT8, not CONSTANT16. | |
459 | ||
c58a1ec2 MH |
460 | Fri Sep 20 15:36:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
461 | ||
462 | * interp.c (sim_create_inferior): Reinitialize State every time | |
463 | sim_create_inferior() is called. | |
464 | ||
c12f5c67 MM |
465 | Thu Sep 19 21:38:20 1996 Michael Meissner <meissner@wogglebug.ziplink.net> |
466 | ||
467 | * simops.c (OP_{401,2000000,601,3000000,23000000}): Get sign right | |
468 | on comparisons. | |
469 | (OP_401): Fix tracing information. | |
470 | ||
74473ea1 MM |
471 | Thu Sep 19 10:30:22 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
472 | ||
891513ee MM |
473 | * simops.c (SIZE_{PC,LINE_NUMBER}): New default sizes for output. |
474 | (trace_input_func): Use them. | |
f061ddf6 MM |
475 | (trace_input_func): Make sure there is a trailing space after the |
476 | instruction. | |
addb61a5 | 477 | (OP_6200): Fix tracing info. |
891513ee | 478 | |
74473ea1 MM |
479 | * Makefile.in (run): Add dependencies on libbfd.a and |
480 | libiberity.a. | |
481 | ||
a49a15ad MM |
482 | Wed Sep 18 09:13:25 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
483 | ||
484 | * d10v_sim.h (DEBUG_INSTRUCTION): New debug value to include line | |
485 | numbers and function names in debug trace. | |
486 | (DEBUG): If not defined, set to DEBUG_TRACE, DEBUG_VALUES, and | |
487 | DEBUG_LINE_NUMBER. | |
488 | (SIG_D10V_{STOP,EXIT}): Values to represent the stop instruction | |
489 | and exit system call trap being executed. | |
490 | ||
491 | * interp.c (sim_stop_reason): Set exit code correctly for stop | |
492 | instruction and exit system call trap. | |
493 | ||
494 | * configure.in (--enable-sim-cflags): Remove trace case. | |
495 | (--enable-sim-debug): New switch to set the debug values. | |
496 | * configure: Regenerate. | |
497 | ||
498 | * simops.c (trace_{input,output}_func): Rename from | |
499 | trace_{input,output}. | |
500 | (trace_{input,output}): Call trace_{input,output}_func if | |
501 | d10v_debug is non-zero. | |
502 | (SIZE_INSTRUCTION): Cut down to 8. | |
503 | (SIZE_OPERANDS): Cut down to 18. | |
504 | (SIZE_LOCATION): New value for size of line number, function name | |
505 | field. | |
506 | (init_text_p,text{,_start,_end}): New static variables for | |
507 | printing line number and function name. | |
0535fa1a | 508 | (exec_bfd): New external that run.c sets. |
a49a15ad MM |
509 | (trace_input_func): Print line number and function name if |
510 | available and if desired. | |
511 | (OP_4E09): Don't print out DBT message. | |
512 | (OP_5FE0): Set exception field to SIG_D10V_STOP. | |
513 | (OP_5F00): Set exception field to SIG_D10V_EXIT. | |
514 | ||
215ac953 MM |
515 | Sat Sep 14 22:18:43 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
516 | ||
517 | * interp.c (do_2_short): If the instruction encodes jump->ins, | |
518 | don't do the second instruction if the jump succeeds. | |
519 | ||
19d44375 MM |
520 | Fri Sep 13 22:35:19 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
521 | ||
522 | * simops.c (OP_5F00): Use unknown traps to print all GPRs, | |
523 | accumulators, PC, and F0/F1/C flags. | |
524 | ||
65c0d7de MA |
525 | Thu Sep 12 12:50:11 1996 Mark Alexander <marka@cygnus.com> |
526 | ||
527 | * simops.c (OP_5F00): Fix problems with system calls. | |
528 | ||
a5719092 MM |
529 | Thu Sep 12 12:19:28 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
530 | ||
531 | * simops.c (OP_5F00): Correct tracing information for trap. | |
532 | ||
5ceef1b5 MM |
533 | Wed Sep 11 18:55:50 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
534 | ||
535 | * Makefile.in (CSEARCH): Correctly find opcodes directory. | |
536 | ||
069398aa MM |
537 | Mon Sep 9 13:27:26 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
538 | ||
539 | * simops.c (trace_output): Properly align accumulator output. | |
540 | (OP_3{0,2,4}00): Properly parenthesize test expression. Add error | |
541 | if shift count is too high. | |
293c76a3 | 542 | (OP_4E{00,02,04,20,22,40,42}): Make tests agree with book. |
60fc5b72 MM |
543 | (OP_4E09): Make cpfg properly trace the input flags. |
544 | (op_types): Add OP_FLAG_OUTPUT. | |
545 | (trace_{input,output}): Support OP_FLAG_OUTPUT. | |
308f64d3 MM |
546 | (OP_31000000): This ld2w varient is a 16-bit memory reference, not |
547 | an 8-bit memory reference instruction for tracing purposes. | |
2254cd90 | 548 | (OP_201): Addi needs to set the carry. |
069398aa | 549 | |
ea2155e8 MH |
550 | Fri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
551 | ||
552 | * simops.c (OP_2600, OP_2601): Changed min and max comparisons | |
553 | to use signed register values. | |
554 | ||
87178dbd MM |
555 | Wed Sep 4 11:35:17 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
556 | ||
557 | * d10v_sim.h (DEBUG_*): Add bit flags for controlling debug | |
558 | output. | |
559 | (_ins_type): New enumeration to specify which container an | |
560 | instruction is in, and whether it is part of a parallel operation. | |
561 | (_state): Add ins_type field. | |
7eebfc62 MM |
562 | ({,u}int{8,16,32,64}): Use limits.h to size the appropriate types. |
563 | (ins_type_counters): Counters for the various instruction types. | |
564 | ({left,right}_nops): Counters for the number of nops in each | |
565 | container. | |
566 | (d10v_debug): New variable to indicate whether debugging is turned | |
567 | on. | |
568 | ||
569 | * simops.c: (all functions): Change all #ifdef DEBUG code so that | |
570 | the input and output values can be traced, along with the | |
571 | instruction type. Make the -t option enable tracing. | |
572 | (all functions): Change printf calls to use the printf_filtered | |
573 | function in the callback table. | |
87178dbd MM |
574 | |
575 | * interp.c (_leftright): New enumeration to say whether 2 short | |
576 | instructions are done left first or right first. | |
577 | (do_{long,2_short,parallel}): Indicate in the machine state which | |
7eebfc62 MM |
578 | type of instruction this is. Count each of the types of |
579 | instructions executed. | |
87178dbd MM |
580 | (sim_size): Only print the memory sizes if DEBUG_MEMSIZE debug |
581 | flag is set. | |
582 | (sim_resume): Pass left/right indication to do_2_short. | |
7eebfc62 MM |
583 | (all functions): Change printf calls to use the printf_filtered |
584 | function in the callback table. | |
585 | (sim_trace): Turn on debug flag if DEBUG was defined, and call | |
586 | sim_resume. | |
587 | (sim_info): Print out statistics on instructions. | |
588 | (sim_{trace,create_inferior}): Eliminate extraneous output unless | |
589 | debugging. | |
1eaaf305 MM |
590 | (sim_open): If args == -t and DEBUG was defined, set d10v_debug. |
591 | Only initialize the hash table the first time sim_open is called. | |
7eebfc62 MM |
592 | |
593 | * Makefile.in: Make objects depend on d10v_sim.h. | |
1eaaf305 MM |
594 | ({,SIM_}CFLAGS): Include configure dependent switches. Setting |
595 | CFLAGS does not override host/target defines or SIM_CFLAGS. | |
596 | (CC_FOR_BUILD,gencode): Use CC_FOR_BUILD to compile gencode. | |
597 | (run): By default, the math library is not needed to be linked | |
598 | in. | |
9b86c7e2 | 599 | ({BFD,LIBIBERTY}_LIB): Define as variables so they can be |
1eaaf305 | 600 | overridden. |
9b86c7e2 MM |
601 | (VPATH): Don't set to anything but @srcdir@ to work with non-GNU |
602 | makes. | |
603 | ({run,callback}.o): Provide explicit paths to their appropriate | |
604 | source directories. | |
605 | (gencode{,.o},d10v-opc.o): Split compilation into creating object | |
606 | and linking. Instead of linking in libopcodes.a, just compile | |
607 | d10v-opc.o directly to handle canadian cross. | |
608 | (CSEARCH): Add opcodes directory. | |
7eebfc62 MM |
609 | |
610 | * configure.in (--enable-sim-cflags): New switch to allow user to | |
611 | set the defaults. | |
1eaaf305 | 612 | (CC_FOR_BUILD): Deal with canadian crosses. |
7eebfc62 | 613 | * configure: Regenerate. |
87178dbd | 614 | |
8719be26 MA |
615 | Wed Sep 04 04:45:34 1996 Mark Alexander <marka@cygnus.com> |
616 | ||
617 | * simops.c: Include correct syscall.h for d10v, not host's. | |
618 | Fix #ifdef SYS_stat. | |
619 | ||
620 | Tue Sep 3 14:00:04 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
621 | ||
622 | * simops.c (OP_5F00): Wrap all SYS_xxx traps with #ifdef. | |
623 | Add trap 2 to be printf and trap 3 to be putchar. | |
624 | ||
625 | Wed Aug 28 21:42:34 1996 Mark Alexander <marka@cygnus.com> | |
626 | ||
627 | * Makefile.in, d10v_sim.h, interp.c, simops.c: Add support | |
628 | for low-level system calls. | |
629 | ||
d70b4d42 MH |
630 | Wed Aug 28 17:33:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
631 | ||
632 | * Makefile.in, d10v_sim.h, interp.c: Fix byte-order problems. | |
633 | ||
634 | Mon Aug 26 18:30:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
635 | ||
636 | * d10v_sim.h (SEXT32): Added. | |
637 | * interp.c: Commented out printfs. | |
638 | * simops.c: Fixed error in sb and st2w. | |
639 | ||
640 | Thu Aug 15 13:30:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
641 | ||
642 | * Makefile.in, d10v_sim.h, interp.c, simops.c: Added remaining | |
643 | DSP instructions. Added modulo addressing. | |
644 | ||
645 | Sun Aug 11 12:57:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
646 | ||
647 | * Makefile.in, d10v_sim.h, interp.c, simops.c: Snapshot. | |
648 | ||
4c38885c MH |
649 | Fri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
650 | ||
651 | * d10v_sim.h, simops.c: Snapshot. | |
652 | ||
2934d1c9 MH |
653 | Thu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
654 | ||
655 | * ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h, | |
656 | gencode.c, interp.c, simops.c: Created. | |
657 |