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