Commit graph

289 commits

Author SHA1 Message Date
Michael Meissner
a9ddbbf5a1 12/19 release from Andrew that fixes Netbsd break problem 1995-12-19 16:41:06 +00:00
Michael Meissner
98a497b3e9 Work with new and old BFDs; Do not inline model externs functions by default 1995-12-16 15:02:48 +00:00
Ian Lance Taylor
e924127a4f * run.c (main): Use new bfd_big_endian macro. 1995-12-15 21:28:11 +00:00
Michael Meissner
669b4e1ef6 Fix warnings when using full inlining. 1995-12-15 21:06:22 +00:00
Michael Meissner
93fac32455 Changes from Andrew 1995-12-15 20:20:13 +00:00
J.T. Conklin
2434e38489 * gencode.c (tab): Added several sh3 opcodes.
(think): Added printonmatch for A_SSR and A_SPC.
* interp.c (SSR, SPC): Added definitions.
(saved_state_type): Added ssr and spc registers.
1995-12-04 20:27:38 +00:00
Jackie Smith Cashion
8bae0a0c48 * gencode.c: Tidied instruction decoding, and added FP instruction
support.
* interp.c: Added dineroIII, and BSD profiling support. Also
run-time FP handling.

At the moment the options are still mostly build-time controlled,
rather than run-time. Also work still needs to be done to remove (long
long) usage (However this is trivial, just time-consuming).

The out-standing instruction work to be done is in supporting round
and trunc for FP operations, and providing better exception support.
1995-12-01 16:42:44 +00:00
Michael Meissner
1f1e5dd85f Let autoconf determine if host is big endian or not 1995-11-30 11:13:08 +00:00
Jim Wilson
9dfb65e661 * gencode.c (tab): In shad/shld definitions, negate R[m] before
the and operation instead of after.  For shad delete cast.  For shld
	use UR instead of R and delete cast.
1995-11-29 20:41:46 +00:00
Michael Meissner
cf644706d6 fix typo 1995-11-28 18:57:30 +00:00
Michael Meissner
290ad14a9d Add determining when we do not have enough writeback slots; Do not do model specific handling if not printing out the information 1995-11-28 18:47:07 +00:00
Michael Meissner
70fc4ad384 Build again on SunOS; Make MODEL_INLINE default to 1 if inlining, not 2; Use __attribute__((const)) 1995-11-27 22:54:40 +00:00
Michael Meissner
eade8e035c Check lf_printf for type correctness 1995-11-25 06:08:56 +00:00
Michael Meissner
3d2f9d7c88 Make WITH_MODEL_ISSUE==0 not core dump 1995-11-25 05:56:28 +00:00
Michael Meissner
f2181eff5f Sort instruction names; Add igen -R option; count # of CRs that mtcrf moved 1995-11-25 01:35:14 +00:00
Michael Meissner
63caaafa5b Sort instruction names; Add igen -R option; count # of CRs that mtcrf moved 1995-11-25 01:34:26 +00:00
Michael Meissner
45525d8d6d Fix warnings to everything can be compiled with -Wall; Redo model specific changes once again to speed things up 1995-11-24 16:44:37 +00:00
Michael Meissner
46c065ab31 Count each type of conditional branch 1995-11-22 21:02:49 +00:00
Michael Meissner
4a0351ab45 Add floating point model specific support; Redo method model specific support is done; Add remaining floating add/subtract-multiply 1995-11-21 21:41:25 +00:00
David Edelsohn
c3ccc15e43 minor cleanup 1995-11-21 01:45:07 +00:00
David Edelsohn
6d8e15cbaf * run.c: Include "getopt.h".
(verbose): Delete.
	(usage): Make static.
	(main): Call arm_sim_set_verbosity.
	Only load sections marked SEC_LOAD.
	* wrapper.c (mem_size, verbosity): New static global.
	(arm_sim_set_mem_size): Renamed from sim_size.
	Callers updated
	(arm_sim_set_profile{,_size}): Renamed from sim_foo.  Callers updated.
1995-11-21 01:44:50 +00:00
Michael Meissner
0bcce7d390 speed up search for free function unit slightly. 1995-11-20 04:05:36 +00:00
Angela Marie Thomas
50f694435f don't keep mips.. I don't think it's ready for primetime. 1995-11-19 10:12:19 +00:00
Angela Marie Thomas
86db8439a2 removed build-psim,config.make,config.hdr,function_unit.c,function_unit.h 1995-11-19 09:43:46 +00:00
David Edelsohn
e47e480588 * armdefs.h (ARMul_State): New member `verbose'.
* armrdi.c (ARMul_ConsolePrint): Add missing va_end.
	* run.c (verbose): Make global.
	* wrapper.c (init): Set state->verbose.
	(ARMul_ConsolePrint): Don't print anything if !verbose.
1995-11-18 03:39:17 +00:00
Jim Wilson
708f6147e4 Patch for Hitachi PR 8433, avoid core dump on HPUX host
* gencode.c (tab): Add explicit NaN support for ftrc instruction.
1995-11-18 02:03:21 +00:00
Michael Meissner
15ec5b60e2 Add scheduling support for M{F,T}CR 1995-11-18 01:39:04 +00:00
Michael Meissner
54e986998a More scheduling stuff 1995-11-18 01:14:45 +00:00
Michael Meissner
4220dcd698 checkpoint ppc simulator 1995-11-17 19:17:58 +00:00
Michael Meissner
84bbbc3577 Delete old functional_unit support; Add --enable-sim-model-issue; Monitor branch prediction success 1995-11-16 21:42:27 +00:00
Michael Meissner
867b71685a fix bug in last checkin 1995-11-16 19:25:47 +00:00
Michael Meissner
845ff5a45f more functional unit changes 1995-11-16 19:02:52 +00:00
Michael Meissner
acb06d3040 Add option to make options inline 1995-11-15 23:01:47 +00:00
Michael Meissner
80948f392b More model specific changes 1995-11-15 22:53:59 +00:00
Stu Grossman
fe2f8313f0 * gencode.c: jsr, bsr and bsrf actually save pc+4 in pr, and rts
actually uses pr+0.
1995-11-15 00:47:21 +00:00
Stu Grossman
9999417ef6 * gencode.c: jsr actually saves pc+4, and rts actually uses pr+0. 1995-11-14 23:42:22 +00:00
Michael Meissner
39c324612d make inline model use static when inlining. 1995-11-14 11:34:01 +00:00
Michael Meissner
f35df46cc3 make inline model use static when inlining. 1995-11-14 11:25:34 +00:00
Michael Meissner
fe439e0f18 fix more warnings 1995-11-14 10:52:24 +00:00
Michael Meissner
ac79ccd41d Fix warnings and dependency 1995-11-14 09:52:29 +00:00
Michael Meissner
1dc7c0ed84 checkpoint 1995-11-13 16:07:30 +00:00
Michael Meissner
eb4ef19775 Add model-functions support 1995-11-13 01:27:21 +00:00
Michael Meissner
28816f45f5 Add support for setting model name and other things 1995-11-12 14:20:39 +00:00
Michael Meissner
c05c182dd6 Various changes 1995-11-12 02:06:11 +00:00
Michael Meissner
d587782c78 fix typo 1995-11-11 12:30:17 +00:00
Michael Meissner
813ad010f6 Check for files in the source directory, not the build directory 1995-11-11 01:11:31 +00:00
Michael Meissner
a31140524a Tons of changes to allow model specific information in the instruction file. 1995-11-10 22:49:05 +00:00
Michael Meissner
b51e5b4f6e If --enable-sim-inline is not specified, default to DEFAULT_INLINE=1, not 2. 1995-11-10 11:41:58 +00:00
Michael Meissner
e218c1be05 Add comment about enabing PowerPC simulator 1995-11-10 11:38:13 +00:00
Michael Meissner
f7c22f27af fix typo 1995-11-10 11:27:14 +00:00
Michael Meissner
f50dc1050d Add --enable-sim-powerpc support. 1995-11-09 22:44:47 +00:00
Michael Meissner
2bc7869d54 Obey --silent 1995-11-09 21:38:13 +00:00
Michael Meissner
6f07ee29f3 Get CC, etc. vars from configure; build ppc simulator if we are using GCC 1995-11-09 21:23:36 +00:00
Michael Meissner
23a994eee6 fix typo 1995-11-09 19:51:34 +00:00
Michael Meissner
ba62bb1c74 Turn on INLINES if using GCC to compile simulator; Print more stuff if requests -t trace; If !WITH_ASSERT, do not check whether illegal bits in instruction are set 1995-11-09 19:50:51 +00:00
Michael Meissner
c5addc193d General cleanup; add -t options support to print all options 1995-11-09 02:35:15 +00:00
Michael Meissner
73c4941b23 first stage in function unit support; add new switches & latest code from andrew 1995-11-08 18:57:06 +00:00
Jackie Smith Cashion
595a6ec337 * configure.in (mips*-*-*): Added "mips" simulator target.
* configure: Re-generated.
1995-11-08 15:48:59 +00:00
Jackie Smith Cashion
8ad5773724 Initial check-in of the MIPS simulator. Work still needs to be done on
the run-time support code (interp.c) to provide better tracing, and
also to add profiling and architecture specific support. At the moment
the simulator has a fixed size, fixed address memory area, and
simulates a subset of the IDT monitor calls (enough to execute test
programs).

The other major feature (could even be a bug) is that the simulator
makes use of the GCC "long long" extension. Work has been started to
make this a build configuration option... but there is still a lot of
this to be done.
1995-11-08 15:44:38 +00:00
Michael Meissner
bea9581508 Remove references to config.make/config.hdr 1995-11-07 02:58:35 +00:00
Michael Meissner
0934e52021 delete unused files 1995-11-06 15:40:26 +00:00
Michael Meissner
4dcb0cdda6 Small changes from Andrew 1995-11-06 15:37:43 +00:00
Fred Fish
01860b7ed1 * core.c: Rename to corefile.c
* core.h:  Rename to corefile.h
	* inline.c: Include corefile.h, renamed from core.h.
	* cpu.h: Include corefile.h, renamed from core.h
	* vm.c: Include corefile.h, renamed from core.h
	* Makefile.in (CPU_H): Change core.h to corefile.h
	(vm.o):  Change dependency to corefile.h
	(LIB_SRC): Change core.c to corefile.c.
	(LIB_OBJ): Change core.o to corefile.o.
	(corefile.o):  Change dependencies to corefile.c, corefile.h.
	* corefile.c: Include corefile.h rather than core.h
	* README.psim (KNOWN PROBLEMS): Change core.* references to corefile.*
	references.
1995-11-05 05:40:15 +00:00
Michael Meissner
056e975cfe Add 2 config flags that were missing; make data cache instructions be nops 1995-11-03 19:37:28 +00:00
Michael Meissner
b3737d33ea Fix typo in last changes 1995-11-03 03:55:44 +00:00
Michael Meissner
e61900e6a2 Update dependencies; Fix multiple options in --enable-sim-cflags 1995-11-03 03:39:27 +00:00
Michael Meissner
c494cadde6 Use autoconf correctly; provide more stats with -I 1995-11-02 20:21:35 +00:00
Michael Meissner
7ff82a593d Add ppc-opcode-stupid 1995-11-02 14:28:10 +00:00
Michael Meissner
a983c8f080 Andrew's latest changes & print all instruction counts if -I 1995-11-02 14:27:18 +00:00
Michael Meissner
c143ef6296 Lots of changes 1995-11-01 19:32:38 +00:00
Michael Meissner
4ac24d7673 remove extra #endif 1995-11-01 03:25:04 +00:00
Michael Meissner
5281197d1e fix typo in last change 1995-11-01 03:02:04 +00:00
Michael Meissner
5d0e859038 map , to spaces in --enable-sim-cflags 1995-10-31 20:59:19 +00:00
Michael Meissner
4b935ed4a4 Add various switches to control how the simulator is built 1995-10-31 20:24:41 +00:00
Michael Meissner
5b4d72dd73 New changes from Andrew 1995-10-31 18:29:37 +00:00
Michael Meissner
e89929cd79 Delete *.i and *.out files for clean 1995-10-26 18:10:13 +00:00
Michael Meissner
22ddef466e Fix SWAP_8 and optimize it; print out the failing address if a signal is issued for non-gdb runs 1995-10-26 16:43:00 +00:00
Jim Wilson
3be50301d5 Fix SH simulator to handle program exit correctly. 1995-10-22 20:22:02 +00:00
Jim Wilson
99e6fd41ea Indicate SIGILL instead of calling abort for default case. 1995-10-21 21:38:40 +00:00
Fred Fish
64415b767b *** empty log message *** 1995-10-20 16:16:18 +00:00
Michael Meissner
5b0d3b1490 Move counting of instructions into the semantic routines. 1995-10-16 21:36:01 +00:00
Michael Meissner
9aa8a78839 Speedups from Andrew 1995-10-16 20:17:35 +00:00
Steve Chamberlain
a325a02e36 Add sim_set_callbacks. 1995-10-13 22:06:30 +00:00
Michael Meissner
a1fe883fd0 Rename trace to ppc_trace; Remove extra static. 1995-10-13 14:01:32 +00:00
Michael Meissner
9f5912cb98 Format #instructions with commas 1995-10-13 01:10:06 +00:00
Michael Meissner
a8958dd48b Performance tweaks 1995-10-12 21:49:37 +00:00
Michael Meissner
8e20a3ac82 Inline most things except semantics which causes GCC to balloon, and device{s,_tree} which causes a bug 1995-10-12 15:48:22 +00:00
Michael Meissner
dec38daceb October 11th changes from Andrew 1995-10-11 20:17:49 +00:00
Fred Fish
479fc045cd * Makefile.in (BISONFLAGS): Remove macro. 1995-10-10 20:37:09 +00:00
Peter Schauer
23de525f42 * configure.in: Explicitly `exit 0' for broken shells.
* configure:  Rebuilt.
1995-10-08 11:27:49 +00:00
Michael Meissner
f46f380706 Add set_sim_callbacks new needed by gdb. 1995-10-08 02:42:39 +00:00
Michael Meissner
7ca054e88e Print exit status/signal number if -I 1995-10-06 21:23:35 +00:00
Jim Wilson
0e1815de9d * interp.c (callback): Remove last change. It is initialized by
a sim_set_callbacks call.
1995-10-06 19:15:06 +00:00
Jim Wilson
437fb926e6 * interp.c (trap, case SYS_utime): Cast second arg of utime to
void * to avoid compiler error.
1995-10-06 19:13:13 +00:00
Jim Wilson
6834d4935c * common/run.c (main): Initialize the callbacks. 1995-10-06 19:05:40 +00:00
Steve Chamberlain
f025d903c2 new file. 1995-10-05 21:23:43 +00:00
Steve Chamberlain
28920b9dbb * interp.c (callback): Initialize to default callback. 1995-10-05 21:14:21 +00:00
Jason Molenda
e635c16ecb revert to stock autoconf 2.4 configure scripts. 1995-10-03 20:31:16 +00:00
Stan Shebs
3994972d62 No ChangeLog to keep. 1995-10-03 01:50:49 +00:00
Michael Meissner
8b57093d33 Add # in front of CPU number 1995-10-02 18:33:17 +00:00