aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-08-26 10:12:47 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2012-08-29 08:25:37 -0500
commit7e2a62d82a3f1397acd67685c3008046eba8344b (patch)
treebd76827e2445adadbcca95edc14238f3323983a6
parent7e7de876ae9bdb1b994dee148c6dc009ce94c48e (diff)
downloadqemu-arm-7e2a62d82a3f1397acd67685c3008046eba8344b.tar.gz
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 <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memory.c b/memory.c
index 643871bafa..d528d1f7f3 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);