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