diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-09-15 13:33:03 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-09-15 13:33:03 -0500 |
commit | ef4f97cba2a354656b00eb8659bf61ab2321fa4e (patch) | |
tree | 2d1f7cbfbfa77cb67396dc348c724c644bf5ca2c | |
parent | c7fbbdf9c870a98b42a7f4dfae20e702a70f9b21 (diff) | |
parent | d2963631dd54ddf0f46c151b7e3013e39bb78d3b (diff) | |
download | qemu-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |