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