summaryrefslogtreecommitdiffstats
path: root/target-arm/internals.h
diff options
context:
space:
mode:
authorSergey Fedorov2016-02-11 12:17:32 +0100
committerPeter Maydell2016-02-11 12:17:32 +0100
commit3826121d9298cde1d29ead05910e1f40125ee9b0 (patch)
tree4b66b027afa3bfca6b27a73f935106e4b295c4d5 /target-arm/internals.h
parentcpu: Add callback to check architectural watchpoint match (diff)
downloadqemu-3826121d9298cde1d29ead05910e1f40125ee9b0.tar.gz
qemu-3826121d9298cde1d29ead05910e1f40125ee9b0.tar.xz
qemu-3826121d9298cde1d29ead05910e1f40125ee9b0.zip
target-arm: Implement checking of fired watchpoint
ARM stops before access to a location covered by watchpoint. Also, QEMU watchpoint fire is not necessarily an architectural watchpoint match. Unfortunately, that is hardly possible to ignore a fired watchpoint in debug exception handler. So move watchpoint check from debug exception handler to the dedicated watchpoint checking callback. Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1454256948-10485-3-git-send-email-serge.fdrv@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-arm/internals.h')
-rw-r--r--target-arm/internals.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target-arm/internals.h b/target-arm/internals.h
index a648c1e7d5..70bec4a4d2 100644
--- a/target-arm/internals.h
+++ b/target-arm/internals.h
@@ -409,6 +409,9 @@ void hw_breakpoint_update(ARMCPU *cpu, int n);
*/
void hw_breakpoint_update_all(ARMCPU *cpu);
+/* Callback function for checking if a watchpoint should trigger. */
+bool arm_debug_check_watchpoint(CPUState *cs, CPUWatchpoint *wp);
+
/* Callback function for when a watchpoint or breakpoint triggers. */
void arm_debug_excp_handler(CPUState *cs);