diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2024-05-13 17:20:52 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2024-06-23 09:28:21 +0000 |
commit | bcd6a1022322f67f25f74af2dfe40d440d382e74 (patch) | |
tree | f0b8db35be6aba42848fac093a9004e3428d2fcb | |
parent | 91043cecee396209bd4d616fe6e78d835bebd978 (diff) | |
download | riscv-openocd-bcd6a1022322f67f25f74af2dfe40d440d382e74.zip riscv-openocd-bcd6a1022322f67f25f74af2dfe40d440d382e74.tar.gz riscv-openocd-bcd6a1022322f67f25f74af2dfe40d440d382e74.tar.bz2 |
target: armv8_dpm: silence error on register R/W
The command 'gdb_report_register_access_error' is used to silence
errors while reading registers and not reporting them to GDB.
Nevertheless, the error is printed by a LOG_ERROR() in armv8_dpm.
Change the message to LOG_DEBUG().
It will still cause the error to be propagated and eventually
printed by the caller (e.g. by the command 'reg').
Change-Id: Ic0db74fa28235d686ddd21a5960c52ae003e0931
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8267
Tested-by: jenkins
-rw-r--r-- | src/target/armv8_dpm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/armv8_dpm.c b/src/target/armv8_dpm.c index 8bb24f2..271bd91 100644 --- a/src/target/armv8_dpm.c +++ b/src/target/armv8_dpm.c @@ -677,7 +677,7 @@ static int dpmv8_read_reg(struct arm_dpm *dpm, struct reg *r, unsigned regnum) } if (retval != ERROR_OK) - LOG_ERROR("Failed to read %s register", r->name); + LOG_DEBUG("Failed to read %s register", r->name); return retval; } @@ -719,7 +719,7 @@ static int dpmv8_write_reg(struct arm_dpm *dpm, struct reg *r, unsigned regnum) } if (retval != ERROR_OK) - LOG_ERROR("Failed to write %s register", r->name); + LOG_DEBUG("Failed to write %s register", r->name); return retval; } |