X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftarget%2Farmv7a_cache_l2x.c;h=8b35fd89b54268d9974538c03f256ff6f4363bc1;hb=9721e9dd71d3a6be911d0c650ca824348eee2bc0;hp=5af589e4decde846bc0ae6e4b64a748cca17f811;hpb=3a292a1f34586b265b92e4662652683645e14201;p=fw%2Fopenocd diff --git a/src/target/armv7a_cache_l2x.c b/src/target/armv7a_cache_l2x.c index 5af589e4d..8b35fd89b 100644 --- a/src/target/armv7a_cache_l2x.c +++ b/src/target/armv7a_cache_l2x.c @@ -179,7 +179,7 @@ static int arm7a_handle_l2x_cache_info_command(struct command_context *cmd_ctx, struct armv7a_l2x_cache *l2x_cache = (struct armv7a_l2x_cache *) (armv7a_cache->outer_cache); - if (armv7a_cache->ctype == -1) { + if (armv7a_cache->info == -1) { command_print(cmd_ctx, "cache not yet identified"); return ERROR_OK; }