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