exec: check offset_within_address_space for register subpage
authorHu Tao <hutao@cn.fujitsu.com>
Thu, 29 Aug 2013 10:21:16 +0000 (18:21 +0800)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Thu, 7 Nov 2013 04:48:36 +0000 (13:48 +0900)
commit3489ae0d28630f52ec1f8de7bb5440e2eac2c861
tree39bf8fd84232db03265055acc82d6d66fe7bc857
parentdd090aa1b908d12f7106b1886c543e3cd47eea32
exec: check offset_within_address_space for register subpage

If offset_within_address_space falls in a page, then we register a
subpage. So check offset_within_address_space rather than
offset_within_region.

Cc: qemu-stable@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: "Andreas Färber" <afaerber@suse.de>
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 88266249701032211c1d7449460d063fbc01bf12)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
exec.c