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