arm_adi_v5: handle faulting entry in ROM table
[fw/openocd] / src / target / arm_adi_v5.c
index 5c3941b3fe0d19d12961a0530f29a47a3bdcc4bd..4d24e8f2fc5ca7f8caebd43383ad618d06732754 100644 (file)
@@ -1522,8 +1522,11 @@ static int rtp_rom_loop(struct command_invocation *cmd,
                /* Recurse. "romentry" is signed */
                target_addr_t component_base = base_address + (int32_t)(romentry & ARM_CS_ROMENTRY_OFFSET_MASK);
                retval = rtp_cs_component(cmd, ap, component_base, depth + 1);
-               if (retval != ERROR_OK)
-                       return retval;
+               if (retval != ERROR_OK) {
+                       /* TODO: do we need to send an ABORT before continuing? */
+                       LOG_DEBUG("Ignore error parsing CoreSight component");
+                       continue;
+               }
        }
 
        return ERROR_OK;