};
// /* TODO remove array */
- uint32_t param_out[count];
+ uint32_t *param_out = malloc(count * sizeof(uint32_t));
int i;
// int retval;
buf[i] = param_out[i];
}
+ free(param_out);
+
return ERROR_OK;
}
};
// /* TODO remove array */
- uint32_t param_out[count];
+ uint32_t *param_out = malloc(count * sizeof(uint32_t));
int i;
// int retval;
buf[i] = param_out[i];
}
+ free(param_out);
+
return ERROR_OK;
}
};
/* TODO remove array */
- uint32_t param_in[count + 2];
+ uint32_t *param_in = malloc((count + 2) * sizeof(uint32_t));
param_in[0] = addr;
param_in[1] = addr + count * sizeof(uint32_t); //last address
mips32_pracc_exec(ejtag_info, sizeof(code)/sizeof(code[0]), code, \
sizeof(param_in)/sizeof(param_in[0]),param_in, 0, NULL, 1);
+ free(param_in);
+
return ERROR_OK;
}
};
/* TODO remove array */
- uint32_t param_in[count + 2];
+ uint32_t *param_in = malloc((count + 2) * sizeof(uint32_t));
int i;
param_in[0] = addr;
param_in[1] = count;
mips32_pracc_exec(ejtag_info, sizeof(code)/sizeof(code[0]), code, \
sizeof(param_in)/sizeof(param_in[0]), param_in, 0, NULL, 1);
+ free(param_in);
+
return ERROR_OK;
}
};
/* TODO remove array */
- uint32_t param_in[count + 2];
+ uint32_t *param_in = malloc((count + 2) * sizeof(uint32_t));
int retval;
int i;
param_in[0] = addr;
retval = mips32_pracc_exec(ejtag_info, sizeof(code)/sizeof(code[0]), code, \
sizeof(param_in)/sizeof(param_in[0]), param_in, 0, NULL, 1);
+ free(param_in);
+
return retval;
}