aboutsummaryrefslogtreecommitdiff
path: root/src/target/armv8.h
diff options
context:
space:
mode:
authorMatthias Welwarsky <matthias.welwarsky@sysgo.com>2017-02-15 14:57:21 +0100
committerPaul Fertser <fercerpav@gmail.com>2017-02-24 09:15:18 +0000
commit6fb9f2e3ee05d8ff6241e6d61f7de0e71afeb45c (patch)
tree75627cf6d44965644737e7de93eb69e71ad1af8d /src/target/armv8.h
parent095ff3d2103f9e8089b5b1fb0816d43874014e08 (diff)
downloadriscv-openocd-6fb9f2e3ee05d8ff6241e6d61f7de0e71afeb45c.zip
riscv-openocd-6fb9f2e3ee05d8ff6241e6d61f7de0e71afeb45c.tar.gz
riscv-openocd-6fb9f2e3ee05d8ff6241e6d61f7de0e71afeb45c.tar.bz2
armv8: factor out generic bit set/clr for debug registers
introduce armv8_set_dbgreg_bits() function to make register bit-field modifications easier to read. Change-Id: I6b06f66262587fd301d848c9e0645e8327653de7 Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com> Reviewed-on: http://openocd.zylin.com/3989 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'src/target/armv8.h')
-rw-r--r--src/target/armv8.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/armv8.h b/src/target/armv8.h
index 3b2fc59..1cb3a3b 100644
--- a/src/target/armv8.h
+++ b/src/target/armv8.h
@@ -307,6 +307,7 @@ static inline unsigned int armv8_curel_from_core_mode(enum arm_mode core_mode)
}
void armv8_select_reg_access(struct armv8_common *armv8, bool is_aarch64);
+int armv8_set_dbgreg_bits(struct armv8_common *armv8, unsigned int reg, unsigned long mask, unsigned long value);
extern const struct command_registration armv8_command_handlers[];