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