From: Jan Kiszka Date: Sun, 26 Aug 2012 08:12:47 +0000 (+0200) Subject: memory: Fix copy&paste mistake in memory_region_iorange_write X-Git-Tag: v1.1.2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25c0807e3ca1026b245243e156e764cf989be6bf;p=thirdparty%2Fqemu.git memory: Fix copy&paste mistake in memory_region_iorange_write The last argument of find_portio is "write", so this must be true here. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori (cherry picked from commit 7e2a62d82a3f1397acd67685c3008046eba8344b) Signed-off-by: Michael Roth --- diff --git a/memory.c b/memory.c index aab4a313238..f039464c59b 100644 --- a/memory.c +++ b/memory.c @@ -426,7 +426,7 @@ static void memory_region_iorange_write(IORange *iorange, if (mrp) { mrp->write(mr->opaque, offset, data); } else if (width == 2) { - mrp = find_portio(mr, offset - mrio->offset, 1, false); + mrp = find_portio(mr, offset - mrio->offset, 1, true); assert(mrp); mrp->write(mr->opaque, offset, data & 0xff); mrp->write(mr->opaque, offset + 1, data >> 8);