--- trunk/src/devices/dev_disk.c 2007/10/08 16:18:38 12 +++ trunk/src/devices/dev_disk.c 2007/10/08 16:19:11 18 @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $Id: dev_disk.c,v 1.7 2005/08/04 10:53:25 debug Exp $ + * $Id: dev_disk.c,v 1.8 2005/10/26 14:37:03 debug Exp $ * * Basic "Disk" device. This is a simple test device which can be used to * read and write data from disk devices. @@ -83,7 +83,8 @@ struct disk_data *d = (struct disk_data *) extra; uint64_t idata = 0, odata = 0; - idata = memory_readmax64(cpu, data, len); + if (writeflag == MEM_WRITE) + idata = memory_readmax64(cpu, data, len); switch (relative_addr) { case 0x00: