From: Stefano Stabellini Date: Thu, 11 Feb 2016 17:33:43 +0000 (+0000) Subject: Revert "exec: fix a glitch in checking dma r/w access" X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=352a3530ec72cbf6dda8ba00c103e49951e77f90;p=qemu-upstream-4.4-testing.git Revert "exec: fix a glitch in checking dma r/w access" This reverts commit 2600664a4e8d333290f01f0a957ea996e300bc6f. The patch should not have been committed, see: http://marc.info/?l=qemu-devel&m=145373225020873. Signed-off-by: Stefano Stabellini --- diff --git a/exec.c b/exec.c index e64f69b59..f3797b779 100644 --- a/exec.c +++ b/exec.c @@ -1903,7 +1903,7 @@ static void invalidate_and_set_dirty(hwaddr addr, static inline bool memory_access_is_direct(MemoryRegion *mr, bool is_write) { if (memory_region_is_ram(mr)) { - return (is_write && !mr->readonly); + return !(is_write && mr->readonly); } if (memory_region_is_romd(mr)) { return !is_write;