1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 20:12:23 +00:00

sigma: Fix shutdown/detach issue with tape devices.

Also add makefile and Visual Studio Project definitions to build the incomplete/unsupported sigma and alpha simulators.
This commit is contained in:
Mark Pizzolato
2014-07-10 14:57:18 -07:00
parent b907790cc1
commit c1c5535d0b
6 changed files with 708 additions and 3 deletions

View File

@@ -132,7 +132,7 @@ t_stat mtr_svc (UNIT *uptr);
t_stat mt_reset (DEVICE *dptr);
t_stat mt_attach (UNIT *uptr, char *cptr);
t_stat mt_detach (UNIT *uptr);
t_stat mt_flush_buf (uptr);
t_stat mt_flush_buf (UNIT *uptr);
t_stat mt_map_err (UNIT *uptr, t_stat r);
int32 mt_clr_int (uint32 dva);
void mt_set_rwi (uint32 un);
@@ -639,6 +639,7 @@ t_stat mt_detach (UNIT* uptr)
{
uint32 un = uptr - mt_dev.units;
if (!(uptr->flags & UNIT_ATTABLE)) return SCPE_NOATT;
uptr->UST = 0;
sim_cancel (uptr + MT_REW);
return sim_tape_detach (uptr);