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