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