stlink: add missing memory check handlers
[fw/openocd] / src / target / arm946e.c
index 092271858fed4a8719d06298635fdaf87e620f6d..11e79c9600f43ed91ee9136c87dadd14173015ef 100644 (file)
@@ -383,7 +383,6 @@ uint32_t arm946e_invalidate_dcache(struct target *target, uint32_t address,
        uint32_t shift = 0;
        uint32_t cur_addr = 0x0;
        uint32_t cp15_idx, set, way, dtag;
-       int nb_idx;
        uint32_t i = 0;
        int retval;
 
@@ -403,7 +402,6 @@ uint32_t arm946e_invalidate_dcache(struct target *target, uint32_t address,
                        shift = csize - 0x3; /* Now 0 = 4KB, 1 = 8KB, ... */
 
                csize = 1 << (12 + shift);
-               nb_idx = (csize / 32);
 
                set = (cur_addr >> 5) & 0xff;   /* set field is 8 bits long */
 
@@ -659,6 +657,7 @@ const struct command_registration arm946e_command_handlers[] = {
                .name = "arm946e",
                .mode = COMMAND_ANY,
                .help = "arm946e command group",
+               .usage = "",
                .chain = arm946e_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE