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