* sim/mips/interp.c: Correct some HASFPU problems.
[deliverable/binutils-gdb.git] / sim / mips / ChangeLog
1 Tue Sep 16 11:32:28 1997 Gavin Koch <gavin@cygnus.com>
2
3 * interp.c: Correct some HASFPU problems.
4
5 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
6
7 * configure: Regenerated to track ../common/aclocal.m4 changes.
8
9 Fri Sep 12 12:01:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
10
11 * interp.c (mips_options): Fix samples option short form, should
12 be `x'.
13
14 Thu Sep 11 09:35:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
15
16 * interp.c (sim_info): Enable info code. Was just returning.
17
18 Tue Sep 9 17:30:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
19
20 * interp.c (decode_coproc): Clarify warning about unsuported MTC0,
21 MFC0.
22
23 Tue Sep 9 16:28:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
24
25 * gencode.c (build_instruction): Use SIGNED64 for 64 bit
26 constants.
27 (build_instruction): Ditto for LL.
28
29 start-sanitize-tx19
30 Sun Sep 7 16:05:46 1997 Gavin Koch <gavin@cygnus.com>
31
32 * mips/configure.in, mips/gencode: Add tx19/r1900.
33
34 end-sanitize-tx19
35 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
36
37 * configure: Regenerated to track ../common/aclocal.m4 changes.
38
39 start-sanitize-r5900
40 Mon Sep 1 18:43:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
41
42 * gencode.c (build_instruction): For "pabsw" and "pabsh", check
43 for overflow due to ABS of MININT, set result to MAXINT.
44 (build_instruction): For "psrlvw", signextend bit 31.
45
46 end-sanitize-r5900
47 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
48
49 * configure: Regenerated to track ../common/aclocal.m4 changes.
50 * config.in: Ditto.
51
52 Wed Aug 27 14:12:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
53
54 * interp.c (sim_open): Add call to sim_analyze_program, update
55 call to sim_config.
56
57 Tue Aug 26 10:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
58
59 * interp.c (sim_kill): Delete.
60 (sim_create_inferior): Add ABFD argument. Set PC from same.
61 (sim_load): Move code initializing trap handlers from here.
62 (sim_open): To here.
63 (sim_load): Delete, use sim-hload.c.
64
65 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
66
67 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
68
69 * configure: Regenerated to track ../common/aclocal.m4 changes.
70 * config.in: Ditto.
71
72 Mon Aug 25 15:59:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
73
74 * interp.c (sim_open): Add ABFD argument.
75 (sim_load): Move call to sim_config from here.
76 (sim_open): To here. Check return status.
77
78 start-sanitize-r5900
79 * gencode.c (build_instruction): Do not define x8000000000000000,
80 x7FFFFFFFFFFFFFFF, or xFFFFFFFF80000000.
81
82 end-sanitize-r5900
83 start-sanitize-r5900
84 Mon Jul 28 19:49:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
85
86 * gencode.c (build_instruction): For "pdivw", "pdivbw" and
87 "pdivuw" check for overflow due to signed divide by -1.
88
89 end-sanitize-r5900
90 Fri Jul 25 15:00:45 1997 Gavin Koch <gavin@cygnus.com>
91
92 * gencode.c (build_instruction): Two arg MADD should
93 not assign result to $0.
94
95 start-sanitize-r5900
96 Thu Jul 10 11:58:48 1997 Andrew Cagney <cagney@critters.cygnus.com>
97
98 * gencode.c (build_instruction): For "ppac5" use unsigned
99 arrithmetic so that the sign bit doesn't smear when right shifted.
100 (build_instruction): For "pdiv" perform sign extension when
101 storing results in HI and LO.
102 (build_instructions): For "pdiv" and "pdivbw" check for
103 divide-by-zero.
104 (build_instruction): For "pmfhl.slw" update hi part of dest
105 register as well as low part.
106 (build_instruction): For "pmfhl" portably handle long long values.
107 (build_instruction): For "pmfhl.sh" correctly negative values.
108 Store half words 2 and three in the correct place.
109 (build_instruction): For "psllvw", sign extend value after shift.
110
111 end-sanitize-r5900
112 Thu Jun 26 12:13:17 1997 Angela Marie Thomas (angela@cygnus.com)
113
114 * sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
115 * sim/mips/configure.in: Regenerate.
116
117 Wed Jul 9 10:29:21 1997 Andrew Cagney <cagney@critters.cygnus.com>
118
119 * interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
120 signed8, unsigned8 et.al. types.
121
122 start-sanitize-r5900
123 * gencode.c (build_instruction): For PMULTU* do not sign extend
124 registers. Make generated code easier to debug.
125
126 end-sanitize-r5900
127 * interp.c (SUB_REG_FETCH): Handle both little and big endian
128 hosts when selecting subreg.
129
130 start-sanitize-r5900
131 Tue Jul 8 18:07:20 1997 Andrew Cagney <cagney@andros.cygnus.com>
132
133 * gencode.c (type_for_data_len): For 32bit operations concerned
134 with overflow, perform op using 64bits.
135 (build_instruction): For PADD, always compute operation using type
136 returned by type_for_data_len.
137 (build_instruction): For PSUBU, when overflow, saturate to zero as
138 actually underflow.
139
140 end-sanitize-r5900
141 Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com)
142
143 start-sanitize-r5900
144 * gencode.c (build_instruction): Handle "pext5" according to
145 version 1.95 of the r5900 ISA.
146
147 * gencode.c (build_instruction): Handle "ppac5" according to
148 version 1.95 of the r5900 ISA.
149
150 end-sanitize-r5900
151 * interp.c (sim_engine_run): Reset the ZERO register to zero
152 regardless of FEATURE_WARN_ZERO.
153 * gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
154
155 Wed Jun 4 10:43:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
156
157 * interp.c (decode_coproc): Implement MTC0 N, CAUSE.
158 (SignalException): For BreakPoints ignore any mode bits and just
159 save the PC.
160 (SignalException): Always set the CAUSE register.
161
162 Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
163
164 * interp.c (SignalException): Clear the simDELAYSLOT flag when an
165 exception has been taken.
166
167 * interp.c: Implement the ERET and mt/f sr instructions.
168
169 start-sanitize-r5900
170 Mon Jun 2 23:28:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
171
172 * gencode.c (build_instruction): For paddu, extract unsigned
173 sub-fields.
174
175 * gencode.c (build_instruction): Saturate padds instead of padd
176 instructions.
177
178 end-sanitize-r5900
179 Sat May 31 00:44:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
180
181 * interp.c (SignalException): Don't bother restarting an
182 interrupt.
183
184 Fri May 30 23:41:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
185
186 * interp.c (SignalException): Really take an interrupt.
187 (interrupt_event): Only deliver interrupts when enabled.
188
189 Tue May 27 20:08:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
190
191 * interp.c (sim_info): Only print info when verbose.
192 (sim_info) Use sim_io_printf for output.
193
194 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
195
196 * interp.c (CoProcPresent): Add UNUSED attribute - not used by all
197 mips architectures.
198
199 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
200
201 * interp.c (sim_do_command): Check for common commands if a
202 simulator specific command fails.
203
204 Thu May 22 09:32:03 1997 Gavin Koch <gavin@cygnus.com>
205
206 * interp.c (sim_engine_run): ifdef out uses of simSTOP, simSTEP
207 and simBE when DEBUG is defined.
208
209 Wed May 21 09:08:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
210
211 * interp.c (interrupt_event): New function. Pass exception event
212 onto exception handler.
213
214 * configure.in: Check for stdlib.h.
215 * configure: Regenerate.
216
217 * gencode.c (build_instruction): Add UNUSED attribute to tempS
218 variable declaration.
219 (build_instruction): Initialize memval1.
220 (build_instruction): Add UNUSED attribute to byte, bigend,
221 reverse.
222 (build_operands): Ditto.
223
224 * interp.c: Fix GCC warnings.
225 (sim_get_quit_code): Delete.
226
227 * configure.in: Add INLINE, ENDIAN, HOSTENDIAN and WARNINGS.
228 * Makefile.in: Ditto.
229 * configure: Re-generate.
230
231 * Makefile.in (SIM_OBJS): Add sim-watch.o module.
232
233 Tue May 20 15:08:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
234
235 * interp.c (mips_option_handler): New function parse argumes using
236 sim-options.
237 (myname): Replace with STATE_MY_NAME.
238 (sim_open): Delete check for host endianness - performed by
239 sim_config.
240 (simHOSTBE, simBE): Delete, replaced by sim-endian flags.
241 (sim_open): Move much of the initialization from here.
242 (sim_load): To here. After the image has been loaded and
243 endianness set.
244 (sim_open): Move ColdReset from here.
245 (sim_create_inferior): To here.
246 (sim_open): Make FP check less dependant on host endianness.
247
248 * Makefile.in (SIM_RUN_OBJS): Set to nrun.o - use new version or
249 run.
250 * interp.c (sim_set_callbacks): Delete.
251
252 * interp.c (membank, membank_base, membank_size): Replace with
253 STATE_MEMORY, STATE_MEM_SIZE, STATE_MEM_BASE.
254 (sim_open): Remove call to callback->init. gdb/run do this.
255
256 * interp.c: Update
257
258 * sim-main.h (SIM_HAVE_FLATMEM): Define.
259
260 * interp.c (big_endian_p): Delete, replaced by
261 current_target_byte_order.
262
263 Tue May 20 13:55:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
264
265 * interp.c (host_read_long, host_read_word, host_swap_word,
266 host_swap_long): Delete. Using common sim-endian.
267 (sim_fetch_register, sim_store_register): Use H2T.
268 (pipeline_ticks): Delete. Handled by sim-events.
269 (sim_info): Update.
270 (sim_engine_run): Update.
271
272 Tue May 20 13:42:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
273
274 * interp.c (sim_stop_reason): Move code determining simEXCEPTION
275 reason from here.
276 (SignalException): To here. Signal using sim_engine_halt.
277 (sim_stop_reason): Delete, moved to common.
278
279 Tue May 20 10:19:48 1997 Andrew Cagney <cagney@b2.cygnus.com>
280
281 * interp.c (sim_open): Add callback argument.
282 (sim_set_callbacks): Delete SIM_DESC argument.
283 (sim_size): Ditto.
284
285 Mon May 19 18:20:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
286
287 * Makefile.in (SIM_OBJS): Add common modules.
288
289 * interp.c (sim_set_callbacks): Also set SD callback.
290 (set_endianness, xfer_*, swap_*): Delete.
291 (host_read_word, host_read_long, host_swap_word, host_swap_long):
292 Change to functions using sim-endian macros.
293 (control_c, sim_stop): Delete, use common version.
294 (simulate): Convert into.
295 (sim_engine_run): This function.
296 (sim_resume): Delete.
297
298 * interp.c (simulation): New variable - the simulator object.
299 (sim_kind): Delete global - merged into simulation.
300 (sim_load): Cleanup. Move PC assignment from here.
301 (sim_create_inferior): To here.
302
303 * sim-main.h: New file.
304 * interp.c (sim-main.h): Include.
305
306 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
307
308 * configure: Regenerated to track ../common/aclocal.m4 changes.
309
310 Wed Apr 23 17:32:19 1997 Doug Evans <dje@canuck.cygnus.com>
311
312 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
313
314 Mon Apr 21 17:16:13 1997 Gavin Koch <gavin@cygnus.com>
315
316 * gencode.c (build_instruction): DIV instructions: check
317 for division by zero and integer overflow before using
318 host's division operation.
319
320 Thu Apr 17 03:18:14 1997 Doug Evans <dje@canuck.cygnus.com>
321
322 * Makefile.in (SIM_OBJS): Add sim-load.o.
323 * interp.c: #include bfd.h.
324 (target_byte_order): Delete.
325 (sim_kind, myname, big_endian_p): New static locals.
326 (sim_open): Set sim_kind, myname. Move call to set_endianness to
327 after argument parsing. Recognize -E arg, set endianness accordingly.
328 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
329 load file into simulator. Set PC from bfd.
330 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
331 (set_endianness): Use big_endian_p instead of target_byte_order.
332
333 Wed Apr 16 17:55:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
334
335 * interp.c (sim_size): Delete prototype - conflicts with
336 definition in remote-sim.h. Correct definition.
337
338 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
339
340 * configure: Regenerated to track ../common/aclocal.m4 changes.
341 * config.in: Ditto.
342
343 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
344
345 * interp.c (sim_open): New arg `kind'.
346
347 * configure: Regenerated to track ../common/aclocal.m4 changes.
348
349 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
350
351 * configure: Regenerated to track ../common/aclocal.m4 changes.
352
353 Tue Mar 25 11:38:22 1997 Doug Evans <dje@canuck.cygnus.com>
354
355 * interp.c (sim_open): Set optind to 0 before calling getopt.
356
357 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
358
359 * configure: Regenerated to track ../common/aclocal.m4 changes.
360
361 Mon Mar 17 10:52:59 1997 Gavin Koch <gavin@cetus.cygnus.com>
362
363 * interp.c : Replace uses of pr_addr with pr_uword64
364 where the bit length is always 64 independent of SIM_ADDR.
365 (pr_uword64) : added.
366
367 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
368
369 * configure: Re-generate.
370
371 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
372
373 * configure: Regenerate to track ../common/aclocal.m4 changes.
374
375 Thu Mar 13 12:51:36 1997 Doug Evans <dje@canuck.cygnus.com>
376
377 * interp.c (sim_open): New SIM_DESC result. Argument is now
378 in argv form.
379 (other sim_*): New SIM_DESC argument.
380
381 start-sanitize-r5900
382 Wed Feb 26 18:32:21 1997 Gavin Koch <gavin@cygnus.com>
383
384 * gencode.c (POP_AND,POP_OR,POP_NOR,POP_XOR):
385 Change values to avoid overloading DOUBLEWORD which is tested
386 for all insns.
387 * gencode.c: reinstate "offending code".
388
389 end-sanitize-r5900
390 Mon Feb 24 22:47:14 1997 Dawn Perchik <dawn@cygnus.com>
391
392 * interp.c: Fix printing of addresses for non-64-bit targets.
393 (pr_addr): Add function to print address based on size.
394 start-sanitize-r5900
395 * gencode.c: #ifdef out offending code until a permanent fix
396 can be added. Code is causing build errors for non-5900 mips targets.
397 end-sanitize-r5900
398
399 start-sanitize-r5900
400 Thu Feb 20 10:40:24 1997 Gavin Koch <gavin@cetus.cygnus.com>
401
402 * gencode.c (process_instructions): Correct test for ISA dependent
403 architecture bits in isa field of MIPS_DECODE.
404
405 end-sanitize-r5900
406 Wed Feb 19 14:42:09 1997 Mark Alexander <marka@cygnus.com>
407
408 * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
409
410 start-sanitize-r5900
411 Tue Feb 18 17:03:47 1997 Gavin Koch <gavin@cygnus.com>
412
413 * gencode.c (MIPS_DECODE): Correct instruction feature flags for
414 PMADDUW.
415
416 end-sanitize-r5900
417 Thu Feb 13 14:08:30 1997 Ian Lance Taylor <ian@cygnus.com>
418
419 * gencode.c (build_mips16_operands): Correct computation of base
420 address for extended PC relative instruction.
421
422 start-sanitize-r5900
423 Fri Feb 7 11:12:44 1997 Gavin Koch <gavin@cygnus.com>
424
425 * Makefile.in, configure, configure.in, gencode.c,
426 interp.c, support.h: add r5900.
427
428 end-sanitize-r5900
429 Thu Feb 6 17:16:15 1997 Ian Lance Taylor <ian@cygnus.com>
430
431 * interp.c (mips16_entry): Add support for floating point cases.
432 (SignalException): Pass floating point cases to mips16_entry.
433 (ValueFPR): Don't restrict fmt_single and fmt_word to even
434 registers.
435 (StoreFPR): Likewise. Also, don't clobber fpr + 1 for fmt_single
436 or fmt_word.
437 (COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
438 and then set the state to fmt_uninterpreted.
439 (COP_SW): Temporarily set the state to fmt_word while calling
440 ValueFPR.
441
442 Tue Feb 4 16:48:25 1997 Ian Lance Taylor <ian@cygnus.com>
443
444 * gencode.c (build_instruction): The high order may be set in the
445 comparison flags at any ISA level, not just ISA 4.
446
447 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
448
449 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
450 COMMON_{PRE,POST}_CONFIG_FRAG instead.
451 * configure.in: sinclude ../common/aclocal.m4.
452 * configure: Regenerated.
453
454 Fri Jan 31 11:11:45 1997 Ian Lance Taylor <ian@cygnus.com>
455
456 * configure: Rebuild after change to aclocal.m4.
457
458 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
459
460 * configure configure.in Makefile.in: Update to new configure
461 scheme which is more compatible with WinGDB builds.
462 * configure.in: Improve comment on how to run autoconf.
463 * configure: Re-run autoconf to get new ../common/aclocal.m4.
464 * Makefile.in: Use autoconf substitution to install common
465 makefile fragment.
466
467 Wed Jan 8 12:39:03 1997 Jim Wilson <wilson@cygnus.com>
468
469 * gencode.c (build_instruction): Use BigEndianCPU instead of
470 ByteSwapMem.
471
472 Thu Jan 02 22:23:04 1997 Mark Alexander <marka@cygnus.com>
473
474 * interp.c (sim_monitor): Make output to stdout visible in
475 wingdb's I/O log window.
476
477 Tue Dec 31 07:04:00 1996 Mark Alexander <marka@cygnus.com>
478
479 * support.h: Undo previous change to SIGTRAP
480 and SIGQUIT values.
481
482 Mon Dec 30 17:36:06 1996 Ian Lance Taylor <ian@cygnus.com>
483
484 * interp.c (store_word, load_word): New static functions.
485 (mips16_entry): New static function.
486 (SignalException): Look for mips16 entry and exit instructions.
487 (simulate): Use the correct index when setting fpr_state after
488 doing a pending move.
489
490 Sun Dec 29 09:37:18 1996 Mark Alexander <marka@cygnus.com>
491
492 * interp.c: Fix byte-swapping code throughout to work on
493 both little- and big-endian hosts.
494
495 Sun Dec 29 09:18:32 1996 Mark Alexander <marka@cygnus.com>
496
497 * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
498 with gdb/config/i386/xm-windows.h.
499
500 Fri Dec 27 22:48:51 1996 Mark Alexander <marka@cygnus.com>
501
502 * gencode.c (build_instruction): Work around MSVC++ code gen bug
503 that messes up arithmetic shifts.
504
505 Fri Dec 20 11:04:05 1996 Stu Grossman (grossman@critters.cygnus.com)
506
507 * support.h: Use _WIN32 instead of __WIN32__. Also add defs for
508 SIGTRAP and SIGQUIT for _WIN32.
509
510 Thu Dec 19 14:07:27 1996 Ian Lance Taylor <ian@cygnus.com>
511
512 * gencode.c (build_instruction) [MUL]: Cast operands to word64, to
513 force a 64 bit multiplication.
514 (build_instruction) [OR]: In mips16 mode, don't do anything if the
515 destination register is 0, since that is the default mips16 nop
516 instruction.
517
518 Mon Dec 16 14:59:38 1996 Ian Lance Taylor <ian@cygnus.com>
519
520 * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
521 (build_endian_shift): Don't check proc64.
522 (build_instruction): Always set memval to uword64. Cast op2 to
523 uword64 when shifting it left in memory instructions. Always use
524 the same code for stores--don't special case proc64.
525
526 * gencode.c (build_mips16_operands): Fix base PC value for PC
527 relative operands.
528 (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
529 jal instruction.
530 * interp.c (simJALDELAYSLOT): Define.
531 (JALDELAYSLOT): Define.
532 (INDELAYSLOT, INJALDELAYSLOT): Define.
533 (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
534
535 Tue Dec 24 22:11:20 1996 Angela Marie Thomas (angela@cygnus.com)
536
537 * interp.c (sim_open): add flush_cache as a PMON routine
538 (sim_monitor): handle flush_cache by ignoring it
539
540 Wed Dec 11 13:53:51 1996 Jim Wilson <wilson@cygnus.com>
541
542 * gencode.c (build_instruction): Use !ByteSwapMem instead of
543 BigEndianMem.
544 * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
545 (BigEndianMem): Rename to ByteSwapMem and change sense.
546 (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
547 BigEndianMem references to !ByteSwapMem.
548 (set_endianness): New function, with prototype.
549 (sim_open): Call set_endianness.
550 (sim_info): Use simBE instead of BigEndianMem.
551 (xfer_direct_word, xfer_direct_long, swap_direct_word,
552 swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
553 xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
554 ifdefs, keeping the prototype declaration.
555 (swap_word): Rewrite correctly.
556 (ColdReset): Delete references to CONFIG. Delete endianness related
557 code; moved to set_endianness.
558
559 Tue Dec 10 11:32:04 1996 Jim Wilson <wilson@cygnus.com>
560
561 * gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
562 * interp.c (CHECKHILO): Define away.
563 (simSIGINT): New macro.
564 (membank_size): Increase from 1MB to 2MB.
565 (control_c): New function.
566 (sim_resume): Rename parameter signal to signal_number. Add local
567 variable prev. Call signal before and after simulate.
568 (sim_stop_reason): Add simSIGINT support.
569 (sim_warning, sim_error, dotrace, SignalException): Define as stdarg
570 functions always.
571 (sim_warning): Delete call to SignalException. Do call printf_filtered
572 if logfh is NULL.
573 (AddressTranslation): Add #ifdef DEBUG around debugging message and
574 a call to sim_warning.
575
576 Wed Nov 27 11:53:50 1996 Ian Lance Taylor <ian@cygnus.com>
577
578 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
579 16 bit instructions.
580
581 Tue Nov 26 11:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
582
583 Add support for mips16 (16 bit MIPS implementation):
584 * gencode.c (inst_type): Add mips16 instruction encoding types.
585 (GETDATASIZEINSN): Define.
586 (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add
587 jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and
588 mtlo.
589 (MIPS16_DECODE): New table, for mips16 instructions.
590 (bitmap_val): New static function.
591 (struct mips16_op): Define.
592 (mips16_op_table): New table, for mips16 operands.
593 (build_mips16_operands): New static function.
594 (process_instructions): If PC is odd, decode a mips16
595 instruction. Break out instruction handling into new
596 build_instruction function.
597 (build_instruction): New static function, broken out of
598 process_instructions. Check modifiers rather than flags for SHIFT
599 bit count and m[ft]{hi,lo} direction.
600 (usage): Pass program name to fprintf.
601 (main): Remove unused variable this_option_optind. Change
602 ``*loptarg++'' to ``loptarg++''.
603 (my_strtoul): Parenthesize && within ||.
604 * interp.c (LoadMemory): Accept a halfword pAddr if vAddr is odd.
605 (simulate): If PC is odd, fetch a 16 bit instruction, and
606 increment PC by 2 rather than 4.
607 * configure.in: Add case for mips16*-*-*.
608 * configure: Rebuild.
609
610 Fri Nov 22 08:49:36 1996 Mark Alexander <marka@cygnus.com>
611
612 * interp.c: Allow -t to enable tracing in standalone simulator.
613 Fix garbage output in trace file and error messages.
614
615 Wed Nov 20 01:54:37 1996 Doug Evans <dje@canuck.cygnus.com>
616
617 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
618 (SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
619 * configure.in: Simplify using macros in ../common/aclocal.m4.
620 * configure: Regenerated.
621 * tconfig.in: New file.
622
623 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
624
625 * interp.c: Fix bugs in 64-bit port.
626 Use ansi function declarations for msvc compiler.
627 Initialize and test file pointer in trace code.
628 Prevent duplicate definition of LAST_EMED_REGNUM.
629
630 Tue Oct 15 11:07:06 1996 Mark Alexander <marka@cygnus.com>
631
632 * interp.c (xfer_big_long): Prevent unwanted sign extension.
633
634 Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
635
636 * interp.c (SignalException): Check for explicit terminating
637 breakpoint value.
638 * gencode.c: Pass instruction value through SignalException()
639 calls for Trap, Breakpoint and Syscall.
640
641 Thu Sep 26 11:35:17 1996 James G. Smith <jsmith@cygnus.co.uk>
642
643 * interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
644 only used on those hosts that provide it.
645 * configure.in: Add sqrt() to list of functions to be checked for.
646 * config.in: Re-generated.
647 * configure: Re-generated.
648
649 Fri Sep 20 15:47:12 1996 Ian Lance Taylor <ian@cygnus.com>
650
651 * gencode.c (process_instructions): Call build_endian_shift when
652 expanding STORE RIGHT, to fix swr.
653 * support.h (SIGNEXTEND): If the sign bit is not set, explicitly
654 clear the high bits.
655 * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
656 Fix float to int conversions to produce signed values.
657
658 Thu Sep 19 15:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
659
660 * gencode.c (MIPS_DECODE): Set UNSIGNED for multu instruction.
661 (process_instructions): Correct handling of nor instruction.
662 Correct shift count for 32 bit shift instructions. Correct sign
663 extension for arithmetic shifts to not shift the number of bits in
664 the type. Fix 64 bit multiply high word calculation. Fix 32 bit
665 unsigned multiply. Fix ldxc1 and friends to use coprocessor 1.
666 Fix madd.
667 * interp.c (CHECKHILO): Don't set HIACCESS, LOACCESS, or HLPC.
668 It's OK to have a mult follow a mult. What's not OK is to have a
669 mult follow an mfhi.
670 (Convert): Comment out incorrect rounding code.
671
672 Mon Sep 16 11:38:16 1996 James G. Smith <jsmith@cygnus.co.uk>
673
674 * interp.c (sim_monitor): Improved monitor printf
675 simulation. Tidied up simulator warnings, and added "--log" option
676 for directing warning message output.
677 * gencode.c: Use sim_warning() rather than WARNING macro.
678
679 Thu Aug 22 15:03:12 1996 Ian Lance Taylor <ian@cygnus.com>
680
681 * Makefile.in (gencode): Depend upon gencode.o, getopt.o, and
682 getopt1.o, rather than on gencode.c. Link objects together.
683 Don't link against -liberty.
684 (gencode.o, getopt.o, getopt1.o): New targets.
685 * gencode.c: Include <ctype.h> and "ansidecl.h".
686 (AND): Undefine after including "ansidecl.h".
687 (ULONG_MAX): Define if not defined.
688 (OP_*): Don't define macros; now defined in opcode/mips.h.
689 (main): Call my_strtoul rather than strtoul.
690 (my_strtoul): New static function.
691
692 Wed Jul 17 18:12:38 1996 Stu Grossman (grossman@critters.cygnus.com)
693
694 * gencode.c (process_instructions): Generate word64 and uword64
695 instead of `long long' and `unsigned long long' data types.
696 * interp.c: #include sysdep.h to get signals, and define default
697 for SIGBUS.
698 * (Convert): Work around for Visual-C++ compiler bug with type
699 conversion.
700 * support.h: Make things compile under Visual-C++ by using
701 __int64 instead of `long long'. Change many refs to long long
702 into word64/uword64 typedefs.
703
704 Wed Jun 26 12:24:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
705
706 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
707 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
708 (docdir): Removed.
709 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
710 (AC_PROG_INSTALL): Added.
711 (AC_PROG_CC): Moved to before configure.host call.
712 * configure: Rebuilt.
713
714 Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
715
716 * configure.in: Define @SIMCONF@ depending on mips target.
717 * configure: Rebuild.
718 * Makefile.in (run): Add @SIMCONF@ to control simulator
719 construction.
720 * gencode.c: Change LOADDRMASK to 64bit memory model only.
721 * interp.c: Remove some debugging, provide more detailed error
722 messages, update memory accesses to use LOADDRMASK.
723
724 Mon Jun 3 11:55:03 1996 Ian Lance Taylor <ian@cygnus.com>
725
726 * configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
727 AC_CHECK_LIB, and AC_CHECK_FUNCS. Change AC_OUTPUT to set
728 stamp-h.
729 * configure: Rebuild.
730 * config.in: New file, generated by autoheader.
731 * interp.c: Include "config.h". Include <stdlib.h>, <string.h>,
732 and <strings.h> if they exist. Replace #ifdef sun with #ifdef
733 HAVE_ANINT and HAVE_AINT, as appropriate.
734 * Makefile.in (run): Use @LIBS@ rather than -lm.
735 (interp.o): Depend upon config.h.
736 (Makefile): Just rebuild Makefile.
737 (clean): Remove stamp-h.
738 (mostlyclean): Make the same as clean, not as distclean.
739 (config.h, stamp-h): New targets.
740
741 Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
742
743 * interp.c (ColdReset): Fix boolean test. Make all simulator
744 globals static.
745
746 Wed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
747
748 * interp.c (xfer_direct_word, xfer_direct_long,
749 swap_direct_word, swap_direct_long, xfer_big_word,
750 xfer_big_long, xfer_little_word, xfer_little_long,
751 swap_word,swap_long): Added.
752 * interp.c (ColdReset): Provide function indirection to
753 host<->simulated_target transfer routines.
754 * interp.c (sim_store_register, sim_fetch_register): Updated to
755 make use of indirected transfer routines.
756
757 Fri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
758
759 * gencode.c (process_instructions): Ensure FP ABS instruction
760 recognised.
761 * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
762 system call support.
763
764 Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
765
766 * interp.c (sim_do_command): Complain if callback structure not
767 initialised.
768
769 Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
770
771 * interp.c (Convert): Provide round-to-nearest and round-to-zero
772 support for Sun hosts.
773 * Makefile.in (gencode): Ensure the host compiler and libraries
774 used for cross-hosted build.
775
776 Wed Mar 27 14:42:12 1996 James G. Smith <jsmith@cygnus.co.uk>
777
778 * interp.c, gencode.c: Some more (TODO) tidying.
779
780 Thu Mar 7 11:19:33 1996 James G. Smith <jsmith@cygnus.co.uk>
781
782 * gencode.c, interp.c: Replaced explicit long long references with
783 WORD64HI, WORD64LO, SET64HI and SET64LO macro calls.
784 * support.h (SET64LO, SET64HI): Macros added.
785
786 Wed Feb 21 12:16:21 1996 Ian Lance Taylor <ian@cygnus.com>
787
788 * configure: Regenerate with autoconf 2.7.
789
790 Tue Jan 30 08:48:18 1996 Fred Fish <fnf@cygnus.com>
791
792 * interp.c (LoadMemory): Enclose text following #endif in /* */.
793 * support.h: Remove superfluous "1" from #if.
794 * support.h (CHECKSIM): Remove stray 'a' at end of line.
795
796 Mon Dec 4 11:44:40 1995 Jamie Smith <jsmith@cygnus.com>
797
798 * interp.c (StoreFPR): Control UndefinedResult() call on
799 WARN_RESULT manifest.
800
801 Fri Dec 1 16:37:19 1995 James G. Smith <jsmith@cygnus.co.uk>
802
803 * gencode.c: Tidied instruction decoding, and added FP instruction
804 support.
805
806 * interp.c: Added dineroIII, and BSD profiling support. Also
807 run-time FP handling.
808
809 Sun Oct 22 00:57:18 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
810
811 * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
812 gencode.c, interp.c, support.h: created.
This page took 0.053994 seconds and 5 git commands to generate.