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