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