1 Tue Oct 14 15:11:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
3 * interp.c (sim_monitor): Add SD argument.
4 (sim_warning): Delete. Replace calls with calls to
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
11 (mips_size): Rename from sim_size. Add SD argument.
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.
21 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
23 * interp.c (sim_open), support.h: Replace CHECKSIM macro found in
24 support.h with corresponding code.
26 * sim-main.h (word64, uword64), support.h: Move definition to
28 (WORD64LO, WORD64HI, SET64LO, SET64HI, WORD64, UWORD64): Ditto.
31 * Makefile.in: Update dependencies
32 * interp.c: Do not include.
34 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
36 * interp.c (address_translation, load_memory, store_memory,
37 cache_op): Rename to from AddressTranslation et.al., make global,
40 * sim-main.h (AddressTranslation, LoadMemory, StoreMemory,
43 * interp.c (SignalException): Rename to signal_exception, make
46 * interp.c (Interrupt, ...): Move definitions to sim-main.h.
48 * sim-main.h (SignalException, SignalExceptionInterrupt,
49 SignalExceptionInstructionFetch, SignalExceptionAddressStore,
50 SignalExceptionAddressLoad, SignalExceptionSimulatorFault,
51 SignalExceptionIntegerOverflow, SignalExceptionCoProcessorUnusable):
54 * interp.c, support.h: Use.
56 Tue Oct 14 13:19:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
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.
63 * sim-main.h (ValueFPR, StoreFPR): Define.
65 Tue Oct 14 13:06:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
67 * interp.c (sim_engine_run): Check consistency between configure
68 WITH_TARGET_WORD_BITSIZE and WITH_FLOATING_POINT and gensim GPRLEN
71 * configure.in (mips_bitsize): Configure WITH_TARGET_WORD_BITSIZE.
72 (mips_fpu): Configure WITH_FLOATING_POINT.
73 (mips_endian): Configure WITH_TARGET_ENDIAN.
76 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
78 * configure: Regenerated to track ../common/aclocal.m4 changes.
81 Mon Aug 25 19:11:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
83 * interp.c (MAX_REG): Allow up-to 128 registers.
84 (LO1, HI1): Define value that matches REGISTER_NAMES in gdb.
86 (sim_open): Initialize register_widths for r5900 specific
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.
93 Mon Sep 29 14:45:00 1997 Bob Manson <manson@charmed.cygnus.com>
95 * configure: Regenerated.
97 Fri Sep 26 12:48:18 1997 Mark Alexander <marka@cygnus.com>
99 * interp.c: Allow Debug, DEPC, and EPC registers to be examined in GDB.
101 Thu Sep 25 11:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
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
108 * Makefile.in (tmp.igen): Add target. Generate igen input from
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.
119 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
121 * interp.c (COP_SD, COP_LD): Add UNUSED to pacify GCC for some
124 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
126 * configure: Regenerated to track ../common/aclocal.m4 changes.
128 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
130 * Makefile.in (SIM_ALIGNMENT, SIM_ENDIAN, SIM_HOSTENDIAN,
131 SIM_RESERVED_BITS): Delete, moved to common.
132 (SIM_EXTRA_CFLAGS): Update.
134 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
136 * configure.in: Configure non-strict memory alignment.
137 * configure: Regenerated to track ../common/aclocal.m4 changes.
139 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
141 * configure: Regenerated to track ../common/aclocal.m4 changes.
143 Sat Sep 20 14:07:28 1997 Gavin Koch <gavin@cygnus.com>
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
157 * Makefile.in,configure.in: Add mips subtarget option.
160 Fri Sep 19 09:33:27 1997 Gavin Koch <gavin@cygnus.com>
162 * gencode.c: Add r3900 (tx39).
165 * gencode.c: Fix some configuration problems by improving
166 the relationship between tx19 and tx39.
169 Tue Sep 16 15:52:04 1997 Gavin Koch <gavin@cygnus.com>
171 * gencode.c (build_instruction): Don't need to subtract 4 for
174 Tue Sep 16 11:32:28 1997 Gavin Koch <gavin@cygnus.com>
176 * interp.c: Correct some HASFPU problems.
178 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
180 * configure: Regenerated to track ../common/aclocal.m4 changes.
182 Fri Sep 12 12:01:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
184 * interp.c (mips_options): Fix samples option short form, should
187 Thu Sep 11 09:35:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
189 * interp.c (sim_info): Enable info code. Was just returning.
191 Tue Sep 9 17:30:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
193 * interp.c (decode_coproc): Clarify warning about unsuported MTC0,
196 Tue Sep 9 16:28:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
198 * gencode.c (build_instruction): Use SIGNED64 for 64 bit
200 (build_instruction): Ditto for LL.
203 Sun Sep 7 16:05:46 1997 Gavin Koch <gavin@cygnus.com>
205 * mips/configure.in, mips/gencode: Add tx19/r1900.
208 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
210 * configure: Regenerated to track ../common/aclocal.m4 changes.
213 Mon Sep 1 18:43:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
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.
220 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
222 * configure: Regenerated to track ../common/aclocal.m4 changes.
225 Wed Aug 27 14:12:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
227 * interp.c (sim_open): Add call to sim_analyze_program, update
230 Tue Aug 26 10:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
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.
236 (sim_load): Delete, use sim-hload.c.
238 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
240 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
242 * configure: Regenerated to track ../common/aclocal.m4 changes.
245 Mon Aug 25 15:59:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
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.
252 * gencode.c (build_instruction): Do not define x8000000000000000,
253 x7FFFFFFFFFFFFFFF, or xFFFFFFFF80000000.
257 Mon Jul 28 19:49:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
259 * gencode.c (build_instruction): For "pdivw", "pdivbw" and
260 "pdivuw" check for overflow due to signed divide by -1.
263 Fri Jul 25 15:00:45 1997 Gavin Koch <gavin@cygnus.com>
265 * gencode.c (build_instruction): Two arg MADD should
266 not assign result to $0.
269 Thu Jul 10 11:58:48 1997 Andrew Cagney <cagney@critters.cygnus.com>
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
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.
285 Thu Jun 26 12:13:17 1997 Angela Marie Thomas (angela@cygnus.com)
287 * sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
288 * sim/mips/configure.in: Regenerate.
290 Wed Jul 9 10:29:21 1997 Andrew Cagney <cagney@critters.cygnus.com>
292 * interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
293 signed8, unsigned8 et.al. types.
296 * gencode.c (build_instruction): For PMULTU* do not sign extend
297 registers. Make generated code easier to debug.
300 * interp.c (SUB_REG_FETCH): Handle both little and big endian
301 hosts when selecting subreg.
304 Tue Jul 8 18:07:20 1997 Andrew Cagney <cagney@andros.cygnus.com>
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
314 Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com)
317 * gencode.c (build_instruction): Handle "pext5" according to
318 version 1.95 of the r5900 ISA.
320 * gencode.c (build_instruction): Handle "ppac5" according to
321 version 1.95 of the r5900 ISA.
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.
328 Wed Jun 4 10:43:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
330 * interp.c (decode_coproc): Implement MTC0 N, CAUSE.
331 (SignalException): For BreakPoints ignore any mode bits and just
333 (SignalException): Always set the CAUSE register.
335 Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
337 * interp.c (SignalException): Clear the simDELAYSLOT flag when an
338 exception has been taken.
340 * interp.c: Implement the ERET and mt/f sr instructions.
343 Mon Jun 2 23:28:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
345 * gencode.c (build_instruction): For paddu, extract unsigned
348 * gencode.c (build_instruction): Saturate padds instead of padd
352 Sat May 31 00:44:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
354 * interp.c (SignalException): Don't bother restarting an
357 Fri May 30 23:41:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
359 * interp.c (SignalException): Really take an interrupt.
360 (interrupt_event): Only deliver interrupts when enabled.
362 Tue May 27 20:08:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
364 * interp.c (sim_info): Only print info when verbose.
365 (sim_info) Use sim_io_printf for output.
367 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
369 * interp.c (CoProcPresent): Add UNUSED attribute - not used by all
372 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
374 * interp.c (sim_do_command): Check for common commands if a
375 simulator specific command fails.
377 Thu May 22 09:32:03 1997 Gavin Koch <gavin@cygnus.com>
379 * interp.c (sim_engine_run): ifdef out uses of simSTOP, simSTEP
380 and simBE when DEBUG is defined.
382 Wed May 21 09:08:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
384 * interp.c (interrupt_event): New function. Pass exception event
385 onto exception handler.
387 * configure.in: Check for stdlib.h.
388 * configure: Regenerate.
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,
395 (build_operands): Ditto.
397 * interp.c: Fix GCC warnings.
398 (sim_get_quit_code): Delete.
400 * configure.in: Add INLINE, ENDIAN, HOSTENDIAN and WARNINGS.
401 * Makefile.in: Ditto.
402 * configure: Re-generate.
404 * Makefile.in (SIM_OBJS): Add sim-watch.o module.
406 Tue May 20 15:08:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
408 * interp.c (mips_option_handler): New function parse argumes using
410 (myname): Replace with STATE_MY_NAME.
411 (sim_open): Delete check for host endianness - performed by
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
417 (sim_open): Move ColdReset from here.
418 (sim_create_inferior): To here.
419 (sim_open): Make FP check less dependant on host endianness.
421 * Makefile.in (SIM_RUN_OBJS): Set to nrun.o - use new version or
423 * interp.c (sim_set_callbacks): Delete.
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.
431 * sim-main.h (SIM_HAVE_FLATMEM): Define.
433 * interp.c (big_endian_p): Delete, replaced by
434 current_target_byte_order.
436 Tue May 20 13:55:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
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.
443 (sim_engine_run): Update.
445 Tue May 20 13:42:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
447 * interp.c (sim_stop_reason): Move code determining simEXCEPTION
449 (SignalException): To here. Signal using sim_engine_halt.
450 (sim_stop_reason): Delete, moved to common.
452 Tue May 20 10:19:48 1997 Andrew Cagney <cagney@b2.cygnus.com>
454 * interp.c (sim_open): Add callback argument.
455 (sim_set_callbacks): Delete SIM_DESC argument.
458 Mon May 19 18:20:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
460 * Makefile.in (SIM_OBJS): Add common modules.
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.
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.
476 * sim-main.h: New file.
477 * interp.c (sim-main.h): Include.
479 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
481 * configure: Regenerated to track ../common/aclocal.m4 changes.
483 Wed Apr 23 17:32:19 1997 Doug Evans <dje@canuck.cygnus.com>
485 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
487 Mon Apr 21 17:16:13 1997 Gavin Koch <gavin@cygnus.com>
489 * gencode.c (build_instruction): DIV instructions: check
490 for division by zero and integer overflow before using
491 host's division operation.
493 Thu Apr 17 03:18:14 1997 Doug Evans <dje@canuck.cygnus.com>
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.
506 Wed Apr 16 17:55:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
508 * interp.c (sim_size): Delete prototype - conflicts with
509 definition in remote-sim.h. Correct definition.
511 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
513 * configure: Regenerated to track ../common/aclocal.m4 changes.
516 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
518 * interp.c (sim_open): New arg `kind'.
520 * configure: Regenerated to track ../common/aclocal.m4 changes.
522 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
524 * configure: Regenerated to track ../common/aclocal.m4 changes.
526 Tue Mar 25 11:38:22 1997 Doug Evans <dje@canuck.cygnus.com>
528 * interp.c (sim_open): Set optind to 0 before calling getopt.
530 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
532 * configure: Regenerated to track ../common/aclocal.m4 changes.
534 Mon Mar 17 10:52:59 1997 Gavin Koch <gavin@cetus.cygnus.com>
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.
540 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
542 * configure: Re-generate.
544 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
546 * configure: Regenerate to track ../common/aclocal.m4 changes.
548 Thu Mar 13 12:51:36 1997 Doug Evans <dje@canuck.cygnus.com>
550 * interp.c (sim_open): New SIM_DESC result. Argument is now
552 (other sim_*): New SIM_DESC argument.
555 Wed Feb 26 18:32:21 1997 Gavin Koch <gavin@cygnus.com>
557 * gencode.c (POP_AND,POP_OR,POP_NOR,POP_XOR):
558 Change values to avoid overloading DOUBLEWORD which is tested
560 * gencode.c: reinstate "offending code".
563 Mon Feb 24 22:47:14 1997 Dawn Perchik <dawn@cygnus.com>
565 * interp.c: Fix printing of addresses for non-64-bit targets.
566 (pr_addr): Add function to print address based on size.
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.
573 Thu Feb 20 10:40:24 1997 Gavin Koch <gavin@cetus.cygnus.com>
575 * gencode.c (process_instructions): Correct test for ISA dependent
576 architecture bits in isa field of MIPS_DECODE.
579 Wed Feb 19 14:42:09 1997 Mark Alexander <marka@cygnus.com>
581 * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
584 Tue Feb 18 17:03:47 1997 Gavin Koch <gavin@cygnus.com>
586 * gencode.c (MIPS_DECODE): Correct instruction feature flags for
590 Thu Feb 13 14:08:30 1997 Ian Lance Taylor <ian@cygnus.com>
592 * gencode.c (build_mips16_operands): Correct computation of base
593 address for extended PC relative instruction.
596 Fri Feb 7 11:12:44 1997 Gavin Koch <gavin@cygnus.com>
598 * Makefile.in, configure, configure.in, gencode.c,
599 interp.c, support.h: add r5900.
602 Thu Feb 6 17:16:15 1997 Ian Lance Taylor <ian@cygnus.com>
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
608 (StoreFPR): Likewise. Also, don't clobber fpr + 1 for fmt_single
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
615 Tue Feb 4 16:48:25 1997 Ian Lance Taylor <ian@cygnus.com>
617 * gencode.c (build_instruction): The high order may be set in the
618 comparison flags at any ISA level, not just ISA 4.
620 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
622 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
623 COMMON_{PRE,POST}_CONFIG_FRAG instead.
624 * configure.in: sinclude ../common/aclocal.m4.
625 * configure: Regenerated.
627 Fri Jan 31 11:11:45 1997 Ian Lance Taylor <ian@cygnus.com>
629 * configure: Rebuild after change to aclocal.m4.
631 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
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
640 Wed Jan 8 12:39:03 1997 Jim Wilson <wilson@cygnus.com>
642 * gencode.c (build_instruction): Use BigEndianCPU instead of
645 Thu Jan 02 22:23:04 1997 Mark Alexander <marka@cygnus.com>
647 * interp.c (sim_monitor): Make output to stdout visible in
648 wingdb's I/O log window.
650 Tue Dec 31 07:04:00 1996 Mark Alexander <marka@cygnus.com>
652 * support.h: Undo previous change to SIGTRAP
655 Mon Dec 30 17:36:06 1996 Ian Lance Taylor <ian@cygnus.com>
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.
663 Sun Dec 29 09:37:18 1996 Mark Alexander <marka@cygnus.com>
665 * interp.c: Fix byte-swapping code throughout to work on
666 both little- and big-endian hosts.
668 Sun Dec 29 09:18:32 1996 Mark Alexander <marka@cygnus.com>
670 * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
671 with gdb/config/i386/xm-windows.h.
673 Fri Dec 27 22:48:51 1996 Mark Alexander <marka@cygnus.com>
675 * gencode.c (build_instruction): Work around MSVC++ code gen bug
676 that messes up arithmetic shifts.
678 Fri Dec 20 11:04:05 1996 Stu Grossman (grossman@critters.cygnus.com)
680 * support.h: Use _WIN32 instead of __WIN32__. Also add defs for
681 SIGTRAP and SIGQUIT for _WIN32.
683 Thu Dec 19 14:07:27 1996 Ian Lance Taylor <ian@cygnus.com>
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
691 Mon Dec 16 14:59:38 1996 Ian Lance Taylor <ian@cygnus.com>
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.
699 * gencode.c (build_mips16_operands): Fix base PC value for PC
701 (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
703 * interp.c (simJALDELAYSLOT): Define.
704 (JALDELAYSLOT): Define.
705 (INDELAYSLOT, INJALDELAYSLOT): Define.
706 (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
708 Tue Dec 24 22:11:20 1996 Angela Marie Thomas (angela@cygnus.com)
710 * interp.c (sim_open): add flush_cache as a PMON routine
711 (sim_monitor): handle flush_cache by ignoring it
713 Wed Dec 11 13:53:51 1996 Jim Wilson <wilson@cygnus.com>
715 * gencode.c (build_instruction): Use !ByteSwapMem instead of
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.
732 Tue Dec 10 11:32:04 1996 Jim Wilson <wilson@cygnus.com>
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
744 (sim_warning): Delete call to SignalException. Do call printf_filtered
746 (AddressTranslation): Add #ifdef DEBUG around debugging message and
747 a call to sim_warning.
749 Wed Nov 27 11:53:50 1996 Ian Lance Taylor <ian@cygnus.com>
751 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
754 Tue Nov 26 11:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
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
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.
783 Fri Nov 22 08:49:36 1996 Mark Alexander <marka@cygnus.com>
785 * interp.c: Allow -t to enable tracing in standalone simulator.
786 Fix garbage output in trace file and error messages.
788 Wed Nov 20 01:54:37 1996 Doug Evans <dje@canuck.cygnus.com>
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.
796 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
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.
803 Tue Oct 15 11:07:06 1996 Mark Alexander <marka@cygnus.com>
805 * interp.c (xfer_big_long): Prevent unwanted sign extension.
807 Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
809 * interp.c (SignalException): Check for explicit terminating
811 * gencode.c: Pass instruction value through SignalException()
812 calls for Trap, Breakpoint and Syscall.
814 Thu Sep 26 11:35:17 1996 James G. Smith <jsmith@cygnus.co.uk>
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.
822 Fri Sep 20 15:47:12 1996 Ian Lance Taylor <ian@cygnus.com>
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
828 * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
829 Fix float to int conversions to produce signed values.
831 Thu Sep 19 15:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
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.
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
843 (Convert): Comment out incorrect rounding code.
845 Mon Sep 16 11:38:16 1996 James G. Smith <jsmith@cygnus.co.uk>
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.
852 Thu Aug 22 15:03:12 1996 Ian Lance Taylor <ian@cygnus.com>
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.
865 Wed Jul 17 18:12:38 1996 Stu Grossman (grossman@critters.cygnus.com)
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
871 * (Convert): Work around for Visual-C++ compiler bug with type
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.
877 Wed Jun 26 12:24:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
879 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
880 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
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.
887 Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
889 * configure.in: Define @SIMCONF@ depending on mips target.
890 * configure: Rebuild.
891 * Makefile.in (run): Add @SIMCONF@ to control simulator
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.
897 Mon Jun 3 11:55:03 1996 Ian Lance Taylor <ian@cygnus.com>
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
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.
914 Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
916 * interp.c (ColdReset): Fix boolean test. Make all simulator
919 Wed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
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.
930 Fri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
932 * gencode.c (process_instructions): Ensure FP ABS instruction
934 * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
937 Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
939 * interp.c (sim_do_command): Complain if callback structure not
942 Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
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.
949 Wed Mar 27 14:42:12 1996 James G. Smith <jsmith@cygnus.co.uk>
951 * interp.c, gencode.c: Some more (TODO) tidying.
953 Thu Mar 7 11:19:33 1996 James G. Smith <jsmith@cygnus.co.uk>
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.
959 Wed Feb 21 12:16:21 1996 Ian Lance Taylor <ian@cygnus.com>
961 * configure: Regenerate with autoconf 2.7.
963 Tue Jan 30 08:48:18 1996 Fred Fish <fnf@cygnus.com>
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.
969 Mon Dec 4 11:44:40 1995 Jamie Smith <jsmith@cygnus.com>
971 * interp.c (StoreFPR): Control UndefinedResult() call on
972 WARN_RESULT manifest.
974 Fri Dec 1 16:37:19 1995 James G. Smith <jsmith@cygnus.co.uk>
976 * gencode.c: Tidied instruction decoding, and added FP instruction
979 * interp.c: Added dineroIII, and BSD profiling support. Also
980 run-time FP handling.
982 Sun Oct 22 00:57:18 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
984 * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
985 gencode.c, interp.c, support.h: created.