Skip to content

Commit

Permalink
DISK: Make sure RAW device unload actually detaches from unit
Browse files Browse the repository at this point in the history
  • Loading branch information
markpizz committed May 1, 2023
1 parent bc5dced commit d0a1b13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ All Simulator updates on Open SIMH will be present in this repository, and any c
This mode will often be useful for running diagnostics which expect a particular relationship between perceived wall clock and instruction times. It might also be useful for running test scripts which may want to compare output of previous executions to to current execution or to compare execution on arbitrarily different host computers.

In NOCALIBRATE mode, the operator gets to specify the pseudo execution rate along with the base wall clock time that access to pseudo wall clock accesses returns.
- All removable devices get detached on a media unload without regard to data access format (SIMH, VHD or RAW).

#### Changes to the PDP-11 and VAX simulators also not in the Open SIMH repo

Expand All @@ -108,6 +109,7 @@ All Simulator updates on Open SIMH will be present in this repository, and any c
- HELP CPU shows supported breakpoint types.
- Add device support for DL11-C/DL11-D/DL11-E/DLV11-J in addition to the original KL11/DL11-A/DL11-B/DL11-E/DL11-F support. These new devices have different bus address ranges and can coexist with the original DL devices. The new devices are DLCJI and DLCJO and are managed identically to the original DLI and DLO devices.
- All improvements and fixes to the PDP11 simulator from simh Version 3.12-3 release and beyond.
- MicroVAX I has unsupported devices (TQ, TS, and VH) removed.

### All relevant changes in the simh v3.12-3 release have been merged into this repo

Expand Down
3 changes: 2 additions & 1 deletion sim_disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,8 @@ switch (DK_GET_FMT (uptr)) { /* case on format */
return sim_disk_detach (uptr);
case DKUF_F_RAW: /* Raw Physical Disk Access */
ctx->media_removed = 1;
return sim_os_disk_unload_raw (uptr->fileref); /* remove/eject disk */
sim_os_disk_unload_raw (uptr->fileref); /* remove/eject disk */
return sim_disk_detach (uptr);
break;
default:
return SCPE_NOFNC;
Expand Down

0 comments on commit d0a1b13

Please sign in to comment.