aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-09-15 13:33:03 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-09-15 13:33:03 -0500
commitef4f97cba2a354656b00eb8659bf61ab2321fa4e (patch)
tree2d1f7cbfbfa77cb67396dc348c724c644bf5ca2c
parentc7fbbdf9c870a98b42a7f4dfae20e702a70f9b21 (diff)
parentd2963631dd54ddf0f46c151b7e3013e39bb78d3b (diff)
downloadqemu-ef4f97cba2a354656b00eb8659bf61ab2321fa4e.zip
qemu-ef4f97cba2a354656b00eb8659bf61ab2321fa4e.tar.gz
qemu-ef4f97cba2a354656b00eb8659bf61ab2321fa4e.tar.bz2
Merge remote-tracking branch 'qemu-kvm-tmp/memory/core' into staging
-rw-r--r--memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/memory.c b/memory.c
index 57f0fa4..101b67c 100644
--- a/memory.c
+++ b/memory.c
@@ -55,8 +55,8 @@ static AddrRange addrrange_shift(AddrRange range, int64_t delta)
static bool addrrange_intersects(AddrRange r1, AddrRange r2)
{
- return (r1.start >= r2.start && r1.start < r2.start + r2.size)
- || (r2.start >= r1.start && r2.start < r1.start + r1.size);
+ return (r1.start >= r2.start && (r1.start - r2.start) < r2.size)
+ || (r2.start >= r1.start && (r2.start - r1.start) < r1.size);
}
static AddrRange addrrange_intersection(AddrRange r1, AddrRange r2)