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