1
0
mirror of https://github.com/simh/simh.git synced 2026-04-26 12:07:16 +00:00

SCP: Avoid writing out memory buffered devices on detach that haven't changed

As discussed in #1109
This commit is contained in:
Mark Pizzolato
2022-02-13 22:50:37 -08:00
parent 0116987fc7
commit 315a07cbc7
2 changed files with 18 additions and 5 deletions

View File

@@ -585,6 +585,7 @@ struct UNIT {
uint32 dynflags; /* dynamic flags */
t_addr capac; /* capacity */
t_addr pos; /* file position */
void *filebuf2; /* copy of initial memory buffer */
void (*io_flush)(UNIT *up); /* io flush routine */
uint32 iostarttime; /* I/O start time */
int32 buf; /* buffer */