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