summaryrefslogtreecommitdiffstats
path: root/sis.c
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2020-10-25 11:21:21 -0400
committerJiri Gaisler <jiri@gaisler.se>2020-10-25 11:21:21 -0400
commit511bfc5dd1b679e5a99850290ba29313995b0fb1 (patch)
tree5899416dc45a052e60e3e3cb282e5745fc95f0e2 /sis.c
parentUpdate to version 2.22 (diff)
downloadsis-511bfc5dd1b679e5a99850290ba29313995b0fb1.tar.bz2
Add -rt option to synch sim to wall time
* Active during cpu power-down to avoid run-away sim time. Useful for interactive applications.
Diffstat (limited to 'sis.c')
-rw-r--r--sis.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sis.c b/sis.c
index ff351f8..2dc76ce 100644
--- a/sis.c
+++ b/sis.c
@@ -147,6 +147,10 @@ main (argc, argv)
{
run = 1;
}
+ else if (strcmp (argv[stat], "-rt") == 0)
+ {
+ sync_rt = 1;
+ }
else if (strcmp (argv[stat], "-erc32") == 0)
{
lcputype = CPU_ERC32;