]> git.gag.com Git - fw/openocd/commitdiff
aarch64: dump a message when CTI is missing
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 14 Nov 2021 21:36:46 +0000 (22:36 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 22 Jan 2022 10:15:01 +0000 (10:15 +0000)
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
src/target/aarch64.c

index fc6bd6b3012dd24d2de0942c9901a4e6e611cca9..30ef54792a6edbb447324718523e7865dd4db94c 100644 (file)
@@ -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;