Support -alh and -ald for DWARF 1:
[deliverable/binutils-gdb.git] / sim / mips / ChangeLog
CommitLineData
b637f306
GRK
1start-sanitize-tx19
2Sun Sep 7 16:05:46 1997 Gavin Koch <gavin@cygnus.com>
3
4 * mips/configure.in, mips/gencode: Add tx19/r1900.
5
6end-sanitize-tx19
6fea4763
DE
7Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
8
9 * configure: Regenerated to track ../common/aclocal.m4 changes.
10
52352d38
AC
11start-sanitize-r5900
12Mon Sep 1 18:43:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
13
14 * gencode.c (build_instruction): For "pabsw" and "pabsh", check
15 for overflow due to ABS of MININT, set result to MAXINT.
16 (build_instruction): For "psrlvw", signextend bit 31.
17
18end-sanitize-r5900
88117054
AC
19Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
20
21 * configure: Regenerated to track ../common/aclocal.m4 changes.
22 * config.in: Ditto.
23
fafce69a
AC
24Wed Aug 27 14:12:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
25
26 * interp.c (sim_open): Add call to sim_analyze_program, update
27 call to sim_config.
28
7230ff0f
AC
29Tue Aug 26 10:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
30
31 * interp.c (sim_kill): Delete.
fafce69a
AC
32 (sim_create_inferior): Add ABFD argument. Set PC from same.
33 (sim_load): Move code initializing trap handlers from here.
34 (sim_open): To here.
35 (sim_load): Delete, use sim-hload.c.
36
37 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
7230ff0f 38
247fccde
AC
39Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
40
41 * configure: Regenerated to track ../common/aclocal.m4 changes.
42 * config.in: Ditto.
43
44Mon Aug 25 15:59:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
45
46 * interp.c (sim_open): Add ABFD argument.
47 (sim_load): Move call to sim_config from here.
48 (sim_open): To here. Check return status.
49
50start-sanitize-r5900
51 * gencode.c (build_instruction): Do not define x8000000000000000,
52 x7FFFFFFFFFFFFFFF, or xFFFFFFFF80000000.
53
54end-sanitize-r5900
55start-sanitize-r5900
56Mon Jul 28 19:49:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
57
58 * gencode.c (build_instruction): For "pdivw", "pdivbw" and
59 "pdivuw" check for overflow due to signed divide by -1.
60
61end-sanitize-r5900
c12e2e4c
GRK
62Fri Jul 25 15:00:45 1997 Gavin Koch <gavin@cygnus.com>
63
64 * gencode.c (build_instruction): Two arg MADD should
65 not assign result to $0.
66
1e851d2c
AC
67start-sanitize-r5900
68Thu Jul 10 11:58:48 1997 Andrew Cagney <cagney@critters.cygnus.com>
69
70 * gencode.c (build_instruction): For "ppac5" use unsigned
71 arrithmetic so that the sign bit doesn't smear when right shifted.
72 (build_instruction): For "pdiv" perform sign extension when
73 storing results in HI and LO.
74 (build_instructions): For "pdiv" and "pdivbw" check for
75 divide-by-zero.
76 (build_instruction): For "pmfhl.slw" update hi part of dest
77 register as well as low part.
78 (build_instruction): For "pmfhl" portably handle long long values.
79 (build_instruction): For "pmfhl.sh" correctly negative values.
80 Store half words 2 and three in the correct place.
81 (build_instruction): For "psllvw", sign extend value after shift.
82
83end-sanitize-r5900
84Thu Jun 26 12:13:17 1997 Angela Marie Thomas (angela@cygnus.com)
85
86 * sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
87 * sim/mips/configure.in: Regenerate.
88
89Wed Jul 9 10:29:21 1997 Andrew Cagney <cagney@critters.cygnus.com>
90
91 * interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
92 signed8, unsigned8 et.al. types.
93
94start-sanitize-r5900
95 * gencode.c (build_instruction): For PMULTU* do not sign extend
96 registers. Make generated code easier to debug.
97
98end-sanitize-r5900
99 * interp.c (SUB_REG_FETCH): Handle both little and big endian
100 hosts when selecting subreg.
101
102start-sanitize-r5900
103Tue Jul 8 18:07:20 1997 Andrew Cagney <cagney@andros.cygnus.com>
104
105 * gencode.c (type_for_data_len): For 32bit operations concerned
106 with overflow, perform op using 64bits.
107 (build_instruction): For PADD, always compute operation using type
108 returned by type_for_data_len.
109 (build_instruction): For PSUBU, when overflow, saturate to zero as
110 actually underflow.
111
112end-sanitize-r5900
ae19b07b
JL
113Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com)
114
649625bb 115start-sanitize-r5900
64435234
JL
116 * gencode.c (build_instruction): Handle "pext5" according to
117 version 1.95 of the r5900 ISA.
118
649625bb
JL
119 * gencode.c (build_instruction): Handle "ppac5" according to
120 version 1.95 of the r5900 ISA.
649625bb 121
1e851d2c 122end-sanitize-r5900
05d1322f
JL
123 * interp.c (sim_engine_run): Reset the ZERO register to zero
124 regardless of FEATURE_WARN_ZERO.
ae19b07b
JL
125 * gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
126
127Wed Jun 4 10:43:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
128
129 * interp.c (decode_coproc): Implement MTC0 N, CAUSE.
130 (SignalException): For BreakPoints ignore any mode bits and just
131 save the PC.
132 (SignalException): Always set the CAUSE register.
133
56e7c849
AC
134Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
135
136 * interp.c (SignalException): Clear the simDELAYSLOT flag when an
137 exception has been taken.
138
139 * interp.c: Implement the ERET and mt/f sr instructions.
140
ae19b07b 141start-sanitize-r5900
56e7c849
AC
142Mon Jun 2 23:28:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
143
144 * gencode.c (build_instruction): For paddu, extract unsigned
145 sub-fields.
146
147 * gencode.c (build_instruction): Saturate padds instead of padd
148 instructions.
149
150end-sanitize-r5900
151Sat May 31 00:44:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
152
153 * interp.c (SignalException): Don't bother restarting an
154 interrupt.
155
156Fri May 30 23:41:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
157
158 * interp.c (SignalException): Really take an interrupt.
159 (interrupt_event): Only deliver interrupts when enabled.
160
161Tue May 27 20:08:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
162
163 * interp.c (sim_info): Only print info when verbose.
164 (sim_info) Use sim_io_printf for output.
165
2f2e6c5d
AC
166Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
167
168 * interp.c (CoProcPresent): Add UNUSED attribute - not used by all
169 mips architectures.
170
171Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
172
173 * interp.c (sim_do_command): Check for common commands if a
174 simulator specific command fails.
175
d3d2a9f7
GRK
176Thu May 22 09:32:03 1997 Gavin Koch <gavin@cygnus.com>
177
178 * interp.c (sim_engine_run): ifdef out uses of simSTOP, simSTEP
179 and simBE when DEBUG is defined.
180
50a2a691
AC
181Wed May 21 09:08:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
182
183 * interp.c (interrupt_event): New function. Pass exception event
184 onto exception handler.
185
186 * configure.in: Check for stdlib.h.
187 * configure: Regenerate.
188
189 * gencode.c (build_instruction): Add UNUSED attribute to tempS
190 variable declaration.
191 (build_instruction): Initialize memval1.
192 (build_instruction): Add UNUSED attribute to byte, bigend,
193 reverse.
194 (build_operands): Ditto.
195
196 * interp.c: Fix GCC warnings.
197 (sim_get_quit_code): Delete.
198
199 * configure.in: Add INLINE, ENDIAN, HOSTENDIAN and WARNINGS.
200 * Makefile.in: Ditto.
201 * configure: Re-generate.
202
203 * Makefile.in (SIM_OBJS): Add sim-watch.o module.
204
205Tue May 20 15:08:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
206
207 * interp.c (mips_option_handler): New function parse argumes using
208 sim-options.
209 (myname): Replace with STATE_MY_NAME.
210 (sim_open): Delete check for host endianness - performed by
211 sim_config.
212 (simHOSTBE, simBE): Delete, replaced by sim-endian flags.
213 (sim_open): Move much of the initialization from here.
214 (sim_load): To here. After the image has been loaded and
215 endianness set.
216 (sim_open): Move ColdReset from here.
217 (sim_create_inferior): To here.
218 (sim_open): Make FP check less dependant on host endianness.
219
220 * Makefile.in (SIM_RUN_OBJS): Set to nrun.o - use new version or
221 run.
222 * interp.c (sim_set_callbacks): Delete.
223
224 * interp.c (membank, membank_base, membank_size): Replace with
225 STATE_MEMORY, STATE_MEM_SIZE, STATE_MEM_BASE.
226 (sim_open): Remove call to callback->init. gdb/run do this.
227
228 * interp.c: Update
229
230 * sim-main.h (SIM_HAVE_FLATMEM): Define.
231
232 * interp.c (big_endian_p): Delete, replaced by
233 current_target_byte_order.
234
235Tue May 20 13:55:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
236
237 * interp.c (host_read_long, host_read_word, host_swap_word,
238 host_swap_long): Delete. Using common sim-endian.
239 (sim_fetch_register, sim_store_register): Use H2T.
240 (pipeline_ticks): Delete. Handled by sim-events.
241 (sim_info): Update.
242 (sim_engine_run): Update.
243
244Tue May 20 13:42:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
245
246 * interp.c (sim_stop_reason): Move code determining simEXCEPTION
247 reason from here.
248 (SignalException): To here. Signal using sim_engine_halt.
249 (sim_stop_reason): Delete, moved to common.
250
251Tue May 20 10:19:48 1997 Andrew Cagney <cagney@b2.cygnus.com>
252
253 * interp.c (sim_open): Add callback argument.
254 (sim_set_callbacks): Delete SIM_DESC argument.
255 (sim_size): Ditto.
256
2e61a3ad
AC
257Mon May 19 18:20:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
258
259 * Makefile.in (SIM_OBJS): Add common modules.
260
261 * interp.c (sim_set_callbacks): Also set SD callback.
262 (set_endianness, xfer_*, swap_*): Delete.
263 (host_read_word, host_read_long, host_swap_word, host_swap_long):
264 Change to functions using sim-endian macros.
265 (control_c, sim_stop): Delete, use common version.
266 (simulate): Convert into.
267 (sim_engine_run): This function.
268 (sim_resume): Delete.
269
270 * interp.c (simulation): New variable - the simulator object.
271 (sim_kind): Delete global - merged into simulation.
272 (sim_load): Cleanup. Move PC assignment from here.
273 (sim_create_inferior): To here.
274
275 * sim-main.h: New file.
276 * interp.c (sim-main.h): Include.
277
278Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
279
280 * configure: Regenerated to track ../common/aclocal.m4 changes.
281
3be0e228
DE
282Wed Apr 23 17:32:19 1997 Doug Evans <dje@canuck.cygnus.com>
283
284 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
285
d654ba0a
GRK
286Mon Apr 21 17:16:13 1997 Gavin Koch <gavin@cygnus.com>
287
288 * gencode.c (build_instruction): DIV instructions: check
289 for division by zero and integer overflow before using
290 host's division operation.
291
9d52bcb7
DE
292Thu Apr 17 03:18:14 1997 Doug Evans <dje@canuck.cygnus.com>
293
294 * Makefile.in (SIM_OBJS): Add sim-load.o.
295 * interp.c: #include bfd.h.
296 (target_byte_order): Delete.
297 (sim_kind, myname, big_endian_p): New static locals.
298 (sim_open): Set sim_kind, myname. Move call to set_endianness to
299 after argument parsing. Recognize -E arg, set endianness accordingly.
300 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
301 load file into simulator. Set PC from bfd.
302 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
303 (set_endianness): Use big_endian_p instead of target_byte_order.
304
87e43259
AC
305Wed Apr 16 17:55:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
306
307 * interp.c (sim_size): Delete prototype - conflicts with
308 definition in remote-sim.h. Correct definition.
309
310Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
311
312 * configure: Regenerated to track ../common/aclocal.m4 changes.
313 * config.in: Ditto.
314
fbda74b1
DE
315Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
316
8a7c3105
DE
317 * interp.c (sim_open): New arg `kind'.
318
fbda74b1
DE
319 * configure: Regenerated to track ../common/aclocal.m4 changes.
320
a35e91c3
AC
321Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
322
323 * configure: Regenerated to track ../common/aclocal.m4 changes.
324
325Tue Mar 25 11:38:22 1997 Doug Evans <dje@canuck.cygnus.com>
326
327 * interp.c (sim_open): Set optind to 0 before calling getopt.
328
329Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
330
331 * configure: Regenerated to track ../common/aclocal.m4 changes.
332
6efa34d8
GRK
333Mon Mar 17 10:52:59 1997 Gavin Koch <gavin@cetus.cygnus.com>
334
335 * interp.c : Replace uses of pr_addr with pr_uword64
336 where the bit length is always 64 independent of SIM_ADDR.
337 (pr_uword64) : added.
338
a77aa7ec
AC
339Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
340
341 * configure: Re-generate.
342
601fb8ae
MM
343Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
344
345 * configure: Regenerate to track ../common/aclocal.m4 changes.
346
53b9417e
DE
347Thu Mar 13 12:51:36 1997 Doug Evans <dje@canuck.cygnus.com>
348
349 * interp.c (sim_open): New SIM_DESC result. Argument is now
350 in argv form.
351 (other sim_*): New SIM_DESC argument.
352
353start-sanitize-r5900
354Wed Feb 26 18:32:21 1997 Gavin Koch <gavin@cygnus.com>
355
356 * gencode.c (POP_AND,POP_OR,POP_NOR,POP_XOR):
357 Change values to avoid overloading DOUBLEWORD which is tested
358 for all insns.
359 * gencode.c: reinstate "offending code".
53b9417e 360
56e7c849 361end-sanitize-r5900
53b9417e
DE
362Mon Feb 24 22:47:14 1997 Dawn Perchik <dawn@cygnus.com>
363
364 * interp.c: Fix printing of addresses for non-64-bit targets.
365 (pr_addr): Add function to print address based on size.
366start-sanitize-r5900
367 * gencode.c: #ifdef out offending code until a permanent fix
368 can be added. Code is causing build errors for non-5900 mips targets.
369end-sanitize-r5900
370
371start-sanitize-r5900
372Thu Feb 20 10:40:24 1997 Gavin Koch <gavin@cetus.cygnus.com>
373
374 * gencode.c (process_instructions): Correct test for ISA dependent
375 architecture bits in isa field of MIPS_DECODE.
376
377end-sanitize-r5900
7e05106d
MA
378Wed Feb 19 14:42:09 1997 Mark Alexander <marka@cygnus.com>
379
380 * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
381
2d18fbc6 382start-sanitize-r5900
53b9417e 383Tue Feb 18 17:03:47 1997 Gavin Koch <gavin@cygnus.com>
2d18fbc6
GRK
384
385 * gencode.c (MIPS_DECODE): Correct instruction feature flags for
386 PMADDUW.
387
388end-sanitize-r5900
389Thu Feb 13 14:08:30 1997 Ian Lance Taylor <ian@cygnus.com>
390
391 * gencode.c (build_mips16_operands): Correct computation of base
392 address for extended PC relative instruction.
393
276c2d7d
GRK
394start-sanitize-r5900
395Fri Feb 7 11:12:44 1997 Gavin Koch <gavin@cygnus.com>
2d18fbc6
GRK
396
397 * Makefile.in, configure, configure.in, gencode.c,
398 interp.c, support.h: add r5900.
399
276c2d7d 400end-sanitize-r5900
da0bce9c
ILT
401Thu Feb 6 17:16:15 1997 Ian Lance Taylor <ian@cygnus.com>
402
403 * interp.c (mips16_entry): Add support for floating point cases.
404 (SignalException): Pass floating point cases to mips16_entry.
405 (ValueFPR): Don't restrict fmt_single and fmt_word to even
406 registers.
407 (StoreFPR): Likewise. Also, don't clobber fpr + 1 for fmt_single
408 or fmt_word.
409 (COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
410 and then set the state to fmt_uninterpreted.
411 (COP_SW): Temporarily set the state to fmt_word while calling
412 ValueFPR.
413
6389d856
ILT
414Tue Feb 4 16:48:25 1997 Ian Lance Taylor <ian@cygnus.com>
415
416 * gencode.c (build_instruction): The high order may be set in the
417 comparison flags at any ISA level, not just ISA 4.
418
19c5af72
DE
419Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
420
421 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
422 COMMON_{PRE,POST}_CONFIG_FRAG instead.
423 * configure.in: sinclude ../common/aclocal.m4.
424 * configure: Regenerated.
425
736a306c
ILT
426Fri Jan 31 11:11:45 1997 Ian Lance Taylor <ian@cygnus.com>
427
428 * configure: Rebuild after change to aclocal.m4.
429
295dbbe4
SG
430Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
431
432 * configure configure.in Makefile.in: Update to new configure
433 scheme which is more compatible with WinGDB builds.
434 * configure.in: Improve comment on how to run autoconf.
435 * configure: Re-run autoconf to get new ../common/aclocal.m4.
436 * Makefile.in: Use autoconf substitution to install common
437 makefile fragment.
438
439Wed Jan 8 12:39:03 1997 Jim Wilson <wilson@cygnus.com>
440
441 * gencode.c (build_instruction): Use BigEndianCPU instead of
442 ByteSwapMem.
443
e1db0d47
MA
444Thu Jan 02 22:23:04 1997 Mark Alexander <marka@cygnus.com>
445
446 * interp.c (sim_monitor): Make output to stdout visible in
447 wingdb's I/O log window.
448
2902e8ab
MA
449Tue Dec 31 07:04:00 1996 Mark Alexander <marka@cygnus.com>
450
451 * support.h: Undo previous change to SIGTRAP
452 and SIGQUIT values.
453
7e6c297e
ILT
454Mon Dec 30 17:36:06 1996 Ian Lance Taylor <ian@cygnus.com>
455
456 * interp.c (store_word, load_word): New static functions.
457 (mips16_entry): New static function.
458 (SignalException): Look for mips16 entry and exit instructions.
459 (simulate): Use the correct index when setting fpr_state after
460 doing a pending move.
461
0049ba7a
MA
462Sun Dec 29 09:37:18 1996 Mark Alexander <marka@cygnus.com>
463
464 * interp.c: Fix byte-swapping code throughout to work on
465 both little- and big-endian hosts.
466
2510786b
MA
467Sun Dec 29 09:18:32 1996 Mark Alexander <marka@cygnus.com>
468
469 * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
470 with gdb/config/i386/xm-windows.h.
471
39bf0ef4
MA
472Fri Dec 27 22:48:51 1996 Mark Alexander <marka@cygnus.com>
473
474 * gencode.c (build_instruction): Work around MSVC++ code gen bug
475 that messes up arithmetic shifts.
476
dbeec768
SG
477Fri Dec 20 11:04:05 1996 Stu Grossman (grossman@critters.cygnus.com)
478
479 * support.h: Use _WIN32 instead of __WIN32__. Also add defs for
480 SIGTRAP and SIGQUIT for _WIN32.
481
deffd638
ILT
482Thu Dec 19 14:07:27 1996 Ian Lance Taylor <ian@cygnus.com>
483
484 * gencode.c (build_instruction) [MUL]: Cast operands to word64, to
485 force a 64 bit multiplication.
486 (build_instruction) [OR]: In mips16 mode, don't do anything if the
487 destination register is 0, since that is the default mips16 nop
488 instruction.
489
aaff8437
ILT
490Mon Dec 16 14:59:38 1996 Ian Lance Taylor <ian@cygnus.com>
491
063443cf
ILT
492 * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
493 (build_endian_shift): Don't check proc64.
494 (build_instruction): Always set memval to uword64. Cast op2 to
495 uword64 when shifting it left in memory instructions. Always use
496 the same code for stores--don't special case proc64.
497
aaff8437
ILT
498 * gencode.c (build_mips16_operands): Fix base PC value for PC
499 relative operands.
500 (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
501 jal instruction.
502 * interp.c (simJALDELAYSLOT): Define.
503 (JALDELAYSLOT): Define.
504 (INDELAYSLOT, INJALDELAYSLOT): Define.
505 (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
506
280f90e1
AMT
507Tue Dec 24 22:11:20 1996 Angela Marie Thomas (angela@cygnus.com)
508
509 * interp.c (sim_open): add flush_cache as a PMON routine
510 (sim_monitor): handle flush_cache by ignoring it
511
aaff8437
ILT
512Wed Dec 11 13:53:51 1996 Jim Wilson <wilson@cygnus.com>
513
514 * gencode.c (build_instruction): Use !ByteSwapMem instead of
515 BigEndianMem.
516 * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
517 (BigEndianMem): Rename to ByteSwapMem and change sense.
518 (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
519 BigEndianMem references to !ByteSwapMem.
520 (set_endianness): New function, with prototype.
521 (sim_open): Call set_endianness.
522 (sim_info): Use simBE instead of BigEndianMem.
523 (xfer_direct_word, xfer_direct_long, swap_direct_word,
524 swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
525 xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
526 ifdefs, keeping the prototype declaration.
527 (swap_word): Rewrite correctly.
528 (ColdReset): Delete references to CONFIG. Delete endianness related
529 code; moved to set_endianness.
530
6429b296
JW
531Tue Dec 10 11:32:04 1996 Jim Wilson <wilson@cygnus.com>
532
533 * gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
534 * interp.c (CHECKHILO): Define away.
535 (simSIGINT): New macro.
536 (membank_size): Increase from 1MB to 2MB.
537 (control_c): New function.
538 (sim_resume): Rename parameter signal to signal_number. Add local
539 variable prev. Call signal before and after simulate.
540 (sim_stop_reason): Add simSIGINT support.
541 (sim_warning, sim_error, dotrace, SignalException): Define as stdarg
542 functions always.
543 (sim_warning): Delete call to SignalException. Do call printf_filtered
544 if logfh is NULL.
545 (AddressTranslation): Add #ifdef DEBUG around debugging message and
546 a call to sim_warning.
547
548Wed Nov 27 11:53:50 1996 Ian Lance Taylor <ian@cygnus.com>
549
550 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
551 16 bit instructions.
552
831f59a2
ILT
553Tue Nov 26 11:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
554
555 Add support for mips16 (16 bit MIPS implementation):
556 * gencode.c (inst_type): Add mips16 instruction encoding types.
557 (GETDATASIZEINSN): Define.
558 (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add
559 jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and
560 mtlo.
561 (MIPS16_DECODE): New table, for mips16 instructions.
562 (bitmap_val): New static function.
563 (struct mips16_op): Define.
564 (mips16_op_table): New table, for mips16 operands.
565 (build_mips16_operands): New static function.
566 (process_instructions): If PC is odd, decode a mips16
567 instruction. Break out instruction handling into new
568 build_instruction function.
569 (build_instruction): New static function, broken out of
570 process_instructions. Check modifiers rather than flags for SHIFT
571 bit count and m[ft]{hi,lo} direction.
572 (usage): Pass program name to fprintf.
573 (main): Remove unused variable this_option_optind. Change
574 ``*loptarg++'' to ``loptarg++''.
575 (my_strtoul): Parenthesize && within ||.
350d33b8 576 * interp.c (LoadMemory): Accept a halfword pAddr if vAddr is odd.
831f59a2
ILT
577 (simulate): If PC is odd, fetch a 16 bit instruction, and
578 increment PC by 2 rather than 4.
579 * configure.in: Add case for mips16*-*-*.
580 * configure: Rebuild.
581
582Fri Nov 22 08:49:36 1996 Mark Alexander <marka@cygnus.com>
583
584 * interp.c: Allow -t to enable tracing in standalone simulator.
585 Fix garbage output in trace file and error messages.
586
e3d12c65
DE
587Wed Nov 20 01:54:37 1996 Doug Evans <dje@canuck.cygnus.com>
588
589 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
590 (SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
591 * configure.in: Simplify using macros in ../common/aclocal.m4.
592 * configure: Regenerated.
593 * tconfig.in: New file.
594
595Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
596
597 * interp.c: Fix bugs in 64-bit port.
598 Use ansi function declarations for msvc compiler.
599 Initialize and test file pointer in trace code.
600 Prevent duplicate definition of LAST_EMED_REGNUM.
601
602Tue Oct 15 11:07:06 1996 Mark Alexander <marka@cygnus.com>
603
604 * interp.c (xfer_big_long): Prevent unwanted sign extension.
605
606Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
607
608 * interp.c (SignalException): Check for explicit terminating
609 breakpoint value.
610 * gencode.c: Pass instruction value through SignalException()
611 calls for Trap, Breakpoint and Syscall.
612
613Thu Sep 26 11:35:17 1996 James G. Smith <jsmith@cygnus.co.uk>
614
615 * interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
616 only used on those hosts that provide it.
617 * configure.in: Add sqrt() to list of functions to be checked for.
618 * config.in: Re-generated.
619 * configure: Re-generated.
620
621Fri Sep 20 15:47:12 1996 Ian Lance Taylor <ian@cygnus.com>
622
623 * gencode.c (process_instructions): Call build_endian_shift when
624 expanding STORE RIGHT, to fix swr.
625 * support.h (SIGNEXTEND): If the sign bit is not set, explicitly
626 clear the high bits.
627 * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
628 Fix float to int conversions to produce signed values.
629
cc5201d7
ILT
630Thu Sep 19 15:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
631
458e1f58
ILT
632 * gencode.c (MIPS_DECODE): Set UNSIGNED for multu instruction.
633 (process_instructions): Correct handling of nor instruction.
634 Correct shift count for 32 bit shift instructions. Correct sign
635 extension for arithmetic shifts to not shift the number of bits in
636 the type. Fix 64 bit multiply high word calculation. Fix 32 bit
637 unsigned multiply. Fix ldxc1 and friends to use coprocessor 1.
638 Fix madd.
c05d1721
ILT
639 * interp.c (CHECKHILO): Don't set HIACCESS, LOACCESS, or HLPC.
640 It's OK to have a mult follow a mult. What's not OK is to have a
641 mult follow an mfhi.
458e1f58 642 (Convert): Comment out incorrect rounding code.
cc5201d7 643
f24b7b69
JSC
644Mon Sep 16 11:38:16 1996 James G. Smith <jsmith@cygnus.co.uk>
645
646 * interp.c (sim_monitor): Improved monitor printf
647 simulation. Tidied up simulator warnings, and added "--log" option
648 for directing warning message output.
649 * gencode.c: Use sim_warning() rather than WARNING macro.
650
651Thu Aug 22 15:03:12 1996 Ian Lance Taylor <ian@cygnus.com>
652
653 * Makefile.in (gencode): Depend upon gencode.o, getopt.o, and
654 getopt1.o, rather than on gencode.c. Link objects together.
655 Don't link against -liberty.
656 (gencode.o, getopt.o, getopt1.o): New targets.
657 * gencode.c: Include <ctype.h> and "ansidecl.h".
658 (AND): Undefine after including "ansidecl.h".
659 (ULONG_MAX): Define if not defined.
660 (OP_*): Don't define macros; now defined in opcode/mips.h.
661 (main): Call my_strtoul rather than strtoul.
662 (my_strtoul): New static function.
663
664Wed Jul 17 18:12:38 1996 Stu Grossman (grossman@critters.cygnus.com)
665
666 * gencode.c (process_instructions): Generate word64 and uword64
667 instead of `long long' and `unsigned long long' data types.
668 * interp.c: #include sysdep.h to get signals, and define default
669 for SIGBUS.
670 * (Convert): Work around for Visual-C++ compiler bug with type
671 conversion.
672 * support.h: Make things compile under Visual-C++ by using
673 __int64 instead of `long long'. Change many refs to long long
674 into word64/uword64 typedefs.
675
a271d1d9
JM
676Wed Jun 26 12:24:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
677
678 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
679 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
680 (docdir): Removed.
681 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
682 (AC_PROG_INSTALL): Added.
683 (AC_PROG_CC): Moved to before configure.host call.
684 * configure: Rebuilt.
685
686Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
687
688 * configure.in: Define @SIMCONF@ depending on mips target.
689 * configure: Rebuild.
690 * Makefile.in (run): Add @SIMCONF@ to control simulator
691 construction.
692 * gencode.c: Change LOADDRMASK to 64bit memory model only.
693 * interp.c: Remove some debugging, provide more detailed error
694 messages, update memory accesses to use LOADDRMASK.
695
4fa134be
ILT
696Mon Jun 3 11:55:03 1996 Ian Lance Taylor <ian@cygnus.com>
697
698 * configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
699 AC_CHECK_LIB, and AC_CHECK_FUNCS. Change AC_OUTPUT to set
700 stamp-h.
701 * configure: Rebuild.
702 * config.in: New file, generated by autoheader.
703 * interp.c: Include "config.h". Include <stdlib.h>, <string.h>,
704 and <strings.h> if they exist. Replace #ifdef sun with #ifdef
705 HAVE_ANINT and HAVE_AINT, as appropriate.
706 * Makefile.in (run): Use @LIBS@ rather than -lm.
707 (interp.o): Depend upon config.h.
708 (Makefile): Just rebuild Makefile.
709 (clean): Remove stamp-h.
710 (mostlyclean): Make the same as clean, not as distclean.
711 (config.h, stamp-h): New targets.
712
713Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
714
715 * interp.c (ColdReset): Fix boolean test. Make all simulator
716 globals static.
717
f7481d45
JSC
718Wed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
719
720 * interp.c (xfer_direct_word, xfer_direct_long,
721 swap_direct_word, swap_direct_long, xfer_big_word,
722 xfer_big_long, xfer_little_word, xfer_little_long,
723 swap_word,swap_long): Added.
724 * interp.c (ColdReset): Provide function indirection to
725 host<->simulated_target transfer routines.
726 * interp.c (sim_store_register, sim_fetch_register): Updated to
727 make use of indirected transfer routines.
728
729Fri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
730
731 * gencode.c (process_instructions): Ensure FP ABS instruction
732 recognised.
733 * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
734 system call support.
735
8b554809
JSC
736Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
737
738 * interp.c (sim_do_command): Complain if callback structure not
739 initialised.
740
d0757082
JSC
741Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
742
743 * interp.c (Convert): Provide round-to-nearest and round-to-zero
744 support for Sun hosts.
745 * Makefile.in (gencode): Ensure the host compiler and libraries
746 used for cross-hosted build.
747
e871dd18
JSC
748Wed Mar 27 14:42:12 1996 James G. Smith <jsmith@cygnus.co.uk>
749
750 * interp.c, gencode.c: Some more (TODO) tidying.
751
752Thu Mar 7 11:19:33 1996 James G. Smith <jsmith@cygnus.co.uk>
753
754 * gencode.c, interp.c: Replaced explicit long long references with
755 WORD64HI, WORD64LO, SET64HI and SET64LO macro calls.
756 * support.h (SET64LO, SET64HI): Macros added.
757
5c59ec43
ILT
758Wed Feb 21 12:16:21 1996 Ian Lance Taylor <ian@cygnus.com>
759
760 * configure: Regenerate with autoconf 2.7.
761
762Tue Jan 30 08:48:18 1996 Fred Fish <fnf@cygnus.com>
763
764 * interp.c (LoadMemory): Enclose text following #endif in /* */.
765 * support.h: Remove superfluous "1" from #if.
766 * support.h (CHECKSIM): Remove stray 'a' at end of line.
767
768Mon Dec 4 11:44:40 1995 Jamie Smith <jsmith@cygnus.com>
769
770 * interp.c (StoreFPR): Control UndefinedResult() call on
771 WARN_RESULT manifest.
772
8bae0a0c
JSC
773Fri Dec 1 16:37:19 1995 James G. Smith <jsmith@cygnus.co.uk>
774
775 * gencode.c: Tidied instruction decoding, and added FP instruction
776 support.
777
778 * interp.c: Added dineroIII, and BSD profiling support. Also
779 run-time FP handling.
780
781Sun Oct 22 00:57:18 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
782
783 * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
784 gencode.c, interp.c, support.h: created.
This page took 0.133178 seconds and 4 git commands to generate.