Update.
[deliverable/binutils-gdb.git] / sim / mips / ChangeLog
1 Wed Apr 23 17:32:19 1997 Doug Evans <dje@canuck.cygnus.com>
2
3 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
4
5 Mon Apr 21 17:16:13 1997 Gavin Koch <gavin@cygnus.com>
6
7 * gencode.c (build_instruction): DIV instructions: check
8 for division by zero and integer overflow before using
9 host's division operation.
10
11 Thu Apr 17 03:18:14 1997 Doug Evans <dje@canuck.cygnus.com>
12
13 * Makefile.in (SIM_OBJS): Add sim-load.o.
14 * interp.c: #include bfd.h.
15 (target_byte_order): Delete.
16 (sim_kind, myname, big_endian_p): New static locals.
17 (sim_open): Set sim_kind, myname. Move call to set_endianness to
18 after argument parsing. Recognize -E arg, set endianness accordingly.
19 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
20 load file into simulator. Set PC from bfd.
21 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
22 (set_endianness): Use big_endian_p instead of target_byte_order.
23
24 Wed Apr 16 17:55:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
25
26 * interp.c (sim_size): Delete prototype - conflicts with
27 definition in remote-sim.h. Correct definition.
28
29 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
30
31 * configure: Regenerated to track ../common/aclocal.m4 changes.
32 * config.in: Ditto.
33
34 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
35
36 * interp.c (sim_open): New arg `kind'.
37
38 * configure: Regenerated to track ../common/aclocal.m4 changes.
39
40 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
41
42 * configure: Regenerated to track ../common/aclocal.m4 changes.
43
44 Tue Mar 25 11:38:22 1997 Doug Evans <dje@canuck.cygnus.com>
45
46 * interp.c (sim_open): Set optind to 0 before calling getopt.
47
48 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
49
50 * configure: Regenerated to track ../common/aclocal.m4 changes.
51
52 Mon Mar 17 10:52:59 1997 Gavin Koch <gavin@cetus.cygnus.com>
53
54 * interp.c : Replace uses of pr_addr with pr_uword64
55 where the bit length is always 64 independent of SIM_ADDR.
56 (pr_uword64) : added.
57
58 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
59
60 * configure: Re-generate.
61
62 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
63
64 * configure: Regenerate to track ../common/aclocal.m4 changes.
65
66 Thu Mar 13 12:51:36 1997 Doug Evans <dje@canuck.cygnus.com>
67
68 * interp.c (sim_open): New SIM_DESC result. Argument is now
69 in argv form.
70 (other sim_*): New SIM_DESC argument.
71
72 start-sanitize-r5900
73 Wed Feb 26 18:32:21 1997 Gavin Koch <gavin@cygnus.com>
74
75 * gencode.c (POP_AND,POP_OR,POP_NOR,POP_XOR):
76 Change values to avoid overloading DOUBLEWORD which is tested
77 for all insns.
78 * gencode.c: reinstate "offending code".
79 end-sanitize-r5900
80
81 Mon Feb 24 22:47:14 1997 Dawn Perchik <dawn@cygnus.com>
82
83 * interp.c: Fix printing of addresses for non-64-bit targets.
84 (pr_addr): Add function to print address based on size.
85 start-sanitize-r5900
86 * gencode.c: #ifdef out offending code until a permanent fix
87 can be added. Code is causing build errors for non-5900 mips targets.
88 end-sanitize-r5900
89
90 start-sanitize-r5900
91 Thu Feb 20 10:40:24 1997 Gavin Koch <gavin@cetus.cygnus.com>
92
93 * gencode.c (process_instructions): Correct test for ISA dependent
94 architecture bits in isa field of MIPS_DECODE.
95
96 end-sanitize-r5900
97 Wed Feb 19 14:42:09 1997 Mark Alexander <marka@cygnus.com>
98
99 * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
100
101 start-sanitize-r5900
102 Tue Feb 18 17:03:47 1997 Gavin Koch <gavin@cygnus.com>
103
104 * gencode.c (MIPS_DECODE): Correct instruction feature flags for
105 PMADDUW.
106
107 end-sanitize-r5900
108 Thu Feb 13 14:08:30 1997 Ian Lance Taylor <ian@cygnus.com>
109
110 * gencode.c (build_mips16_operands): Correct computation of base
111 address for extended PC relative instruction.
112
113 start-sanitize-r5900
114 Fri Feb 7 11:12:44 1997 Gavin Koch <gavin@cygnus.com>
115
116 * Makefile.in, configure, configure.in, gencode.c,
117 interp.c, support.h: add r5900.
118
119 end-sanitize-r5900
120 Thu Feb 6 17:16:15 1997 Ian Lance Taylor <ian@cygnus.com>
121
122 * interp.c (mips16_entry): Add support for floating point cases.
123 (SignalException): Pass floating point cases to mips16_entry.
124 (ValueFPR): Don't restrict fmt_single and fmt_word to even
125 registers.
126 (StoreFPR): Likewise. Also, don't clobber fpr + 1 for fmt_single
127 or fmt_word.
128 (COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
129 and then set the state to fmt_uninterpreted.
130 (COP_SW): Temporarily set the state to fmt_word while calling
131 ValueFPR.
132
133 Tue Feb 4 16:48:25 1997 Ian Lance Taylor <ian@cygnus.com>
134
135 * gencode.c (build_instruction): The high order may be set in the
136 comparison flags at any ISA level, not just ISA 4.
137
138 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
139
140 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
141 COMMON_{PRE,POST}_CONFIG_FRAG instead.
142 * configure.in: sinclude ../common/aclocal.m4.
143 * configure: Regenerated.
144
145 Fri Jan 31 11:11:45 1997 Ian Lance Taylor <ian@cygnus.com>
146
147 * configure: Rebuild after change to aclocal.m4.
148
149 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
150
151 * configure configure.in Makefile.in: Update to new configure
152 scheme which is more compatible with WinGDB builds.
153 * configure.in: Improve comment on how to run autoconf.
154 * configure: Re-run autoconf to get new ../common/aclocal.m4.
155 * Makefile.in: Use autoconf substitution to install common
156 makefile fragment.
157
158 Wed Jan 8 12:39:03 1997 Jim Wilson <wilson@cygnus.com>
159
160 * gencode.c (build_instruction): Use BigEndianCPU instead of
161 ByteSwapMem.
162
163 Thu Jan 02 22:23:04 1997 Mark Alexander <marka@cygnus.com>
164
165 * interp.c (sim_monitor): Make output to stdout visible in
166 wingdb's I/O log window.
167
168 Tue Dec 31 07:04:00 1996 Mark Alexander <marka@cygnus.com>
169
170 * support.h: Undo previous change to SIGTRAP
171 and SIGQUIT values.
172
173 Mon Dec 30 17:36:06 1996 Ian Lance Taylor <ian@cygnus.com>
174
175 * interp.c (store_word, load_word): New static functions.
176 (mips16_entry): New static function.
177 (SignalException): Look for mips16 entry and exit instructions.
178 (simulate): Use the correct index when setting fpr_state after
179 doing a pending move.
180
181 Sun Dec 29 09:37:18 1996 Mark Alexander <marka@cygnus.com>
182
183 * interp.c: Fix byte-swapping code throughout to work on
184 both little- and big-endian hosts.
185
186 Sun Dec 29 09:18:32 1996 Mark Alexander <marka@cygnus.com>
187
188 * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
189 with gdb/config/i386/xm-windows.h.
190
191 Fri Dec 27 22:48:51 1996 Mark Alexander <marka@cygnus.com>
192
193 * gencode.c (build_instruction): Work around MSVC++ code gen bug
194 that messes up arithmetic shifts.
195
196 Fri Dec 20 11:04:05 1996 Stu Grossman (grossman@critters.cygnus.com)
197
198 * support.h: Use _WIN32 instead of __WIN32__. Also add defs for
199 SIGTRAP and SIGQUIT for _WIN32.
200
201 Thu Dec 19 14:07:27 1996 Ian Lance Taylor <ian@cygnus.com>
202
203 * gencode.c (build_instruction) [MUL]: Cast operands to word64, to
204 force a 64 bit multiplication.
205 (build_instruction) [OR]: In mips16 mode, don't do anything if the
206 destination register is 0, since that is the default mips16 nop
207 instruction.
208
209 Mon Dec 16 14:59:38 1996 Ian Lance Taylor <ian@cygnus.com>
210
211 * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
212 (build_endian_shift): Don't check proc64.
213 (build_instruction): Always set memval to uword64. Cast op2 to
214 uword64 when shifting it left in memory instructions. Always use
215 the same code for stores--don't special case proc64.
216
217 * gencode.c (build_mips16_operands): Fix base PC value for PC
218 relative operands.
219 (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
220 jal instruction.
221 * interp.c (simJALDELAYSLOT): Define.
222 (JALDELAYSLOT): Define.
223 (INDELAYSLOT, INJALDELAYSLOT): Define.
224 (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
225
226 Tue Dec 24 22:11:20 1996 Angela Marie Thomas (angela@cygnus.com)
227
228 * interp.c (sim_open): add flush_cache as a PMON routine
229 (sim_monitor): handle flush_cache by ignoring it
230
231 Wed Dec 11 13:53:51 1996 Jim Wilson <wilson@cygnus.com>
232
233 * gencode.c (build_instruction): Use !ByteSwapMem instead of
234 BigEndianMem.
235 * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
236 (BigEndianMem): Rename to ByteSwapMem and change sense.
237 (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
238 BigEndianMem references to !ByteSwapMem.
239 (set_endianness): New function, with prototype.
240 (sim_open): Call set_endianness.
241 (sim_info): Use simBE instead of BigEndianMem.
242 (xfer_direct_word, xfer_direct_long, swap_direct_word,
243 swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
244 xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
245 ifdefs, keeping the prototype declaration.
246 (swap_word): Rewrite correctly.
247 (ColdReset): Delete references to CONFIG. Delete endianness related
248 code; moved to set_endianness.
249
250 Tue Dec 10 11:32:04 1996 Jim Wilson <wilson@cygnus.com>
251
252 * gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
253 * interp.c (CHECKHILO): Define away.
254 (simSIGINT): New macro.
255 (membank_size): Increase from 1MB to 2MB.
256 (control_c): New function.
257 (sim_resume): Rename parameter signal to signal_number. Add local
258 variable prev. Call signal before and after simulate.
259 (sim_stop_reason): Add simSIGINT support.
260 (sim_warning, sim_error, dotrace, SignalException): Define as stdarg
261 functions always.
262 (sim_warning): Delete call to SignalException. Do call printf_filtered
263 if logfh is NULL.
264 (AddressTranslation): Add #ifdef DEBUG around debugging message and
265 a call to sim_warning.
266
267 Wed Nov 27 11:53:50 1996 Ian Lance Taylor <ian@cygnus.com>
268
269 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
270 16 bit instructions.
271
272 Tue Nov 26 11:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
273
274 Add support for mips16 (16 bit MIPS implementation):
275 * gencode.c (inst_type): Add mips16 instruction encoding types.
276 (GETDATASIZEINSN): Define.
277 (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add
278 jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and
279 mtlo.
280 (MIPS16_DECODE): New table, for mips16 instructions.
281 (bitmap_val): New static function.
282 (struct mips16_op): Define.
283 (mips16_op_table): New table, for mips16 operands.
284 (build_mips16_operands): New static function.
285 (process_instructions): If PC is odd, decode a mips16
286 instruction. Break out instruction handling into new
287 build_instruction function.
288 (build_instruction): New static function, broken out of
289 process_instructions. Check modifiers rather than flags for SHIFT
290 bit count and m[ft]{hi,lo} direction.
291 (usage): Pass program name to fprintf.
292 (main): Remove unused variable this_option_optind. Change
293 ``*loptarg++'' to ``loptarg++''.
294 (my_strtoul): Parenthesize && within ||.
295 * interp.c (LoadMemory): Accept a halfword pAddr if vAddr is odd.
296 (simulate): If PC is odd, fetch a 16 bit instruction, and
297 increment PC by 2 rather than 4.
298 * configure.in: Add case for mips16*-*-*.
299 * configure: Rebuild.
300
301 Fri Nov 22 08:49:36 1996 Mark Alexander <marka@cygnus.com>
302
303 * interp.c: Allow -t to enable tracing in standalone simulator.
304 Fix garbage output in trace file and error messages.
305
306 Wed Nov 20 01:54:37 1996 Doug Evans <dje@canuck.cygnus.com>
307
308 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
309 (SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
310 * configure.in: Simplify using macros in ../common/aclocal.m4.
311 * configure: Regenerated.
312 * tconfig.in: New file.
313
314 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
315
316 * interp.c: Fix bugs in 64-bit port.
317 Use ansi function declarations for msvc compiler.
318 Initialize and test file pointer in trace code.
319 Prevent duplicate definition of LAST_EMED_REGNUM.
320
321 Tue Oct 15 11:07:06 1996 Mark Alexander <marka@cygnus.com>
322
323 * interp.c (xfer_big_long): Prevent unwanted sign extension.
324
325 Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
326
327 * interp.c (SignalException): Check for explicit terminating
328 breakpoint value.
329 * gencode.c: Pass instruction value through SignalException()
330 calls for Trap, Breakpoint and Syscall.
331
332 Thu Sep 26 11:35:17 1996 James G. Smith <jsmith@cygnus.co.uk>
333
334 * interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
335 only used on those hosts that provide it.
336 * configure.in: Add sqrt() to list of functions to be checked for.
337 * config.in: Re-generated.
338 * configure: Re-generated.
339
340 Fri Sep 20 15:47:12 1996 Ian Lance Taylor <ian@cygnus.com>
341
342 * gencode.c (process_instructions): Call build_endian_shift when
343 expanding STORE RIGHT, to fix swr.
344 * support.h (SIGNEXTEND): If the sign bit is not set, explicitly
345 clear the high bits.
346 * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
347 Fix float to int conversions to produce signed values.
348
349 Thu Sep 19 15:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
350
351 * gencode.c (MIPS_DECODE): Set UNSIGNED for multu instruction.
352 (process_instructions): Correct handling of nor instruction.
353 Correct shift count for 32 bit shift instructions. Correct sign
354 extension for arithmetic shifts to not shift the number of bits in
355 the type. Fix 64 bit multiply high word calculation. Fix 32 bit
356 unsigned multiply. Fix ldxc1 and friends to use coprocessor 1.
357 Fix madd.
358 * interp.c (CHECKHILO): Don't set HIACCESS, LOACCESS, or HLPC.
359 It's OK to have a mult follow a mult. What's not OK is to have a
360 mult follow an mfhi.
361 (Convert): Comment out incorrect rounding code.
362
363 Mon Sep 16 11:38:16 1996 James G. Smith <jsmith@cygnus.co.uk>
364
365 * interp.c (sim_monitor): Improved monitor printf
366 simulation. Tidied up simulator warnings, and added "--log" option
367 for directing warning message output.
368 * gencode.c: Use sim_warning() rather than WARNING macro.
369
370 Thu Aug 22 15:03:12 1996 Ian Lance Taylor <ian@cygnus.com>
371
372 * Makefile.in (gencode): Depend upon gencode.o, getopt.o, and
373 getopt1.o, rather than on gencode.c. Link objects together.
374 Don't link against -liberty.
375 (gencode.o, getopt.o, getopt1.o): New targets.
376 * gencode.c: Include <ctype.h> and "ansidecl.h".
377 (AND): Undefine after including "ansidecl.h".
378 (ULONG_MAX): Define if not defined.
379 (OP_*): Don't define macros; now defined in opcode/mips.h.
380 (main): Call my_strtoul rather than strtoul.
381 (my_strtoul): New static function.
382
383 Wed Jul 17 18:12:38 1996 Stu Grossman (grossman@critters.cygnus.com)
384
385 * gencode.c (process_instructions): Generate word64 and uword64
386 instead of `long long' and `unsigned long long' data types.
387 * interp.c: #include sysdep.h to get signals, and define default
388 for SIGBUS.
389 * (Convert): Work around for Visual-C++ compiler bug with type
390 conversion.
391 * support.h: Make things compile under Visual-C++ by using
392 __int64 instead of `long long'. Change many refs to long long
393 into word64/uword64 typedefs.
394
395 Wed Jun 26 12:24:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
396
397 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
398 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
399 (docdir): Removed.
400 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
401 (AC_PROG_INSTALL): Added.
402 (AC_PROG_CC): Moved to before configure.host call.
403 * configure: Rebuilt.
404
405 Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
406
407 * configure.in: Define @SIMCONF@ depending on mips target.
408 * configure: Rebuild.
409 * Makefile.in (run): Add @SIMCONF@ to control simulator
410 construction.
411 * gencode.c: Change LOADDRMASK to 64bit memory model only.
412 * interp.c: Remove some debugging, provide more detailed error
413 messages, update memory accesses to use LOADDRMASK.
414
415 Mon Jun 3 11:55:03 1996 Ian Lance Taylor <ian@cygnus.com>
416
417 * configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
418 AC_CHECK_LIB, and AC_CHECK_FUNCS. Change AC_OUTPUT to set
419 stamp-h.
420 * configure: Rebuild.
421 * config.in: New file, generated by autoheader.
422 * interp.c: Include "config.h". Include <stdlib.h>, <string.h>,
423 and <strings.h> if they exist. Replace #ifdef sun with #ifdef
424 HAVE_ANINT and HAVE_AINT, as appropriate.
425 * Makefile.in (run): Use @LIBS@ rather than -lm.
426 (interp.o): Depend upon config.h.
427 (Makefile): Just rebuild Makefile.
428 (clean): Remove stamp-h.
429 (mostlyclean): Make the same as clean, not as distclean.
430 (config.h, stamp-h): New targets.
431
432 Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
433
434 * interp.c (ColdReset): Fix boolean test. Make all simulator
435 globals static.
436
437 Wed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
438
439 * interp.c (xfer_direct_word, xfer_direct_long,
440 swap_direct_word, swap_direct_long, xfer_big_word,
441 xfer_big_long, xfer_little_word, xfer_little_long,
442 swap_word,swap_long): Added.
443 * interp.c (ColdReset): Provide function indirection to
444 host<->simulated_target transfer routines.
445 * interp.c (sim_store_register, sim_fetch_register): Updated to
446 make use of indirected transfer routines.
447
448 Fri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
449
450 * gencode.c (process_instructions): Ensure FP ABS instruction
451 recognised.
452 * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
453 system call support.
454
455 Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
456
457 * interp.c (sim_do_command): Complain if callback structure not
458 initialised.
459
460 Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
461
462 * interp.c (Convert): Provide round-to-nearest and round-to-zero
463 support for Sun hosts.
464 * Makefile.in (gencode): Ensure the host compiler and libraries
465 used for cross-hosted build.
466
467 Wed Mar 27 14:42:12 1996 James G. Smith <jsmith@cygnus.co.uk>
468
469 * interp.c, gencode.c: Some more (TODO) tidying.
470
471 Thu Mar 7 11:19:33 1996 James G. Smith <jsmith@cygnus.co.uk>
472
473 * gencode.c, interp.c: Replaced explicit long long references with
474 WORD64HI, WORD64LO, SET64HI and SET64LO macro calls.
475 * support.h (SET64LO, SET64HI): Macros added.
476
477 Wed Feb 21 12:16:21 1996 Ian Lance Taylor <ian@cygnus.com>
478
479 * configure: Regenerate with autoconf 2.7.
480
481 Tue Jan 30 08:48:18 1996 Fred Fish <fnf@cygnus.com>
482
483 * interp.c (LoadMemory): Enclose text following #endif in /* */.
484 * support.h: Remove superfluous "1" from #if.
485 * support.h (CHECKSIM): Remove stray 'a' at end of line.
486
487 Mon Dec 4 11:44:40 1995 Jamie Smith <jsmith@cygnus.com>
488
489 * interp.c (StoreFPR): Control UndefinedResult() call on
490 WARN_RESULT manifest.
491
492 Fri Dec 1 16:37:19 1995 James G. Smith <jsmith@cygnus.co.uk>
493
494 * gencode.c: Tidied instruction decoding, and added FP instruction
495 support.
496
497 * interp.c: Added dineroIII, and BSD profiling support. Also
498 run-time FP handling.
499
500 Sun Oct 22 00:57:18 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
501
502 * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
503 gencode.c, interp.c, support.h: created.
This page took 0.056811 seconds and 5 git commands to generate.