summaryrefslogtreecommitdiffstats
path: root/hw/ppc/ppc440_uc.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2018-07-04 16:44:00 +0200
committerDavid Gibson2018-07-07 04:12:27 +0200
commit7aeb1e5100c026f2f232e570cd4d56942785f462 (patch)
treec158621fe94f850bc41a9d6ae61941ef5b03e293 /hw/ppc/ppc440_uc.c
parentsm501: Set updated region dirty after 2D operation (diff)
downloadqemu-7aeb1e5100c026f2f232e570cd4d56942785f462.tar.gz
qemu-7aeb1e5100c026f2f232e570cd4d56942785f462.tar.xz
qemu-7aeb1e5100c026f2f232e570cd4d56942785f462.zip
ppc440_uc: Fix a copy/paste error
Missed in 3c409c1927e, hopefully reported by Coverity. Fixes: Coverity CID 1393788 (Copy-paste error) Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc/ppc440_uc.c')
-rw-r--r--hw/ppc/ppc440_uc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/ppc440_uc.c b/hw/ppc/ppc440_uc.c
index 0bbaa6844a..09ccda548f 100644
--- a/hw/ppc/ppc440_uc.c
+++ b/hw/ppc/ppc440_uc.c
@@ -935,7 +935,7 @@ static void dcr_write_dma(void *opaque, int dcrn, uint32_t val)
if (wptr) {
cpu_physical_memory_unmap(wptr, wlen, 1, didx);
}
- if (wptr) {
+ if (rptr) {
cpu_physical_memory_unmap(rptr, rlen, 0, sidx);
}
}