1 Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
3 * sim-main.h (SIGNEXTEND): Force type of result to unsigned_word.
5 * interp.c (sim_monitor): Make register pointers of type
8 * sim-main.h: Make registers of type unsigned_word not
11 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
14 * sim-main.h (BYTES_IN_MMI_REGS, ..., SUB_REG_FETCH, ..., GPR_SB,
15 ...): Move to sim-main.h
18 * interp.c (sync_operation): Rename from SyncOperation, make
19 global, add SD argument.
20 (prefetch): Rename from Prefetch, make global, add SD argument.
21 (decode_coproc): Make global.
23 * sim-main.h (SyncOperation, DecodeCoproc, Pefetch): Define.
25 * gencode.c (build_instruction): Generate DecodeCoproc not
28 * interp.c (SETFCC, GETFCC, PREVCOC1): Move to sim-main.h
29 (SizeFGR): Move to sim-main.h
30 (simHALTEX, simHALTIN, simTRACE, simPROFILE, simDELAYSLOT,
31 simSIGINT, simJALDELAYSLOT): Move to sim-main.h
32 (FP_FLAGS, FP_ENABLE, FP_CAUSE, IR, UF, OF, DZ, IO, UO): Move to
34 (FP_FS, FP_MASK_RM, FP_SH_RM, FP_RM_NEAREST, FP_RM_TOPINF,
35 FP_RM_TOMINF, GETRM): Move to sim-main.h.
36 (Uncached, CachedNoncoherent, CachedCoherent, Cached,
37 isINSTRUCTION, ..., AccessLength_BYTE, ...): Move to sim-main.h.
38 (UserMode, BigEndianMem, ByteSwapMem, ReverseEndian,
39 BigEndianCPU, status_KSU_mask, ...). Moved to sim-main.h
41 * sim-main.h (ALU32_END, ALU64_END): Define. When overflow raise
44 (NULLIFY_NIA, NULL_CIA, CPU_CIA): Define.
45 (sim_cia): Typedef to instruction_address.
47 Thu Oct 16 10:31:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
49 * Makefile.in (interp.o): Rename generated file engine.c to
54 Thu Oct 16 10:31:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
56 * gencode.c (build_instruction): Use FPR_STATE not fpr_state.
58 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
60 * gencode.c (build_instruction): For "FPSQRT", output correct
61 number of arguments to Recip.
63 Tue Oct 14 17:38:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
65 * Makefile.in (interp.o): Depends on sim-main.h
67 * interp.c (mips16_entry, ColdReset,dotrace): Add SD argument. Use GPR not registers.
69 * sim-main.h (sim_cpu): Add registers, register_widths, fpr_state,
70 ipc, dspc, pending_*, hiaccess, loaccess, state, dsstate fields.
71 (REGISTERS, REGISTER_WIDTHS, FPR_STATE, IPC, DSPC, PENDING_*,
72 STATE, DSSTATE): Define
73 (GPR, FGRIDX, ..): Define.
75 * interp.c (registers, register_widths, fpr_state, ipc, dspc,
76 pending_*, hiaccess, loaccess, state, dsstate): Delete globals.
77 (GPR, FGRIDX, ...): Delete macros.
79 * interp.c: Update names to match defines from sim-main.h
81 Tue Oct 14 15:11:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
83 * interp.c (sim_monitor): Add SD argument.
84 (sim_warning): Delete. Replace calls with calls to
86 (sim_error): Delete. Replace calls with sim_io_error.
87 (open_trace, writeout32, writeout16, getnum): Add SD argument.
88 (mips_set_profile): Rename from sim_set_profile. Add SD argument.
89 (mips_set_profile_size): Rename from sim_set_profile_size. Add SD
91 (mips_size): Rename from sim_size. Add SD argument.
93 * interp.c (simulator): Delete global variable.
94 (callback): Delete global variable.
95 (mips_option_handler, sim_open, sim_write, sim_read,
96 sim_store_register, sim_fetch_register, sim_info, sim_do_command,
97 sim_size,sim_monitor): Use sim_io_* not callback->*.
98 (sim_open): ZALLOC simulator struct.
99 (PROFILE): Do not define.
101 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
103 * interp.c (sim_open), support.h: Replace CHECKSIM macro found in
104 support.h with corresponding code.
106 * sim-main.h (word64, uword64), support.h: Move definition to
108 (WORD64LO, WORD64HI, SET64LO, SET64HI, WORD64, UWORD64): Ditto.
111 * Makefile.in: Update dependencies
112 * interp.c: Do not include.
114 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
116 * interp.c (address_translation, load_memory, store_memory,
117 cache_op): Rename to from AddressTranslation et.al., make global,
120 * sim-main.h (AddressTranslation, LoadMemory, StoreMemory,
123 * interp.c (SignalException): Rename to signal_exception, make
126 * interp.c (Interrupt, ...): Move definitions to sim-main.h.
128 * sim-main.h (SignalException, SignalExceptionInterrupt,
129 SignalExceptionInstructionFetch, SignalExceptionAddressStore,
130 SignalExceptionAddressLoad, SignalExceptionSimulatorFault,
131 SignalExceptionIntegerOverflow, SignalExceptionCoProcessorUnusable):
134 * interp.c, support.h: Use.
136 Tue Oct 14 13:19:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
138 * interp.c (ValueFPR, StoreFPR), sim-main.h: Make global, rename
139 to value_fpr / store_fpr. Add SD argument.
140 (NaN, Infinity, Less, Equal, AbsoluteValue, Negate, Add, Sub,
141 Multiply, Divide, Recip, SquareRoot, Convert): Make global.
143 * sim-main.h (ValueFPR, StoreFPR): Define.
145 Tue Oct 14 13:06:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
147 * interp.c (sim_engine_run): Check consistency between configure
148 WITH_TARGET_WORD_BITSIZE and WITH_FLOATING_POINT and gensim GPRLEN
151 * configure.in (mips_bitsize): Configure WITH_TARGET_WORD_BITSIZE.
152 (mips_fpu): Configure WITH_FLOATING_POINT.
153 (mips_endian): Configure WITH_TARGET_ENDIAN.
156 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
158 * configure: Regenerated to track ../common/aclocal.m4 changes.
161 Mon Aug 25 19:11:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
163 * interp.c (MAX_REG): Allow up-to 128 registers.
164 (LO1, HI1): Define value that matches REGISTER_NAMES in gdb.
165 (REGISTER_SA): Ditto.
166 (sim_open): Initialize register_widths for r5900 specific
168 (sim_fetch_register, sim_store_register): Check for request of
169 r5900 specific SA register. Check for request for hi 64 bits of
170 r5900 specific registers.
173 Mon Sep 29 14:45:00 1997 Bob Manson <manson@charmed.cygnus.com>
175 * configure: Regenerated.
177 Fri Sep 26 12:48:18 1997 Mark Alexander <marka@cygnus.com>
179 * interp.c: Allow Debug, DEPC, and EPC registers to be examined in GDB.
181 Thu Sep 25 11:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
183 * gencode.c (print_igen_insn_models): Assume certain architectures
184 include all mips* instructions.
185 (print_igen_insn_format): Use data_size==-1 as marker for MIPS16
188 * Makefile.in (tmp.igen): Add target. Generate igen input from
191 * gencode.c (FEATURE_IGEN): Define.
192 (main): Add --igen option. Generate output in igen format.
193 (process_instructions): Format output according to igen option.
194 (print_igen_insn_format): New function.
195 (print_igen_insn_models): New function.
196 (process_instructions): Only issue warnings and ignore
197 instructions when no FEATURE_IGEN.
199 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
201 * interp.c (COP_SD, COP_LD): Add UNUSED to pacify GCC for some
204 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
206 * configure: Regenerated to track ../common/aclocal.m4 changes.
208 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
210 * Makefile.in (SIM_ALIGNMENT, SIM_ENDIAN, SIM_HOSTENDIAN,
211 SIM_RESERVED_BITS): Delete, moved to common.
212 (SIM_EXTRA_CFLAGS): Update.
214 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
216 * configure.in: Configure non-strict memory alignment.
217 * configure: Regenerated to track ../common/aclocal.m4 changes.
219 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
221 * configure: Regenerated to track ../common/aclocal.m4 changes.
223 Sat Sep 20 14:07:28 1997 Gavin Koch <gavin@cygnus.com>
225 * gencode.c (SDBBP,DERET): Added (3900) insns.
226 (RFE): Turn on for 3900.
227 * interp.c (DebugBreakPoint,DEPC,Debug,Debug_*): Added.
228 (dsstate): Made global.
229 (SUBTARGET_R3900): Added.
230 (CANCELDELAYSLOT): New.
231 (SignalException): Ignore SystemCall rather than ignore and
232 terminate. Add DebugBreakPoint handling.
233 (decode_coproc): New insns RFE, DERET; and new registers Debug
234 and DEPC protected by SUBTARGET_R3900.
235 (sim_engine_run): Use CANCELDELAYSLOT rather than clearing
237 * Makefile.in,configure.in: Add mips subtarget option.
240 Fri Sep 19 09:33:27 1997 Gavin Koch <gavin@cygnus.com>
242 * gencode.c: Add r3900 (tx39).
245 * gencode.c: Fix some configuration problems by improving
246 the relationship between tx19 and tx39.
249 Tue Sep 16 15:52:04 1997 Gavin Koch <gavin@cygnus.com>
251 * gencode.c (build_instruction): Don't need to subtract 4 for
254 Tue Sep 16 11:32:28 1997 Gavin Koch <gavin@cygnus.com>
256 * interp.c: Correct some HASFPU problems.
258 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
260 * configure: Regenerated to track ../common/aclocal.m4 changes.
262 Fri Sep 12 12:01:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
264 * interp.c (mips_options): Fix samples option short form, should
267 Thu Sep 11 09:35:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
269 * interp.c (sim_info): Enable info code. Was just returning.
271 Tue Sep 9 17:30:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
273 * interp.c (decode_coproc): Clarify warning about unsuported MTC0,
276 Tue Sep 9 16:28:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
278 * gencode.c (build_instruction): Use SIGNED64 for 64 bit
280 (build_instruction): Ditto for LL.
283 Sun Sep 7 16:05:46 1997 Gavin Koch <gavin@cygnus.com>
285 * mips/configure.in, mips/gencode: Add tx19/r1900.
288 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
290 * configure: Regenerated to track ../common/aclocal.m4 changes.
293 Mon Sep 1 18:43:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
295 * gencode.c (build_instruction): For "pabsw" and "pabsh", check
296 for overflow due to ABS of MININT, set result to MAXINT.
297 (build_instruction): For "psrlvw", signextend bit 31.
300 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
302 * configure: Regenerated to track ../common/aclocal.m4 changes.
305 Wed Aug 27 14:12:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
307 * interp.c (sim_open): Add call to sim_analyze_program, update
310 Tue Aug 26 10:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
312 * interp.c (sim_kill): Delete.
313 (sim_create_inferior): Add ABFD argument. Set PC from same.
314 (sim_load): Move code initializing trap handlers from here.
316 (sim_load): Delete, use sim-hload.c.
318 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
320 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
322 * configure: Regenerated to track ../common/aclocal.m4 changes.
325 Mon Aug 25 15:59:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
327 * interp.c (sim_open): Add ABFD argument.
328 (sim_load): Move call to sim_config from here.
329 (sim_open): To here. Check return status.
332 * gencode.c (build_instruction): Do not define x8000000000000000,
333 x7FFFFFFFFFFFFFFF, or xFFFFFFFF80000000.
337 Mon Jul 28 19:49:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
339 * gencode.c (build_instruction): For "pdivw", "pdivbw" and
340 "pdivuw" check for overflow due to signed divide by -1.
343 Fri Jul 25 15:00:45 1997 Gavin Koch <gavin@cygnus.com>
345 * gencode.c (build_instruction): Two arg MADD should
346 not assign result to $0.
349 Thu Jul 10 11:58:48 1997 Andrew Cagney <cagney@critters.cygnus.com>
351 * gencode.c (build_instruction): For "ppac5" use unsigned
352 arrithmetic so that the sign bit doesn't smear when right shifted.
353 (build_instruction): For "pdiv" perform sign extension when
354 storing results in HI and LO.
355 (build_instructions): For "pdiv" and "pdivbw" check for
357 (build_instruction): For "pmfhl.slw" update hi part of dest
358 register as well as low part.
359 (build_instruction): For "pmfhl" portably handle long long values.
360 (build_instruction): For "pmfhl.sh" correctly negative values.
361 Store half words 2 and three in the correct place.
362 (build_instruction): For "psllvw", sign extend value after shift.
365 Thu Jun 26 12:13:17 1997 Angela Marie Thomas (angela@cygnus.com)
367 * sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
368 * sim/mips/configure.in: Regenerate.
370 Wed Jul 9 10:29:21 1997 Andrew Cagney <cagney@critters.cygnus.com>
372 * interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
373 signed8, unsigned8 et.al. types.
376 * gencode.c (build_instruction): For PMULTU* do not sign extend
377 registers. Make generated code easier to debug.
380 * interp.c (SUB_REG_FETCH): Handle both little and big endian
381 hosts when selecting subreg.
384 Tue Jul 8 18:07:20 1997 Andrew Cagney <cagney@andros.cygnus.com>
386 * gencode.c (type_for_data_len): For 32bit operations concerned
387 with overflow, perform op using 64bits.
388 (build_instruction): For PADD, always compute operation using type
389 returned by type_for_data_len.
390 (build_instruction): For PSUBU, when overflow, saturate to zero as
394 Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com)
397 * gencode.c (build_instruction): Handle "pext5" according to
398 version 1.95 of the r5900 ISA.
400 * gencode.c (build_instruction): Handle "ppac5" according to
401 version 1.95 of the r5900 ISA.
404 * interp.c (sim_engine_run): Reset the ZERO register to zero
405 regardless of FEATURE_WARN_ZERO.
406 * gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
408 Wed Jun 4 10:43:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
410 * interp.c (decode_coproc): Implement MTC0 N, CAUSE.
411 (SignalException): For BreakPoints ignore any mode bits and just
413 (SignalException): Always set the CAUSE register.
415 Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
417 * interp.c (SignalException): Clear the simDELAYSLOT flag when an
418 exception has been taken.
420 * interp.c: Implement the ERET and mt/f sr instructions.
423 Mon Jun 2 23:28:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
425 * gencode.c (build_instruction): For paddu, extract unsigned
428 * gencode.c (build_instruction): Saturate padds instead of padd
432 Sat May 31 00:44:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
434 * interp.c (SignalException): Don't bother restarting an
437 Fri May 30 23:41:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
439 * interp.c (SignalException): Really take an interrupt.
440 (interrupt_event): Only deliver interrupts when enabled.
442 Tue May 27 20:08:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
444 * interp.c (sim_info): Only print info when verbose.
445 (sim_info) Use sim_io_printf for output.
447 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
449 * interp.c (CoProcPresent): Add UNUSED attribute - not used by all
452 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
454 * interp.c (sim_do_command): Check for common commands if a
455 simulator specific command fails.
457 Thu May 22 09:32:03 1997 Gavin Koch <gavin@cygnus.com>
459 * interp.c (sim_engine_run): ifdef out uses of simSTOP, simSTEP
460 and simBE when DEBUG is defined.
462 Wed May 21 09:08:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
464 * interp.c (interrupt_event): New function. Pass exception event
465 onto exception handler.
467 * configure.in: Check for stdlib.h.
468 * configure: Regenerate.
470 * gencode.c (build_instruction): Add UNUSED attribute to tempS
471 variable declaration.
472 (build_instruction): Initialize memval1.
473 (build_instruction): Add UNUSED attribute to byte, bigend,
475 (build_operands): Ditto.
477 * interp.c: Fix GCC warnings.
478 (sim_get_quit_code): Delete.
480 * configure.in: Add INLINE, ENDIAN, HOSTENDIAN and WARNINGS.
481 * Makefile.in: Ditto.
482 * configure: Re-generate.
484 * Makefile.in (SIM_OBJS): Add sim-watch.o module.
486 Tue May 20 15:08:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
488 * interp.c (mips_option_handler): New function parse argumes using
490 (myname): Replace with STATE_MY_NAME.
491 (sim_open): Delete check for host endianness - performed by
493 (simHOSTBE, simBE): Delete, replaced by sim-endian flags.
494 (sim_open): Move much of the initialization from here.
495 (sim_load): To here. After the image has been loaded and
497 (sim_open): Move ColdReset from here.
498 (sim_create_inferior): To here.
499 (sim_open): Make FP check less dependant on host endianness.
501 * Makefile.in (SIM_RUN_OBJS): Set to nrun.o - use new version or
503 * interp.c (sim_set_callbacks): Delete.
505 * interp.c (membank, membank_base, membank_size): Replace with
506 STATE_MEMORY, STATE_MEM_SIZE, STATE_MEM_BASE.
507 (sim_open): Remove call to callback->init. gdb/run do this.
511 * sim-main.h (SIM_HAVE_FLATMEM): Define.
513 * interp.c (big_endian_p): Delete, replaced by
514 current_target_byte_order.
516 Tue May 20 13:55:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
518 * interp.c (host_read_long, host_read_word, host_swap_word,
519 host_swap_long): Delete. Using common sim-endian.
520 (sim_fetch_register, sim_store_register): Use H2T.
521 (pipeline_ticks): Delete. Handled by sim-events.
523 (sim_engine_run): Update.
525 Tue May 20 13:42:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
527 * interp.c (sim_stop_reason): Move code determining simEXCEPTION
529 (SignalException): To here. Signal using sim_engine_halt.
530 (sim_stop_reason): Delete, moved to common.
532 Tue May 20 10:19:48 1997 Andrew Cagney <cagney@b2.cygnus.com>
534 * interp.c (sim_open): Add callback argument.
535 (sim_set_callbacks): Delete SIM_DESC argument.
538 Mon May 19 18:20:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
540 * Makefile.in (SIM_OBJS): Add common modules.
542 * interp.c (sim_set_callbacks): Also set SD callback.
543 (set_endianness, xfer_*, swap_*): Delete.
544 (host_read_word, host_read_long, host_swap_word, host_swap_long):
545 Change to functions using sim-endian macros.
546 (control_c, sim_stop): Delete, use common version.
547 (simulate): Convert into.
548 (sim_engine_run): This function.
549 (sim_resume): Delete.
551 * interp.c (simulation): New variable - the simulator object.
552 (sim_kind): Delete global - merged into simulation.
553 (sim_load): Cleanup. Move PC assignment from here.
554 (sim_create_inferior): To here.
556 * sim-main.h: New file.
557 * interp.c (sim-main.h): Include.
559 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
561 * configure: Regenerated to track ../common/aclocal.m4 changes.
563 Wed Apr 23 17:32:19 1997 Doug Evans <dje@canuck.cygnus.com>
565 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
567 Mon Apr 21 17:16:13 1997 Gavin Koch <gavin@cygnus.com>
569 * gencode.c (build_instruction): DIV instructions: check
570 for division by zero and integer overflow before using
571 host's division operation.
573 Thu Apr 17 03:18:14 1997 Doug Evans <dje@canuck.cygnus.com>
575 * Makefile.in (SIM_OBJS): Add sim-load.o.
576 * interp.c: #include bfd.h.
577 (target_byte_order): Delete.
578 (sim_kind, myname, big_endian_p): New static locals.
579 (sim_open): Set sim_kind, myname. Move call to set_endianness to
580 after argument parsing. Recognize -E arg, set endianness accordingly.
581 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
582 load file into simulator. Set PC from bfd.
583 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
584 (set_endianness): Use big_endian_p instead of target_byte_order.
586 Wed Apr 16 17:55:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
588 * interp.c (sim_size): Delete prototype - conflicts with
589 definition in remote-sim.h. Correct definition.
591 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
593 * configure: Regenerated to track ../common/aclocal.m4 changes.
596 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
598 * interp.c (sim_open): New arg `kind'.
600 * configure: Regenerated to track ../common/aclocal.m4 changes.
602 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
604 * configure: Regenerated to track ../common/aclocal.m4 changes.
606 Tue Mar 25 11:38:22 1997 Doug Evans <dje@canuck.cygnus.com>
608 * interp.c (sim_open): Set optind to 0 before calling getopt.
610 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
612 * configure: Regenerated to track ../common/aclocal.m4 changes.
614 Mon Mar 17 10:52:59 1997 Gavin Koch <gavin@cetus.cygnus.com>
616 * interp.c : Replace uses of pr_addr with pr_uword64
617 where the bit length is always 64 independent of SIM_ADDR.
618 (pr_uword64) : added.
620 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
622 * configure: Re-generate.
624 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
626 * configure: Regenerate to track ../common/aclocal.m4 changes.
628 Thu Mar 13 12:51:36 1997 Doug Evans <dje@canuck.cygnus.com>
630 * interp.c (sim_open): New SIM_DESC result. Argument is now
632 (other sim_*): New SIM_DESC argument.
635 Wed Feb 26 18:32:21 1997 Gavin Koch <gavin@cygnus.com>
637 * gencode.c (POP_AND,POP_OR,POP_NOR,POP_XOR):
638 Change values to avoid overloading DOUBLEWORD which is tested
640 * gencode.c: reinstate "offending code".
643 Mon Feb 24 22:47:14 1997 Dawn Perchik <dawn@cygnus.com>
645 * interp.c: Fix printing of addresses for non-64-bit targets.
646 (pr_addr): Add function to print address based on size.
648 * gencode.c: #ifdef out offending code until a permanent fix
649 can be added. Code is causing build errors for non-5900 mips targets.
653 Thu Feb 20 10:40:24 1997 Gavin Koch <gavin@cetus.cygnus.com>
655 * gencode.c (process_instructions): Correct test for ISA dependent
656 architecture bits in isa field of MIPS_DECODE.
659 Wed Feb 19 14:42:09 1997 Mark Alexander <marka@cygnus.com>
661 * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
664 Tue Feb 18 17:03:47 1997 Gavin Koch <gavin@cygnus.com>
666 * gencode.c (MIPS_DECODE): Correct instruction feature flags for
670 Thu Feb 13 14:08:30 1997 Ian Lance Taylor <ian@cygnus.com>
672 * gencode.c (build_mips16_operands): Correct computation of base
673 address for extended PC relative instruction.
676 Fri Feb 7 11:12:44 1997 Gavin Koch <gavin@cygnus.com>
678 * Makefile.in, configure, configure.in, gencode.c,
679 interp.c, support.h: add r5900.
682 Thu Feb 6 17:16:15 1997 Ian Lance Taylor <ian@cygnus.com>
684 * interp.c (mips16_entry): Add support for floating point cases.
685 (SignalException): Pass floating point cases to mips16_entry.
686 (ValueFPR): Don't restrict fmt_single and fmt_word to even
688 (StoreFPR): Likewise. Also, don't clobber fpr + 1 for fmt_single
690 (COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
691 and then set the state to fmt_uninterpreted.
692 (COP_SW): Temporarily set the state to fmt_word while calling
695 Tue Feb 4 16:48:25 1997 Ian Lance Taylor <ian@cygnus.com>
697 * gencode.c (build_instruction): The high order may be set in the
698 comparison flags at any ISA level, not just ISA 4.
700 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
702 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
703 COMMON_{PRE,POST}_CONFIG_FRAG instead.
704 * configure.in: sinclude ../common/aclocal.m4.
705 * configure: Regenerated.
707 Fri Jan 31 11:11:45 1997 Ian Lance Taylor <ian@cygnus.com>
709 * configure: Rebuild after change to aclocal.m4.
711 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
713 * configure configure.in Makefile.in: Update to new configure
714 scheme which is more compatible with WinGDB builds.
715 * configure.in: Improve comment on how to run autoconf.
716 * configure: Re-run autoconf to get new ../common/aclocal.m4.
717 * Makefile.in: Use autoconf substitution to install common
720 Wed Jan 8 12:39:03 1997 Jim Wilson <wilson@cygnus.com>
722 * gencode.c (build_instruction): Use BigEndianCPU instead of
725 Thu Jan 02 22:23:04 1997 Mark Alexander <marka@cygnus.com>
727 * interp.c (sim_monitor): Make output to stdout visible in
728 wingdb's I/O log window.
730 Tue Dec 31 07:04:00 1996 Mark Alexander <marka@cygnus.com>
732 * support.h: Undo previous change to SIGTRAP
735 Mon Dec 30 17:36:06 1996 Ian Lance Taylor <ian@cygnus.com>
737 * interp.c (store_word, load_word): New static functions.
738 (mips16_entry): New static function.
739 (SignalException): Look for mips16 entry and exit instructions.
740 (simulate): Use the correct index when setting fpr_state after
741 doing a pending move.
743 Sun Dec 29 09:37:18 1996 Mark Alexander <marka@cygnus.com>
745 * interp.c: Fix byte-swapping code throughout to work on
746 both little- and big-endian hosts.
748 Sun Dec 29 09:18:32 1996 Mark Alexander <marka@cygnus.com>
750 * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
751 with gdb/config/i386/xm-windows.h.
753 Fri Dec 27 22:48:51 1996 Mark Alexander <marka@cygnus.com>
755 * gencode.c (build_instruction): Work around MSVC++ code gen bug
756 that messes up arithmetic shifts.
758 Fri Dec 20 11:04:05 1996 Stu Grossman (grossman@critters.cygnus.com)
760 * support.h: Use _WIN32 instead of __WIN32__. Also add defs for
761 SIGTRAP and SIGQUIT for _WIN32.
763 Thu Dec 19 14:07:27 1996 Ian Lance Taylor <ian@cygnus.com>
765 * gencode.c (build_instruction) [MUL]: Cast operands to word64, to
766 force a 64 bit multiplication.
767 (build_instruction) [OR]: In mips16 mode, don't do anything if the
768 destination register is 0, since that is the default mips16 nop
771 Mon Dec 16 14:59:38 1996 Ian Lance Taylor <ian@cygnus.com>
773 * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
774 (build_endian_shift): Don't check proc64.
775 (build_instruction): Always set memval to uword64. Cast op2 to
776 uword64 when shifting it left in memory instructions. Always use
777 the same code for stores--don't special case proc64.
779 * gencode.c (build_mips16_operands): Fix base PC value for PC
781 (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
783 * interp.c (simJALDELAYSLOT): Define.
784 (JALDELAYSLOT): Define.
785 (INDELAYSLOT, INJALDELAYSLOT): Define.
786 (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
788 Tue Dec 24 22:11:20 1996 Angela Marie Thomas (angela@cygnus.com)
790 * interp.c (sim_open): add flush_cache as a PMON routine
791 (sim_monitor): handle flush_cache by ignoring it
793 Wed Dec 11 13:53:51 1996 Jim Wilson <wilson@cygnus.com>
795 * gencode.c (build_instruction): Use !ByteSwapMem instead of
797 * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
798 (BigEndianMem): Rename to ByteSwapMem and change sense.
799 (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
800 BigEndianMem references to !ByteSwapMem.
801 (set_endianness): New function, with prototype.
802 (sim_open): Call set_endianness.
803 (sim_info): Use simBE instead of BigEndianMem.
804 (xfer_direct_word, xfer_direct_long, swap_direct_word,
805 swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
806 xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
807 ifdefs, keeping the prototype declaration.
808 (swap_word): Rewrite correctly.
809 (ColdReset): Delete references to CONFIG. Delete endianness related
810 code; moved to set_endianness.
812 Tue Dec 10 11:32:04 1996 Jim Wilson <wilson@cygnus.com>
814 * gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
815 * interp.c (CHECKHILO): Define away.
816 (simSIGINT): New macro.
817 (membank_size): Increase from 1MB to 2MB.
818 (control_c): New function.
819 (sim_resume): Rename parameter signal to signal_number. Add local
820 variable prev. Call signal before and after simulate.
821 (sim_stop_reason): Add simSIGINT support.
822 (sim_warning, sim_error, dotrace, SignalException): Define as stdarg
824 (sim_warning): Delete call to SignalException. Do call printf_filtered
826 (AddressTranslation): Add #ifdef DEBUG around debugging message and
827 a call to sim_warning.
829 Wed Nov 27 11:53:50 1996 Ian Lance Taylor <ian@cygnus.com>
831 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
834 Tue Nov 26 11:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
836 Add support for mips16 (16 bit MIPS implementation):
837 * gencode.c (inst_type): Add mips16 instruction encoding types.
838 (GETDATASIZEINSN): Define.
839 (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add
840 jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and
842 (MIPS16_DECODE): New table, for mips16 instructions.
843 (bitmap_val): New static function.
844 (struct mips16_op): Define.
845 (mips16_op_table): New table, for mips16 operands.
846 (build_mips16_operands): New static function.
847 (process_instructions): If PC is odd, decode a mips16
848 instruction. Break out instruction handling into new
849 build_instruction function.
850 (build_instruction): New static function, broken out of
851 process_instructions. Check modifiers rather than flags for SHIFT
852 bit count and m[ft]{hi,lo} direction.
853 (usage): Pass program name to fprintf.
854 (main): Remove unused variable this_option_optind. Change
855 ``*loptarg++'' to ``loptarg++''.
856 (my_strtoul): Parenthesize && within ||.
857 * interp.c (LoadMemory): Accept a halfword pAddr if vAddr is odd.
858 (simulate): If PC is odd, fetch a 16 bit instruction, and
859 increment PC by 2 rather than 4.
860 * configure.in: Add case for mips16*-*-*.
861 * configure: Rebuild.
863 Fri Nov 22 08:49:36 1996 Mark Alexander <marka@cygnus.com>
865 * interp.c: Allow -t to enable tracing in standalone simulator.
866 Fix garbage output in trace file and error messages.
868 Wed Nov 20 01:54:37 1996 Doug Evans <dje@canuck.cygnus.com>
870 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
871 (SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
872 * configure.in: Simplify using macros in ../common/aclocal.m4.
873 * configure: Regenerated.
874 * tconfig.in: New file.
876 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
878 * interp.c: Fix bugs in 64-bit port.
879 Use ansi function declarations for msvc compiler.
880 Initialize and test file pointer in trace code.
881 Prevent duplicate definition of LAST_EMED_REGNUM.
883 Tue Oct 15 11:07:06 1996 Mark Alexander <marka@cygnus.com>
885 * interp.c (xfer_big_long): Prevent unwanted sign extension.
887 Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
889 * interp.c (SignalException): Check for explicit terminating
891 * gencode.c: Pass instruction value through SignalException()
892 calls for Trap, Breakpoint and Syscall.
894 Thu Sep 26 11:35:17 1996 James G. Smith <jsmith@cygnus.co.uk>
896 * interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
897 only used on those hosts that provide it.
898 * configure.in: Add sqrt() to list of functions to be checked for.
899 * config.in: Re-generated.
900 * configure: Re-generated.
902 Fri Sep 20 15:47:12 1996 Ian Lance Taylor <ian@cygnus.com>
904 * gencode.c (process_instructions): Call build_endian_shift when
905 expanding STORE RIGHT, to fix swr.
906 * support.h (SIGNEXTEND): If the sign bit is not set, explicitly
908 * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
909 Fix float to int conversions to produce signed values.
911 Thu Sep 19 15:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
913 * gencode.c (MIPS_DECODE): Set UNSIGNED for multu instruction.
914 (process_instructions): Correct handling of nor instruction.
915 Correct shift count for 32 bit shift instructions. Correct sign
916 extension for arithmetic shifts to not shift the number of bits in
917 the type. Fix 64 bit multiply high word calculation. Fix 32 bit
918 unsigned multiply. Fix ldxc1 and friends to use coprocessor 1.
920 * interp.c (CHECKHILO): Don't set HIACCESS, LOACCESS, or HLPC.
921 It's OK to have a mult follow a mult. What's not OK is to have a
923 (Convert): Comment out incorrect rounding code.
925 Mon Sep 16 11:38:16 1996 James G. Smith <jsmith@cygnus.co.uk>
927 * interp.c (sim_monitor): Improved monitor printf
928 simulation. Tidied up simulator warnings, and added "--log" option
929 for directing warning message output.
930 * gencode.c: Use sim_warning() rather than WARNING macro.
932 Thu Aug 22 15:03:12 1996 Ian Lance Taylor <ian@cygnus.com>
934 * Makefile.in (gencode): Depend upon gencode.o, getopt.o, and
935 getopt1.o, rather than on gencode.c. Link objects together.
936 Don't link against -liberty.
937 (gencode.o, getopt.o, getopt1.o): New targets.
938 * gencode.c: Include <ctype.h> and "ansidecl.h".
939 (AND): Undefine after including "ansidecl.h".
940 (ULONG_MAX): Define if not defined.
941 (OP_*): Don't define macros; now defined in opcode/mips.h.
942 (main): Call my_strtoul rather than strtoul.
943 (my_strtoul): New static function.
945 Wed Jul 17 18:12:38 1996 Stu Grossman (grossman@critters.cygnus.com)
947 * gencode.c (process_instructions): Generate word64 and uword64
948 instead of `long long' and `unsigned long long' data types.
949 * interp.c: #include sysdep.h to get signals, and define default
951 * (Convert): Work around for Visual-C++ compiler bug with type
953 * support.h: Make things compile under Visual-C++ by using
954 __int64 instead of `long long'. Change many refs to long long
955 into word64/uword64 typedefs.
957 Wed Jun 26 12:24:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
959 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
960 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
962 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
963 (AC_PROG_INSTALL): Added.
964 (AC_PROG_CC): Moved to before configure.host call.
965 * configure: Rebuilt.
967 Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
969 * configure.in: Define @SIMCONF@ depending on mips target.
970 * configure: Rebuild.
971 * Makefile.in (run): Add @SIMCONF@ to control simulator
973 * gencode.c: Change LOADDRMASK to 64bit memory model only.
974 * interp.c: Remove some debugging, provide more detailed error
975 messages, update memory accesses to use LOADDRMASK.
977 Mon Jun 3 11:55:03 1996 Ian Lance Taylor <ian@cygnus.com>
979 * configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
980 AC_CHECK_LIB, and AC_CHECK_FUNCS. Change AC_OUTPUT to set
982 * configure: Rebuild.
983 * config.in: New file, generated by autoheader.
984 * interp.c: Include "config.h". Include <stdlib.h>, <string.h>,
985 and <strings.h> if they exist. Replace #ifdef sun with #ifdef
986 HAVE_ANINT and HAVE_AINT, as appropriate.
987 * Makefile.in (run): Use @LIBS@ rather than -lm.
988 (interp.o): Depend upon config.h.
989 (Makefile): Just rebuild Makefile.
990 (clean): Remove stamp-h.
991 (mostlyclean): Make the same as clean, not as distclean.
992 (config.h, stamp-h): New targets.
994 Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
996 * interp.c (ColdReset): Fix boolean test. Make all simulator
999 Wed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
1001 * interp.c (xfer_direct_word, xfer_direct_long,
1002 swap_direct_word, swap_direct_long, xfer_big_word,
1003 xfer_big_long, xfer_little_word, xfer_little_long,
1004 swap_word,swap_long): Added.
1005 * interp.c (ColdReset): Provide function indirection to
1006 host<->simulated_target transfer routines.
1007 * interp.c (sim_store_register, sim_fetch_register): Updated to
1008 make use of indirected transfer routines.
1010 Fri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
1012 * gencode.c (process_instructions): Ensure FP ABS instruction
1014 * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
1015 system call support.
1017 Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
1019 * interp.c (sim_do_command): Complain if callback structure not
1022 Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
1024 * interp.c (Convert): Provide round-to-nearest and round-to-zero
1025 support for Sun hosts.
1026 * Makefile.in (gencode): Ensure the host compiler and libraries
1027 used for cross-hosted build.
1029 Wed Mar 27 14:42:12 1996 James G. Smith <jsmith@cygnus.co.uk>
1031 * interp.c, gencode.c: Some more (TODO) tidying.
1033 Thu Mar 7 11:19:33 1996 James G. Smith <jsmith@cygnus.co.uk>
1035 * gencode.c, interp.c: Replaced explicit long long references with
1036 WORD64HI, WORD64LO, SET64HI and SET64LO macro calls.
1037 * support.h (SET64LO, SET64HI): Macros added.
1039 Wed Feb 21 12:16:21 1996 Ian Lance Taylor <ian@cygnus.com>
1041 * configure: Regenerate with autoconf 2.7.
1043 Tue Jan 30 08:48:18 1996 Fred Fish <fnf@cygnus.com>
1045 * interp.c (LoadMemory): Enclose text following #endif in /* */.
1046 * support.h: Remove superfluous "1" from #if.
1047 * support.h (CHECKSIM): Remove stray 'a' at end of line.
1049 Mon Dec 4 11:44:40 1995 Jamie Smith <jsmith@cygnus.com>
1051 * interp.c (StoreFPR): Control UndefinedResult() call on
1052 WARN_RESULT manifest.
1054 Fri Dec 1 16:37:19 1995 James G. Smith <jsmith@cygnus.co.uk>
1056 * gencode.c: Tidied instruction decoding, and added FP instruction
1059 * interp.c: Added dineroIII, and BSD profiling support. Also
1060 run-time FP handling.
1062 Sun Oct 22 00:57:18 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
1064 * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
1065 gencode.c, interp.c, support.h: created.