exec.c: fix setting 1-byte-long watchpoints master
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 18 Sep 2014 05:03:36 +0000 (22:03 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 19 Sep 2014 16:42:16 +0000 (17:42 +0100)
commit07e2863d0271ac6c05206d8ce9e4f4c39b25d3ea
treef49dbd20beb412ebefe7c3294d0a34555281f976
parent4852ee95f3a7ed8a02672b0fd0377167da5ed686
exec.c: fix setting 1-byte-long watchpoints

With commit 05068c0dfb5b 'exec.c: Relax restrictions on watchpoint length
and alignment' it's no longer possible to set 1-byte-long watchpoint
because of incorrect address range check.
Fix that by changing condition that checks for address wraparound.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1411016616-29879-1-git-send-email-jcmvbkbc@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
exec.c