--- trunk/src/devices/dev_8250.c 2007/10/08 16:18:00 4 +++ trunk/src/devices/dev_8250.c 2007/10/08 16:19:11 18 @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $Id: dev_8250.c,v 1.16 2005/02/26 11:56:42 debug Exp $ + * $Id: dev_8250.c,v 1.17 2005/10/26 14:37:03 debug Exp $ * * 8250 serial controller. * @@ -106,7 +106,9 @@ uint64_t idata = 0, odata = 0; struct dev_8250_data *d = extra; - idata = memory_readmax64(cpu, data, len); + if (writeflag == MEM_WRITE) + idata = memory_readmax64(cpu, data, len); + relative_addr /= d->addrmult; if (writeflag == MEM_WRITE && relative_addr == 0)