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>
This commit is contained in:
parent
7e7de876ae
commit
7e2a62d82a
2
memory.c
2
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);
|
||||
|
Loading…
Reference in New Issue
Block a user