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