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