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