From: OpenOCD-Gerrit <ope...@us...> - 2021-06-13 19:00:27
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via cb5d9e0098a62b388fcfc7c89ddb6cda2be77a38 (commit) from 708284a1accfa01c7a14ea7d7cd588000776d6b7 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit cb5d9e0098a62b388fcfc7c89ddb6cda2be77a38 Author: Tarek BOCHKATI <tar...@gm...> Date: Sun Feb 14 13:22:03 2021 +0100 armv4_5: do not read/write non-existent registers Change-Id: I4a0c401a325e57ba5d4d93d83b7e6b71a4d0865e Signed-off-by: Tarek BOCHKATI <tar...@gm...> Reviewed-on: http://openocd.zylin.com/6064 Tested-by: jenkins Reviewed-by: Marc Schink <de...@za...> Reviewed-by: Antonio Borneo <bor...@gm...> diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c index 8ba913646..084a6f9b2 100644 --- a/src/target/armv4_5.c +++ b/src/target/armv4_5.c @@ -1681,7 +1681,7 @@ static int arm_full_context(struct target *target) int retval = ERROR_OK; for (; num_regs && retval == ERROR_OK; num_regs--, reg++) { - if (reg->valid) + if (!reg->exist || reg->valid) continue; retval = armv4_5_get_core_reg(reg); } ----------------------------------------------------------------------- Summary of changes: src/target/armv4_5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- Main OpenOCD repository |