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