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