mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 23:37:13 +00:00
PDP11, Most VAX: Improve rewind time for TQ device
Make the rewind time vary based on tape position.
This commit is contained in:
parent
f700346ea9
commit
bd45a9c45f
@ -1210,7 +1210,11 @@ if ((uptr = tq_getucb (lu))) { /* unit exist? */
|
||||
uptr->cpkt = pkt; /* op in progress */
|
||||
if ((tq_pkt[pkt].d[CMD_MOD] & MD_RWD) && /* rewind? */
|
||||
(!(tq_pkt[pkt].d[CMD_MOD] & MD_IMM))) { /* !immediate? */
|
||||
sim_activate_after (uptr, tq_rwtime); /* use 2 sec rewind execute time */
|
||||
double walltime = (tq_rwtime - 100);
|
||||
|
||||
if (uptr->hwmark)
|
||||
walltime *= ((double)uptr->pos)/uptr->hwmark;
|
||||
sim_activate_after_d (uptr, 100 + walltime);/* use scaled 2 sec rewind execute time */
|
||||
}
|
||||
else { /* otherwise */
|
||||
uptr->iostarttime = sim_grtime();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user