diff --git a/scp.c b/scp.c index 4d502a1c..ded01712 100644 --- a/scp.c +++ b/scp.c @@ -1127,12 +1127,12 @@ static const char simh_help1[] = "++RUNLIMIT n {%C|MICROSECONDS|SECONDS|MINUTES|HOURS}\n" "++NORUNLIMIT\n\n" " Equivalently:\n\n" - "++SET RUNLIMIT n {CYCLES|MICROSECONDS|SECONDS|MINUTES|HOURS}\n" + "++SET RUNLIMIT n {%C|MICROSECONDS|SECONDS|MINUTES|HOURS}\n" "++SET NORUNLIMIT\n\n" " The run limit state can be examined with:\n\n" "++SHOW RUNLIMIT\n\n" " If the units of the run limit are not specified, the default units are\n" - " %C. Once an execution run limit has beenn reached, any subsequent\n" + " %C. Once an execution run limit has been reached, any subsequent\n" " GO, RUN, CONTINUE, STEP or BOOT commands will cause the simulator to\n" " exit. A previously defined RUNLIMIT can be cleared with the NORUNLIMIT\n" " command or the establishment of a new run limit.\n" @@ -4405,7 +4405,7 @@ int i; size_t outstr_off = 0; sim_exp_argv = do_arg; -clock_gettime(CLOCK_REALTIME, &cmd_time); +sim_rtcn_get_time (&cmd_time, 0); tmpbuf = (char *)malloc(instr_size); op = tmpbuf; oend = tmpbuf + instr_size - 2; @@ -13287,7 +13287,7 @@ char pc_s[64] = ""; struct timespec time_now; if (sim_deb_switches & (SWMASK ('T') | SWMASK ('R') | SWMASK ('A'))) { - clock_gettime(CLOCK_REALTIME, &time_now); + sim_rtcn_get_time(&time_now, 0); if (sim_deb_switches & SWMASK ('R')) sim_timespec_diff (&time_now, &time_now, &sim_deb_basetime); if (sim_deb_switches & SWMASK ('T')) { diff --git a/sim_console.c b/sim_console.c index bf4df38f..6316298d 100644 --- a/sim_console.c +++ b/sim_console.c @@ -2315,7 +2315,7 @@ if (sim_deb_switches & SWMASK ('R')) { struct tm loc_tm, gmt_tm; time_t time_t_now; - clock_gettime(CLOCK_REALTIME, &sim_deb_basetime); + sim_rtcn_get_time(&sim_deb_basetime, 0); time_t_now = (time_t)sim_deb_basetime.tv_sec; /* Adjust the relative timebase to reflect the localtime GMT offset */ loc_tm = *localtime (&time_t_now);