X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Fcortex_a.c;fp=src%2Ftarget%2Fcortex_a.c;h=729a173eb4be071889dcc47cce376e79414ce023;hp=22cbc3d063c11f731207337c7bd88678a7a6f034;hb=b5d2b1224fed3909aa3314339611ac5ac7ab0f82;hpb=6900c5af4ec3f6df52227169d7d897eb14a44bca;ds=sidebyside diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c index 22cbc3d063..729a173eb4 100644 --- a/src/target/cortex_a.c +++ b/src/target/cortex_a.c @@ -2797,6 +2797,15 @@ static int cortex_a_examine_first(struct target *target) target->coreid); armv7a->arm.core_type = ARM_CORE_TYPE_SEC_EXT; } + if (dbg_idpfr1 & 0x0000f000) { + LOG_DEBUG("target->coreid %" PRId32 " has virtualization extensions", + target->coreid); + /* + * overwrite and simplify the checks. + * virtualization extensions require implementation of security extension + */ + armv7a->arm.core_type = ARM_CORE_TYPE_VIRT_EXT; + } /* Avoid recreating the registers cache */ if (!target_was_examined(target)) {