aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-09-12 14:06:48 +0100
committerPeter Maydell <peter.maydell@linaro.org>2014-09-12 14:06:48 +0100
commit05068c0dfb5b23dde42ad0112123bdc8408a1f44 (patch)
tree44c8833ddd70d44ae41fd6019502ab38417163f5 /include
parentacf82361c61afe1fa842f0ae0d68b729509ec1ac (diff)
exec.c: Relax restrictions on watchpoint length and alignment
The current implementation of watchpoints requires that they have a power of 2 length which is not greater than TARGET_PAGE_SIZE and that their address is a multiple of their length. Watchpoints on ARM don't fit these restrictions, so change the implementation so they can be relaxed. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'include')
-rw-r--r--include/qom/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qom/cpu.h b/include/qom/cpu.h
index 1aafbf5f34..7c06f3711a 100644
--- a/include/qom/cpu.h
+++ b/include/qom/cpu.h
@@ -169,7 +169,7 @@ typedef struct CPUBreakpoint {
typedef struct CPUWatchpoint {
vaddr vaddr;
- vaddr len_mask;
+ vaddr len;
int flags; /* BP_* */
QTAILQ_ENTRY(CPUWatchpoint) entry;
} CPUWatchpoint;