projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef323d7
)
Checkpoint.
author
Steve Chamberlain
<sac@cygnus>
Thu, 24 Jun 1993 20:52:58 +0000
(20:52 +0000)
committer
Steve Chamberlain
<sac@cygnus>
Thu, 24 Jun 1993 20:52:58 +0000
(20:52 +0000)
sim/sh/.Sanitize
patch
|
blob
|
history
sim/sh/run.c
patch
|
blob
|
history
diff --git
a/sim/sh/.Sanitize
b/sim/sh/.Sanitize
index a4d6ae6990b93c4e029b22d696e0ac3c25c0964e..f14e72ee82898bf35ec517476f20ebebdfa91b93 100644
(file)
--- a/
sim/sh/.Sanitize
+++ b/
sim/sh/.Sanitize
@@
-31,6
+31,7
@@
configure.in
interp.c
gencode.c
run.c
+sh.mt
Things-to-lose:
diff --git
a/sim/sh/run.c
b/sim/sh/run.c
index ea443d6bda4175e84d568caf4315c454c1cb5167..337218d6cb3b18455caacc2dcb9f91dbd34c1db1 100644
(file)
--- a/
sim/sh/run.c
+++ b/
sim/sh/run.c
@@
-36,6
+36,8
@@
main (ac, av)
int verbose = 0;
int trace = 0;
char *name = "";
+ sim_set_timeout(10000000);
+
for (i = 1; i < ac; i++)
{
if (strcmp (av[i], "-v") == 0)
@@
-57,6
+59,11
@@
main (ac, av)
sim_set_profile_size(atoi(av[i+1]));
i++;
}
+ else if (strcmp (av[i], "-k") == 0)
+ {
+ sim_set_timeout(atoi(av[i+1]));
+ i++;
+ }
else if (strcmp (av[i], "-m") == 0)
{
sim_size(atoi(av[i+1]));
@@
-106,7
+113,13
@@
main (ac, av)
if (verbose)
sim_info ();
- return 0;
+ /* Find out what was in r0 and return that */
+ {
+ unsigned char b[4];
+ sim_fetch_register(0, b);
+ return b[3];
+ }
+
}
}