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