]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
memory: Fix copy&paste mistake in memory_region_iorange_write
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 26 Aug 2012 08:12:47 +0000 (10:12 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 30 Aug 2012 19:54:16 +0000 (14:54 -0500)
The last argument of find_portio is "write", so this must be true here.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 7e2a62d82a3f1397acd67685c3008046eba8344b)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
memory.c

index aab4a3132380fc0b7d38c08802249a56f23da31d..f039464c59b92ea745b2ed3e883b827913050d41 100644 (file)
--- 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);