aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2021-11-14 22:36:46 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2022-01-22 10:15:01 +0000
commit1536e249f2c23399f3443f8351647ea3faa5112e (patch)
tree952eb9347a342fb1edaf1a24f87612d641be23c9
parent5a8d32fcb92f179445da6d3f7b0ceeec4efbcc6f (diff)
downloadriscv-openocd-1536e249f2c23399f3443f8351647ea3faa5112e.zip
riscv-openocd-1536e249f2c23399f3443f8351647ea3faa5112e.tar.gz
riscv-openocd-1536e249f2c23399f3443f8351647ea3faa5112e.tar.bz2
aarch64: dump a message when CTI is missing
If the CTI is not specified OpenOCD fails target's examination without indicating the reason. Drop an error message about the missing CTI. Change-Id: I344537fb21cf38785796ba938e71890e04135509 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/6788 Tested-by: jenkins
-rw-r--r--src/target/aarch64.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/target/aarch64.c b/src/target/aarch64.c
index fc6bd6b..30ef547 100644
--- a/src/target/aarch64.c
+++ b/src/target/aarch64.c
@@ -2635,8 +2635,10 @@ static int aarch64_examine_first(struct target *target)
LOG_DEBUG("ttypr = 0x%08" PRIx64, ttypr);
LOG_DEBUG("debug = 0x%08" PRIx64, debug);
- if (!pc->cti)
+ if (!pc->cti) {
+ LOG_TARGET_ERROR(target, "CTI not specified");
return ERROR_FAIL;
+ }
armv8->cti = pc->cti;