--- trunk/src/devices/dev_wdsc.c 2007/10/08 16:18:11 6 +++ trunk/src/devices/dev_wdsc.c 2007/10/08 16:19:11 18 @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $Id: dev_wdsc.c,v 1.25 2005/05/15 01:55:51 debug Exp $ + * $Id: dev_wdsc.c,v 1.27 2005/10/26 14:37:05 debug Exp $ * * WDSC SCSI (WD33C93) controller. * (For SGI-IP22. See sys/arch/sgimips/hpc/sbic* in NetBSD for details.) @@ -37,7 +37,6 @@ #include #include -#include "console.h" #include "cpu.h" #include "devices.h" #include "diskimage.h" @@ -317,7 +316,8 @@ struct wdsc_data *d = extra; uint64_t idata = 0, odata = 0; - idata = memory_readmax64(cpu, data, len); + if (writeflag == MEM_WRITE) + idata = memory_readmax64(cpu, data, len); /* * All registers on the WDSC seem to be accessed by writing the