aboutsummaryrefslogtreecommitdiff
path: root/src/target/aarch64.h
diff options
context:
space:
mode:
authorLiming Sun <lsun@mellanox.com>2018-11-09 16:17:25 -0500
committerAntonio Borneo <borneo.antonio@gmail.com>2021-04-11 21:28:01 +0100
commit651b861d5d5f1e361faee37a10c7d7ce03aa6afa (patch)
tree90da73f23bfa925a1b5515f64d090c20f9ac403e /src/target/aarch64.h
parent0ec9018040c2fd77807d80225b34e2fc7fb23e82 (diff)
downloadriscv-openocd-651b861d5d5f1e361faee37a10c7d7ce03aa6afa.zip
riscv-openocd-651b861d5d5f1e361faee37a10c7d7ce03aa6afa.tar.gz
riscv-openocd-651b861d5d5f1e361faee37a10c7d7ce03aa6afa.tar.bz2
target/aarch64: Add watchpoint support
There are some breakpoint/watchpoint related code in armv8_dpm.c, but seems not working for aarch64. Target aarch64 has its own breakpoint implementation in aarch64.c. This commit follows the same logic to add watchpoint support for target aarch64. This commit also increases the size of stop_reason[] in function gdb_signal_reply() since the old size is too small to fit in a 64-bit address, such as ffff8000115e6980. Change-Id: I907dc0e648130e36b434220f570c37d0e8eb5ce1 Signed-off-by: Liming Sun <lsun@mellanox.com> Signed-off-by: Daniel Goehring <dgoehrin@os.amperecomputing.com> Reviewed-on: http://openocd.zylin.com/4761 Tested-by: jenkins Reviewed-by: Liming Sun <limings@nvidia.com> Reviewed-by: Kevin Burke <kevinb@os.amperecomputing.com> Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/target/aarch64.h')
-rw-r--r--src/target/aarch64.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/target/aarch64.h b/src/target/aarch64.h
index d7886a3..7c0ddf8 100644
--- a/src/target/aarch64.h
+++ b/src/target/aarch64.h
@@ -62,6 +62,11 @@ struct aarch64_common {
int brp_num_available;
struct aarch64_brp *brp_list;
+ /* Watchpoint register pairs */
+ int wp_num;
+ int wp_num_available;
+ struct aarch64_brp *wp_list;
+
struct armv8_common armv8_common;
enum aarch64_isrmasking_mode isrmasking_mode;