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